Jump to content

Search the Community

Showing results for tags 'xml'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 178 results

  1. I have been trying to find a solution to my problem is the last 10 days, and I found nothing. So, I am trying to restrict the Authentication Context XML Schema Definition of SAML 2.0. The XSD document is accessible at http://docs.oasis-open.org/security/saml/v2.0/saml-schema-authn-context-types-2.0.xsd. The part that I am trying to restrict is the one related to this part of the XSD document: <xs:complexType name="PasswordType"> <xs:sequence> <xs:element ref="Length" minOccurs="0"/> <xs:element ref="Alphabet" minOccurs="0"/> <xs:element ref="Generation" minOccurs="0"/> <xs:element ref="Extension" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ExternalVerification" type="xs:anyURI" use="optional"/></xs:complexType><xs:element name="RestrictedPassword" type="RestrictedPasswordType"/><xs:complexType name="RestrictedPasswordType"> <xs:complexContent> <xs:restriction base="PasswordType"> <xs:sequence> <xs:element name="Length" type="RestrictedLengthType" minOccurs="1"/> <xs:element ref="Generation" minOccurs="0"/> <xs:element ref="Extension" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ExternalVerification" type="xs:anyURI" use="optional"/> </xs:restriction> </xs:complexContent></xs:complexType> Well, I do not know how to restrict the RestrictedPassword complex Type. Below is my XSD, that tries to restrict the original XSD document. <?xml version="1.0" encoding="UTF-8"?><xs:schema version="2.0" targetNamespace="urn:m:SAML:2.0:ac:classes:K" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:m:SAML:2.0:ac:classes:K" finalDefault="extension" blockDefault="substitution"> <xs:redefine schemaLocation="http://docs.oasis-open.org/security/saml/v2.0/saml-schema-authn-context-types-2.0.xsd"> <xs:complexType name="RestrictedPasswordType"> <xs:complexContent> <xs:restriction base="RestrictedPasswordType"> <xs:sequence> <xs:element ref="Length" minOccurs="0"/> <xs:element ref="Generation"/> <xs:element ref="Extension" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ExternalVerification" type="xs:anyURI" use="optional"/> </xs:restriction> </xs:complexContent> </xs:complexType> </xs:redefine> </xs:schema> When I try to validate this XSD in this tool http://www.utilities-online.info/xsdvalidation/#.UwJAzK69h31 it returns me an error, that I do not know how to fix. Any help is welcome. Thanks! Domenech, Marlon
  2. Some quick context to what I'm doing. I'm utilizing a test automation tool called SOASTA. What this software allows me to do is record performed actions on a mobile device and then play back those same actions at anytime. When recording actions, SOASTA will assign the action performed a random locator value. This value can be modified to equal a specific XPATH value. On the mobile application I'm recording action on, I have 3 files stored called TEST SIGN.doc, TEST SIGN.docx, and TEST SIGN.pdf, separated by the node <RelativeLayout> in the XML code shown below. Each of these files have a button on them that when tapped, opens a window to perform certain actions. In the XML hierachy, these three buttons are all assigned the same value of, <DontPressWithParentImageView touchTestId="img_item_action"/>. My question is, is there an XPATH that will allow me to distinguish between the 3 buttons even though the buttons have the same values? THANK YOU IN ADVANCE!! <ListView touchTestId="16908298"> <RelativeLayout> <ImageView touchTestId="img_icon"/> <TextView text="TEST SIGN.doc" touchTestId="txt_title"/> <TextView text="21.5 KB, modified Jan 20, 2014 03:36 PM" touchTestId="txt_info"/> <CheckBox text="" touchTestId="checkbox"/> <View touchTestId="divider"/> <DontPressWithParentImageView touchTestId="img_item_action"/> </RelativeLayout> <RelativeLayout> <ImageView touchTestId="img_icon"/> <TextView text="TEST SIGN.docx" touchTestId="txt_title"/> <TextView text="12.6 KB, modified Jan 20, 2014 03:36 PM" touchTestId="txt_info"/> <CheckBox text="" touchTestId="checkbox"/> <View touchTestId="divider"/> <DontPressWithParentImageView touchTestId="img_item_action"/> </RelativeLayout> <RelativeLayout> <ImageView touchTestId="img_icon"/> <TextView text="TEST SIGN.pdf" touchTestId="txt_title"/> <TextView text="12.7 KB, modified Jan 20, 2014 03:36 PM" touchTestId="txt_info"/> <CheckBox text="" touchTestId="checkbox"/> <View touchTestId="divider"/> <DontPressWithParentImageView touchTestId="img_item_action"/> </RelativeLayout></ListView>
  3. vivekganesh

    New to XML and need help interpreting stuff

    Hi, I need to know which are the correct answers in the following MCQ type XML code. 1. Example 1 - Only one answer is correct out of the following. <?xml version="1.0" encoding="UTF-8" ?> - <pages sgxmlv="1.2"> - <page> <template>q1.swf</template> <title /> - <pics> <pic /> <pic /> <pic /> <pic /> <pic /> </pics> - <sounds> <snd /> <snd /> <snd /> <snd /> <snd /> </sounds> - <texts> <txt a="X" c="X" e="-3" pt="1" s="2">How do Club Associations secure their economic position?</txt> <txt crct="83" c="X" s="2">From a system of mutual support.</txt> <txt crct="91" c="X" s="2">From levying high premiums on owners.</txt> <txt crct="48" c="X" s="2">By pursuing strong counter claims through the courts.</txt> <txt crct="99" c="X" s="2">By minimizing insurance settlements through clever interpretation of insurance rules.</txt> </texts> - <soundTexts> <sndTxt /> <sndTxt /> <sndTxt /> <sndTxt /> <sndTxt /> </soundTexts> </page> <subpages /> </pages> 2. Example 2 - More than one answer is correct out of the following. <?xml version="1.0" encoding="UTF-8" ?> - <pages sgxmlv="1.2"> - <page> <template>q1.swf</template> <title /> - <pics> <pic /> <pic /> <pic /> <pic /> <pic /> <pic /> <pic /> </pics> - <sounds> <snd /> <snd /> <snd /> <snd /> <snd /> <snd /> <snd /> </sounds> - <texts> <txt a="X" c="X" e="-3" pt="1" s="2">In respect of goods which are intended to be, or being, or which have been carried in the transport, which of the following claims are covered by Club insurance? (Select all appropriate answers)</txt> <txt crct="83" c="X" s="2">Loss.</txt> <txt crct="84" c="X" s="2">Short delivery.</txt> <txt crct="5" c="X" s="2">Theft.</txt> <txt crct="66" c="X" s="2">Damage.</txt> <txt crct="80" c="X" s="2">Loss of commercial value during transit.</txt> <txt crct="101" c="X" s="2">Damage whilst in independent storage.</txt> </texts> - <soundTexts> <sndTxt /> <sndTxt /> <sndTxt /> <sndTxt /> <sndTxt /> <sndTxt /> <sndTxt /> </soundTexts> </page> <subpages /> </pages> These are computer based training modules. The assessment is coded in XML and i need to know the correct answers in order to pass. How do i interpret the above to finding the right answers. XML Experts you help is highly appreciated.
  4. DaftHengist

    New to XML and Confused

    Alright. Forgive me if this is a really dumb question, but I think I'm missing some crucial information here. Is there any good, simple way, to embed a little XML data in an HTML document? Not a whole sheet, just one node. For instance, say I've made an XML document describing a book. Is there a simple way to embed the info held in the <AUTHOR> tag in an HTML document as plain text? Example: Author: <embedded XML bit goes here> Thanks, and sorry if I'm really missing something important here.
  5. How can I get the value of an attribute and use it in a conditional statement. For example I have <O Option="a" LineNr="1"> and this is element is a child under another parent element that gets grouped with other elements. So the condition I want is: if [value-of Option is null] then [do nothing] else-if [check if the value of the attribute of the element under the next parent element with the same value is empty]. And if there are for example 3 parent elements that contain this element with the Option attribute and if all of the attributes are NOT empty - then group them. I have the grouping done, but it is not connected with this attribute that I want to use now. So I need just the formulation of the conditional statements. edit: giving input and output desired examples Input example 1: <Area><Type>A</Type><Street><Position>5</Position><House><L Option="" LineNr="1">--> some elements</L></House></Street><Street><Position>5</Position><Block><O Option="" LineNr="1">--> some elements</O></Block></Street><Street><Position>6</Position><House><L Option="o" LineNr="1">--> some elements</L></House></Street><Street><Position>6</Position><Block><O Option="" LineNr="1">--> some elements</O></Block></Street></Area> And desired output: <Area><Type>A</Type><Street><Position>5</Position><House><L Option="" LineNr="1">--> some elements</L></House><Block><O Option="" LineNr="1">--> some elements</O></Block></Street><Street><Position>6</Position><House><L Option="o" LineNr="1">--> some elements</L></House><Block><O Option="" LineNr="1">--> some elements</O></Block></Street></Area> But if in the same position number, all the occurrences have a value in the Option attribute of L or O, then I want them arranged under the other occurrence of a position number. Like that: Input example 2: <Area><Type>A</Type><Street><Position>5</Position><House><L Option="" LineNr="1">--> some elements</L></House></Street><Street><Position>5</Position><Block><O Option="" LineNr="1">--> some elements</O></Block></Street><Street><Position>6</Position><House><L Option="o" LineNr="1">--> some elements</L></House></Street><Street><Position>6</Position><Block><O Option="a" LineNr="1">--> some elements</O></Block></Street></Area> Then the output will be: <Area><Type>A</Type><Street><Position>5</Position><House><L Option="" LineNr="1">--> some elements</L></House><Block><O Option="" LineNr="1">--> some elements</O></Block><House><L Option="o" LineNr="1">--> some elements</L></House><Block><O Option="a" LineNr="1">--> some elements</O></Block></Street></Area> as now position 6 is gone and its child elements are grouped under the upper occurrence position (which is 5 in this case in the same Type) as all of the attributes Option in the L or O elements had value (which can be either "a" or "o", if that is relevant). And this is the XSLT which I am using now. It only groups the elements of the different occurrences of the same position numbers under one number: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:strip-space elements="*" /><xsl:output method="xml" indent="yes" /><xsl:key name="streetByPosition" match="Street" use="concat(../Type, '|', Position)" /><xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()" /></xsl:copy></xsl:template><!-- for the first Street in each Position --><xsl:template match="Street[generate-id() =generate-id(key('streetByPosition', concat(../Type, '|', Position))[1])]"><Street><!-- copy in the Position element once only --><xsl:apply-templates select="Position" /><!-- copy in all sub-elements except Position from all matching Streets--><xsl:apply-templates select="key('streetByPosition', concat(../Type, '|', Position))/*[not(self::Position)]" /></Street></xsl:template><!-- ignore all other Street elements --><xsl:template match="Street" /></xsl:stylesheet> I really, really need solution for that and I have no clue how to do it, especially the checks.
  6. hi all, i m very new to xslt. i need a help.i want add a root tag in my xml using xslt where xml file returning more than one rows. my xslt is demo.xsl <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes"/> <xsl:strip-space elements="*"/> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> <xsl:template match="/*:ExportXML"> <sources> <xsl:for-each-group select="*:record" group-by="*:field[@name=ContestNumber]"> <sourcetype> <sourcelist> </sourcelist> </sourcetype> </xsl:for-each-group> </sources> </xsl:template> <xsl:template match="*:field"> <xsl:element name="{lower-case(@name)}"> <xsl:apply-templates/> </xsl:element> </xsl:template> <xsl:template match="*:record"> <JobPositionPostings> <JobPositionPosting> <xsl:apply-templates select="*:field[starts-with(@name,'ContestNumber')]"/> <JobDisplayOptions> <xsl:apply-templates select="*:field[starts-with(@name,'ManagerRequisitionTitle')]"/> </JobDisplayOptions> </JobPositionPosting> </JobPositionPostings> </xsl:template> <xsl:template match="*:field[@name=TypeName]"/> <xsl:template match="*:field[@name=TypeName]" mode="title"> <xsl:apply-templates/> </xsl:template> </xsl:stylesheet> my output is cming like this requisition.xml <?xml version="1.0" encoding="UTF-8"?><JobPositionPostings> <JobPositionPosting> <jobpositionpostingid>1300000F</jobpositionpostingid> <HiringOrg> <Industry> <summarytext>Project Manager</summarytext> </Industry> <Contact> <PersonName/> </Contact> </HiringOrg> <JobDisplayOptions/> <JobPositionInformation> <JobClassifications> <PrimaryJobCategory/> </JobClassifications> <JobPositionDescription/> <JobPositionLocation/> <CompensationDescription> <Pay/> </CompensationDescription> <JobPositionRequirements> <JobExperience/> <JobQualifications/> </JobPositionRequirements> </JobPositionInformation> <HowToApply> <ApplicationMethods> <ByEmail/> <ByWeb/> </ApplicationMethods> </HowToApply> </JobPositionPosting></JobPositionPostings><JobPositionPostings> <JobPositionPosting> <jobpositionpostingid>1300000H</jobpositionpostingid> <HiringOrg> <Industry> <summarytext>Project Manager</summarytext> </Industry> <Contact> <PersonName/> </Contact> </HiringOrg> <JobDisplayOptions/> <JobPositionInformation> <JobClassifications> <PrimaryJobCategory/> </JobClassifications> <JobPositionDescription/> <JobPositionLocation/> <CompensationDescription> <Pay/> </CompensationDescription> <JobPositionRequirements> <JobExperience/> <JobQualifications/> </JobPositionRequirements> </JobPositionInformation> <HowToApply> <ApplicationMethods> <ByEmail/> <ByWeb/> </ApplicationMethods> </HowToApply> </JobPositionPosting></JobPositionPostings><JobPositionPostings> <JobPositionPosting> <jobpositionpostingid>1300000T</jobpositionpostingid> <HiringOrg> <Industry> <summarytext>Project Manager</summarytext> </Industry> <Contact> <PersonName/> </Contact> </HiringOrg> <JobDisplayOptions/> <JobPositionInformation> <JobClassifications> <PrimaryJobCategory/> </JobClassifications> <JobPositionDescription/> <JobPositionLocation/> <CompensationDescription> <Pay/> </CompensationDescription> <JobPositionRequirements> <JobExperience/> <JobQualifications/> </JobPositionRequirements> </JobPositionInformation> <HowToApply> <ApplicationMethods> <ByEmail/> <ByWeb/> </ApplicationMethods> </HowToApply> </JobPositionPosting></JobPositionPostings> i want that Root tag <JobPositionPostings> just as root tag(open and close one time) but its repeating for every row please suggest me any solution for this.thanks in advance.
  7. hi everbody, i m very new to xsl.my requirement is transform a flat xml to nested xml using xsl transform for that i have to pass xml template file which contain xsl file path ,name and record placeholder.i dont knw how my template file ll be. my input xml file is input.xml <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:getDocumentByKeyResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.taleo.com/ws/integration/toolkit/2005/07"><Document xmlns="http://www.taleo.com/ws/integration/toolkit/2005/07"><Attributes><Attribute name="duration">0:00:00.130</Attribute><Attribute name="count">7</Attribute><Attribute name="entity">Requisition</Attribute><Attribute name="mode">XML</Attribute><Attribute name="version">http://www.taleo.com/ws/tee800/2009/01</Attribute></Attributes><Content> <ExportXML xmlns="http://www.taleo.com/ws/integration/toolkit/2005/07"> <record> <field name="ContestNumber">1300000F</field> <field name="ManagerRequisitionTitle">Project Manager</field> </record> <record> <field name="ContestNumber">1300000H</field> <field name="ManagerRequisitionTitle">Project Manager</field> </record> <record> <field name="ContestNumber">1300000T</field> <field name="ManagerRequisitionTitle">Project Manager</field> </record> <record> <field name="ContestNumber">13000018</field> <field name="ManagerRequisitionTitle">Project Manager</field> </record> </ExportXML></Content></Document></ns1:getDocumentByKeyResponse></soapenv:Body></soapenv:Envelope> my xslt file is <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:itk="http://www.taleo.com/ws/integration/toolkit/2005/07"> <xsl:output method="text" encoding="UTF-8"/> <xsl:template match="itk:record"> <xsl:text>JOB INFORMTION</xsl:text> <xsl:value-of select="itk:field[@name=ContestNumber]"/> <xsl:text>|</xsl:text> <xsl:value-of select="itk:field[@name=ManagerRequisitionTitle]"/> <xsl:text disable-output-escaping="yes"> </xsl:text> <xsl:text>====</xsl:text> <xsl:text disable-output-escaping="yes"> </xsl:text> </xsl:template> </xsl:stylesheet> my expected output xml is output.xml <?xml version="1.0" encoding="UTF-8" ?> <JobPositionPostings><JobPositionPosting><JobPositionPostingID>1300000F</JobPositionPostingID> <Industry><jobPost>Project Manager</jobPost> </Industry></JobPositionPosting></JobPositionPostings> for xml input template file i dont have more idea about record place holder .please suggest me how it ll look like. i created like this <?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl" href="mycustom.xsl"?> after that how to place xsl fetch value in this i dont know.
  8. nicefella

    XSLT Problems

    Hi, I am a beginner in xml.I need to include a picture in my xslt page which is linked to my xml page, so when the xml page is viewed, the picture shows.But I cant seem to get the syntax right.Can anyone help please?
  9. Hi,I am not an IT guy (I am a paleontologist =) and my mother-tongue is not English. I have built few small websites: for instance, one for an open access scientific journal, that I am keeping on maintaining and upgrading. For some of them I have had the possibility to use PHP and MySQL (I manage to write .inc and .php files, but obviously it is not me but my IT colleagues at the University who take care of the server issues!). For other sites I can only use HTML (no PHP, no PERL, no ASP, ...). Therefore sometimes I have to manipulate a little javascript and when I combine pieces of code I get something that works and which is quite useful.Of course sometimes it isfrustrating to be unable to use a server-based database but it forces me to look for solutions elsewhere ... and actually it is fine to have tools and data which are not server-based, that is you can run from your PC (or Mac) or from a CD/DVD. The scientific journal I am publishing get a yearly DVD version and we use a very efficient JS search engine to explore it ("Tipue"). Recently I have build an XML (-like) file with some 7,500 entries. I used some pieces of scripts given in examples of the W3Schools and combine them in order to parse this flat database :1) to display some data corresponding to a certain id/an ordering number out of the 7,500 (display1: name, year, title), then by clicking on it getting a larger set of data for the same id (display2: name, year, title, reference, abstract, keywords);2) to browse up and down the entries, one after the other, with an increment of one, five or twenty, or to be able to go to a certain id by entering its id number in a form.This database will be used to document an open access web publication about FOSSIL corals and sponges (you can see that my fields of interests are quite far from programming!). This script I "built" WORKS on my PC with Firefox,http://paleopolis.re...rowse_test.htmlbut not with Chrome (nor Safari). Chrome gives me 4 errors but I am unable to understand them (it is Chinese to me). The file FCnP.xml is at the same level as the browse_test.html ...It also works on my spouse's Ipad! Is there anybody to help me? Here is the HTML code : <!DOCTYPE html><html><head><script language="javascript1.3">if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("GET","FCnP.xml",false);xmlhttp.send();xmlDoc=xmlhttp.responseXML;x=xmlDoc.getElementsByTagName("RECORD");i=0;function displayCD(){id=(x[i].getElementsByTagName("ID")[0].childNodes[0].nodeValue);artist=(x[i].getElementsByTagName("AUTHORS")[0].childNodes[0].nodeValue);year=(x[i].getElementsByTagName("YEAR")[0].childNodes[0].nodeValue);title=(x[i].getElementsByTagName("TITLE")[0].childNodes[0].nodeValue);txt= id + " - Author(s): " + artist + "<br>Year: "+ year + "<br>Title: " + title;document.getElementById("showCD").innerHTML=txt;}function displayCDInfo(){artist=(x[i].getElementsByTagName("AUTHORS")[0].childNodes[0].nodeValue);year=(x[i].getElementsByTagName("YEAR")[0].childNodes[0].nodeValue);title=(x[i].getElementsByTagName("TITLE")[0].childNodes[0].nodeValue);source=(x[i].getElementsByTagName("SOURCE")[0].childNodes[0].nodeValue);abstr=(x[i].getElementsByTagName("ABSTRACT")[0].childNodes[0].nodeValue);fcnp=(x[i].getElementsByTagName("FCnP")[0].childNodes[0].nodeValue);subject=(x[i].getElementsByTagName("SUBJECT")[0].childNodes[0].nodeValue);syst=(x[i].getElementsByTagName("SYST")[0].childNodes[0].nodeValue);strat=(x[i].getElementsByTagName("STRAT")[0].childNodes[0].nodeValue);geog=(x[i].getElementsByTagName("GEOG")[0].childNodes[0].nodeValue);txt= artist + " (<b>" + year + "</b>).- " + title + "- " + source + " - <b>FC&P:</b> " + fcnp + "<br><b>Abstract:</b> " + abstr + "<br>Topic(s): " + subject + "<br>Systematics: " + syst + "<br>Stratigraphy: " + strat + "<br>Geography: " + geog;document.getElementById("showCD").innerHTML=txt;}function next(){if (i<x.length-1) { i++; displayCD(); }}function previous(){if (i>0) { i--; displayCD(); }}function next5(){if (i<x.length-1) { i+=5; displayCD(); }}function previous5(){if (i>5) { i-=5; displayCD(); }}function next20(){if (i<x.length-1) { i+=20; displayCD(); }}function previous20(){if (i>20) { i-=20; displayCD(); }}function goForit(){if (i<6708) { i=+this.document.testform.inputbox.value; displayCD(); }}</script></head><body onload="displayCD()"><script language="javascript1.3">document.write("<p>");if (i==0) { document.write("<div id='showCD' onclick='displayCDInfo(" + i + ")'></div>"); }elsefor (i=1;i<x.length;i++) { document.write("<div id='showCD(" + i + ")' onclick='displayCDInfo(" + i + ")'></div>"); }document.write("</p>");</script><form name="testform"><input type="button" onclick="previous20()" value="-20" /><input type="button" onclick="previous5()" value="-5" /><input type="button" onclick="previous()" value="-1" /><input type="text" name="inputbox" value="" size="5"><input type="button" name="Enter" Value="Enter" onClick="goForit(this.form)"><input type="button" name="Reload" value="Reload" onClick="window.location.reload()"><input type="button" onclick="next()" value="+1" /><input type="button" onclick="next5()" value="+5" /><input type="button" onclick="next20()" value="+20" /></form></body></html> It would be great (and acknowledged), if someone could provide us with solutions to these problems OR an alternative way to get the same (actually better) results.I believe that this simple assemblage of function could be very usefull for many colleagues of mine (paleontologists, ...). I thank you in advance for your time and consideration.=) BG
  10. hanthienluc

    Help compare between Xpath and SQL

    Help compare between Xpath and SQL, details is Good. Thanks you.Thanks you.Thanks you.Thanks you.
  11. JeTSpice

    suggestion for xsd section

    As a first-time learner of XSD, I found the use of "http://www.w3schools.com" as an example of a namespace and "http://www.w3schools.com/XMLSchema" as a literal namespace to be confusing. Perhaps where "http://www.w3schools.com/" is not literrally used, it might be better to use "example.com". Visit this link to see what I'm talking about: http://www.w3schools.com/schema/schema_schema.asp After I figured that part out, the rest was good. Thanks.
  12. ngopza

    xsl Functions

    HI. I need to intergrate several xml documents into a master xml document.I did everything but my problem is that the second xml file prints continouslly. eg No1.xml <root> <name1> some name</name1> <name2> some name </name2></root> <root1> <name1> some name</name1> <name2> some name </name2></root1> No2.xml<anotherRoot> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot> <anotherRoot1> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot1> Expected output <root> <name1> some name</name1> <name2> some name </name2></root> <anotherRoot> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot> <root1> <name1> some name</name1> <name2> some name </name2></root1><anotherRoot1> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot1> But the utput I get<root> <name1> some name</name1> <name2> some name </name2></root> <anotherRoot> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot> <anotherRoot1> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot1> <root1> <name1> some name</name1> <name2> some name </name2></root1> <anotherRoot> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot> <anotherRoot1> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot1> Is there a function for that.
  13. scottie5689

    Google Places API

    I have been trying to develop my google places map. I found this page, https://developers.g...on/autocomplete which is what I think I want. I want to be able to search a specific word and return only results that I input. I am not sure how to link the JSON script to the XML. I need some help.
  14. I used loadXMLDoc to load an XML file onto my web page. I then saved different contents to a file of the save name. When I reloaded the file with loadXMLDoc, I got the original contents instead of the new contents. I deleted the file and then save the new contents to the file with the same name. Reloading still gave me the old contents. I then changed the name of the file. This time loading the file with loadXMLDoc gave me the new contents. Does loadXMLDoc remember the contents that was loaded from a file with a given name and not bother reloading the contents if I present it with a file of the same name albeit different contents? After modifying the file, I looked at the XML code and the contents were modified after the first modification.
  15. Hello all,I have tried so many things to get this to work but to no avail, can someon eplease help me out here with a simple script for n XML steam feed.http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&format=xml OK NOW THE ISSUE IS:I have a blank webpage which I have placed the above link into, I simply want the contents of the XML feed from the link to appear in mypage.......How do I make the contents of that url appear on the same page??SO I NEED THE SMALL SCRIPT OR HTML CODE TO DO THISAlso I would like to have the background a certain colour and use a certain font like 12point arial with bold headings and lower case text.Can someone please provide me with the html to allow this XML feed to appear on my webpage with a different colour background, arial 12pt font inbold and lowercase____________________________________________________________________________I RECEIVED A REPLY TO THIS POST AND THEY ADDED THIS:It's a little hard to tell from what you wrote. But, I think what you are looking for is an AJAX script to pull in the XML,then CSS can take care of the formatting.Look up how to process a XMLHttpRequest in javascript (or another scripting language). That will let you put the XML file into an array. Then,you can use (javascript) document.write() to put the pieces on your page.______________________________________________________________________________SO this being said do I need a javascript code in the page to show the XML Feed with formatting, what would this code be, this is the magicalquestion :)Could someone please please help me..........With regardsMathew
  16. Hello all, I have tried so many things to get this to work but to no avail, can someon eplease help me out here with a simple script for n XML steam feed. http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&format=xml OK NOW THE ISSUE IS: I have a blank webpage which I have placed the above link into, I simply want the contents of the XML feed from the link to appear in my page....... How do I make the contents of that url appear on the same page?? SO I NEED THE SMALL SCRIPT OR HTML CODE TO DO THIS Also I would like to have the background a certain colour and use a certain font like 12point arial with bold headings and lower case text. Can someone please provide me with the html to allow this XML feed to appear on my webpage with a different colour background, arial 12pt font in bold and lowercase Could someone pleasde please help me.......... With regards Mathew
  17. dkreynolds

    Pages and paragraphs in xml

    Hello,I'm currently having the following problem. I have xml data which needs formatting as pages and paragraphs, i.e.<Document><Page><Paragraph><Line>This is a paragraph</Line><Line>This is line 2</Line></Paragraph></Page></Document>This is all well and good, but does not allow for paragraphs which go over a page boundary.Any suggestions would be most welcome,
  18. Sarek

    Transforming XSLT to XHTML

    There's a great exampling of transforming XSLT to XHTML on this W3Schools site, but the example does not work in IE 10. It works great in previous versions of IE, Firefox and Chrome though. Could anyone offer a a fix that would allow it to work in IE 10 as well? http://www.w3schools...ename=cdcatalog Thanks
  19. I want use a WSDL file who wrote.With two porttypes <wsdl:portType name="ContentDirectory"> <wsdl:operation name="GetSortCapabilities"> <wsdl:input message="tns:GetSortCapabilitiesRequest" /> <wsdl:output message="tns:GetSortCapabilitiesResponse" /> </wsdl:operation> <wsdl:operation name="GetSystemUpdateID"> <wsdl:input message="tns:NOTHING_INPUT" /> <wsdl:output message="tns:GetSystemUpdateIDResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:portType name="ConnectionManager"> <wsdl:operation name="GetCurrentConnectionIDs"> <wsdl:input message= "tns:NOTHING_INPUT" /> <wsdl:output message="tns:GetCurrentConnectionIDsResponse" /> </wsdl:operation> <wsdl:operation name="GetProtocolInfo"> <wsdl:input message="tns:NOTHING_INPUT" /> <wsdl:output message="tns:GetProtocolInfoResponse" /> </wsdl:operation> </wsdl:portType> And two binding <wsdl:binding name="ContentDirectory" type="tns:ContentDirectory"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="Browse"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/Browse/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetSystemUpdateID"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetSystemUpdateID/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="ConnectionManager" type="tns:ConnectionManager"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="GetCurrentConnectionIDs"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetCurrentConnectionIDs/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetProtocolInfo"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetProtocolInfo/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> And service with two ports <wsdl:service name="Media"> <wsdl:port name="ContentDirectory" binding="tns:ContentDirectory"> <soap:address location="http://localhost:8080/MediaServer/TESTWSDL" /> </wsdl:port> <wsdl:port name="ConnectionManager" binding="tns:ConnectionManager"> <soap:address location="http://localhost:8080/MediaServer/TESTWSDL" /> </wsdl:port> </wsdl:service> When i use this device this only one port my client WSDLreader read my WSDL. Ben i use this, with both port i have an error. (same with a different location) I didn't find in W3 WSDL spec a problem with that. What is the solution? Regards Rem
  20. lemonmango

    xml <embed> swf not working

    Hi I need to reference a swf file from another website that I am representing but I could not get the swf on their page to properly show up in mine. I am embeding in xml and my code is:<embed type="application/x-shockwave-flash" src="http://www.citizensoldiersupport.org/media/home-gallery.swf" width="574" height="359" id="homeFlashContent" name="homeFlashContent" quality="high" menu="false" scale="noscale" salign="lt" wmode="transparent"> </embed>Any idea or thoughts of whats wrong?Thanks in advance
  21. I have many xml file for which i am creating xsl to convert it into tabular format (HTML). Problem is in xml each node is different. And also one xml is different from other. That's why i am creating one xsl file which takes the node name dynamically and convert it into tabular format. I want node name in table itself. But this should not be hard-coded. Any suggestion is welcome.Below is xml file.......... <?xml version="1.0" encoding="UTF-8"?><t_square_data_model><adapter_identifier> <ce_adapter> <ce_adap_vers>3.65.0</ce_adap_vers> <ce_adap_iden></ce_adap_ident> </ce_adapter> <db_adapter> <db_adap_vers></db_adap_vers> <db_adap_ident></db_adap_ident> </db_adapter></adapter_identifier><calling_application> <appl_type>SAP R/3</appl_type> <client_ident>900</client_ident></calling_application><t_square_document> <document_line> <cost_location></cost_location> <net_amount> <net_amount_doc>1.00</net_amount_doc> </net_amount> <cust_purchase_no></cust_purchase_no> <doc_line_no>000001</doc_line_no> </insurance_amount> <taxation_line> <jurisdic_t_code></jurisdic_t_code> <jurisdic_code2></jurisdic_code2> <fi_book_indic>ES</fi_book_indic> </taxation_line> <taxation_line_item> <exemption> <effective_date></effective_date> </exemption> <tax_zone_level>2</tax_zone_level> <tax_registration> <customer_reg_no></customer_reg_no> <customer_tax_L1></customer_tax_L1> <customer_tax_L2></customer_tax_L2> </tax_registration> <customer> <customer_type></customer_type> <customer_tax_reg></customer_tax_reg> </customer> <discount_amount> <disc_amount_loc>0.00000</disc_amount_loc> <disc_amount_doc>0.00000</disc_amount_doc> </discount_amount> </document_line></t_square_document><tax_engine_details> <cs_patch>1.0</cs_patch> <cs_tax_api>5.5.0</cs_tax_api> <cs_version>5.5.0</cs_version></tax_engine_details><authentication> <appl_id>DVL</appl_id> <appl_pw>sapsd</appl_pw></authentication></t_square_data_model> what sholud be the xsl to get the node name dynamically??
  22. Charlotte

    Read XML-file with ASP

    Hi, This is my first topic in this forum and i hope that someone can help me = = = = = = = = = XML: <?xml version="1.0" encoding="utf-8"?><gallery><description>martens-design.be</description><album title="" thumbnail=""><description></description><image src="xxxxx.jpg" thumbnail="xxxxx_thumb.jpg"></image><image src="yyyyy.jpg" thumbnail="yyyyy_thumb.jpg"></image><image src="zzzzz.jpg" thumbnail="zzzzz_thumb.jpg"></image></album></gallery> = = = = = = = = = ASP: <%Set objXMLDoc = Server.CreateObject("Microsoft.XMLDOM")objXMLDoc.async = FalseobjXMLDoc.load("http://www.absdef.com/data/MyXML.xml")Set Root = objXMLDoc.documentElementSet NodeList = Root.getElementsByTagName("gallery/album/image")For i = 0 to NodeList.length -1 Set image = objXMLDoc.getElementsByTagName("src")(i) Set thumb = objXMLDoc.getElementsByTagName("thumbnail")(i) Response.Write image.text & " " & "<br>" Response.Write thumb.text & " " & "<br>"NextSet objXMLDoc = Nothing%> = = = = = = = = = ...but i've got nothing ...and this is what i want: xxxxx.jpg xxxxx_thumb.jpg <br>yyyyy.jpg yyyyy_thumb.jpg <br>zzzzz.jpg zzzzz_thumb.jpg <br> = = = = = = = = = Thankzzz Charlotte
  23. I have a dynamic web page with an <a> where the href varies with the contents. I would like the <a> to open in a new tab instead of a new IE. So I use <a href="......." target="_blank"/> to achieve this but not always work: (1). using jsp to generate html, target="_blank" in the resulting html leads to new tab, as expected.(2). instead of jsp->html, using servlet to write xml to IE with xslt, target="_blank" in the xsl leads to new IE opened, not new tab.(3). In 2, if I view the source in IE and save the xml together with the xsl in same folder, open the xml directly with IE, target="_blank" leads to new tab, as expected. I don't know if there is any method to make (2) above also open new tab. Please help.
  24. Hello everybody, I have a little problem here...I have a XML file, that is a database itself containing information about terminology in two languages... This exemple file is to be "uploaded" into a MySQL databse, on Ubuntu, which is already built and ready to get the information from the XML files... The thing is: how can I start doing this uploading process? Is shell script a good way? Or is it better to use another tool? How? The file is here, attached. Thank you XML_exemple.mtf.xml
  25. We have a client that wants to specify both these attributes in an XML header. Is this allowed under XML specs ? An example is given below. <InvoiceImport xmlns="http://www.xxxx.com/schema/auditor/mws/invoice/" xmlns:xsi="http://www.w3.org/20...Schema-instance" xsi:noNamespaceSchemaLocation="http://www.xxxx.com/schema/auditor/mws/invoice/invoice-1.1.xsd" xsi:schemaLocation="http://www.xxxx.com/schema/auditor/mws/invoice/ http://www.xxxx.com/schema/auditor/mws/invoice/invoice-1.1.xsd">