<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
	<title>w3schools.com - XML Forum</title>
	<description>The complete discussion board conversation RSS Feed - XML, XSLT, Schema, Web Services</description>
	<link>http://w3schools.invisionzone.com/index.php</link>
	<pubDate>Sun, 22 Nov 2009 20:46:48 -0500</pubDate>
	<ttl>5</ttl>
	<item>
		<title>Execute Xpath Passed In As A String</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28633</link>
		<description><![CDATA[Hai all,<br /><br />I have the following problem to solve: <br />The users of my application can specify an xpath like e.g.<br /><br />format-date(current-date(),'[D]/[M]/[Y]', 'en', (), ())<br /><br />this xpath is caught in an xslt file as just being a string (the user could also have typed in a string and then I need this string for sure), but I want this 'string' to be evaluated...<br />so it shoould result in 18/11/2009 instead of the string 'format-date(current-date(),'[D]/[M]/[Y]', 'en', (), ())'<br /><br />So my question is, does anybody know how I execute this xpath if it comes to my function as a string...? With xpath function 'eval' or 'exec' or so??<br /><br />Best regards,<br />longrun]]></description>
		<pubDate>Wed, 18 Nov 2009 17:03:51 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28633</guid>
	</item>
	<item>
		<title>Session Id Implementation</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28597</link>
		<description><![CDATA[hello people<br /><br />i need some help with session id implementation<br /><br />i have a site were i need to log in users <br />after log in, i identify them by cookies (unique user id only)<br /><br />now i want to add a session id to the cookie, <br />so no saved cookie could be used in the future, or even after the next page request <br /><br />what i want to do goes like this <br /><br />1- i have a function that gives the session id - lets say adds one each time to the current session id <br /><br />2- when the user logs in for the first time he gets the session id of 1, <br />and that session id is saved in the database, under the user unique user id  <br /><br />3- when he asks for a new page, his session id (1) is read from the cookie, then checked for a match with the DB<br />if there is a match the function add one to his session id in the DB, gives him a new cookie, and the requested page<br />if not he is sent back to the log in page and his cookie is deleted<br /><br />4-next time the user logs in he will get the session id from the DB+1<br /><br /><br />so my questions are <br />first am i doing it right ?<br />is there an easier way of creating a session id ?<br />do you have any suggestions for how to session implementation ?<br /><br />Thank you for your attention<br />Tal]]></description>
		<pubDate>Mon, 16 Nov 2009 14:20:05 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28597</guid>
	</item>
	<item>
		<title>Xmlschema And Xsl</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28563</link>
		<description><![CDATA[I was wondering if it is at all possible to use the W3C validator in order to validate an XSL file against an XML Schema?<br /><br />Already Microsoft don't allow more than one DTD in an xml document and even though it's done by the browser I think it's fair to say that time is nigh that W3C stepped up to the plate and provided (more).<br /><br />Thanks & regards]]></description>
		<pubDate>Sat, 14 Nov 2009 07:03:19 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28563</guid>
	</item>
	<item>
		<title>Automatic Update Of Dynamic Xml On Server From Db</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28447</link>
		<description><![CDATA[Hi friends,<br />here is the problem<br /><br />I HAVE TO IMPORT XML DATA FROM SERVER AND POPULATE IT TO DROP DOWN,SO I MADE A DYNAMIC XML AND PUT IT TO SERVER.<br />I GAVE THE REFERENCE OF THAT XML FILE TO MY TOOLBAR ,THE TOOLBAR SHOWED THAT DROP DOWN.<br />BUT I GOT CONFUSED THAT WHEN I WILL CLICK THE BUTTON THE XML FILE SHOULD SEND ME THE ANOTHER DATA.<br />I WANT TO CHANGE THAT XML FROM DATABASE AUTOMATICALLY .<br />PLEASE HELP]]></description>
		<pubDate>Wed, 04 Nov 2009 00:38:09 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28447</guid>
	</item>
	<item>
		<title>Change Drop Down List After Click Of Button</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28434</link>
		<description><![CDATA[I want to make a drop down list which get changed after i clicked on a button.On click it sends request to a URl .lets say<br /><br />www.yousite.com/print?q=1&t=2<br /><br />after then server returns me data which gets populated into drop down list.<br /><br />Please guys help me..Its urgent...]]></description>
		<pubDate>Tue, 03 Nov 2009 02:04:25 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28434</guid>
	</item>
	<item>
		<title>Editing Of Xsl Using Javascript</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28415</link>
		<description><![CDATA[Hi,<br /><br />I have a local XML-File with content that looks like that<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;Data&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;Timestamp&#62;30.10.2009 13&#58;14&#58;25&#60;/Timestamp&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;LogLevel&#62;Developer&#60;/LogLevel&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;Component&#62;TestComponent&#60;/Component&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;Log /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;Message&#62;Test&#60;/Message&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;Source&#62;TestFunction&#40;&#41;&#60;/Source&#62;<br />&nbsp;&nbsp;&#60;/Data&#62;<!--c2--></div><!--ec2--><br /><br />and i have a XSL-File which creates an table as HTML code to display the data properly.<br />I also have a Javascript which reads the Components from the XML and generates an dropdown-menu with all of the components as entries.<br /><br />Now, I want to edit the XSL file on the fly, depending on which component I selected from my dropdown und reuse that XSL on my XML, <br />so that only the selected Components are displayed.<br /><br />Any idea, how I can do this?<br /><br />I thought of taking a string with the XSL text in it and edit this as I wish. But how can I then use this string as my XSL?<br />Or is there an easier way of achieving my goal?<br /><br />Any help is appreciated!<br /><br />Thanks, Almeida]]></description>
		<pubDate>Mon, 02 Nov 2009 02:24:44 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28415</guid>
	</item>
	<item>
		<title>Web Host</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28412</link>
		<description>Can anyone help me set up a free web host?</description>
		<pubDate>Sun, 01 Nov 2009 20:49:47 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28412</guid>
	</item>
	<item>
		<title>Need Help Understanding Xml</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28383</link>
		<description><![CDATA[XML Tutorials don't give me answers. Please Help.<br /><br />I'm not familiar with XML, I would like to get couple of questions answered to see how I can properly use xml file to my advantage for web design.<br /><br />On my website I have the same numeric data (number 3220) which is used in many different HTML files. This cause issues if I need to update that numeric data in many html files cause it is time consuming. I heard that xml file should take care of that.<br /><br />How could I do that with xml file? I assume I need to include the xml file in the html document. In the xml document I need to set the 3220 record number, then insert specific xml code into the html file that contains that record in the xml document. The problem is none of the tutorials tell me how to include xml file, and how to insert xml code in the html document where i need it to reside. They only tell me how to properly build xml.<br /><br /><br />Can anyone help?<br />At least point me in the right direction.]]></description>
		<pubDate>Fri, 30 Oct 2009 16:53:07 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28383</guid>
	</item>
	<item>
		<title><![CDATA[[xslt 1.0] Data Text Into Tags]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28376</link>
		<description><![CDATA[Hello,<br /><br />The data, to be transformed, have been extracted from a database and now there is some text data without tags. <img src="http://w3schools.invisionzone.com/style_emoticons/default/happy0046.gif" style="vertical-align:middle" emoid=":happy0046:" border="0" alt="happy0046.gif" /> <br /><br />Here is my xml code<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;body&#62;doc simé<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p&#62; La table 050 permet de paramétrer les libellés qui doivent figurer sur les relevés de comptes et les écrans de consultation des mouvements sur les comptes imputés lors des opérations de transfert définies dans la table 049. &#60;/p&#62; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p&#62; La table 050 permet aussi de paramétrer les comptes sur lesquels imputer les commissions et les frais, ainsi que les comptes de contreparties aussi bien des opérations de transfert pour une racine que pour un fonds de placement. &#60;/p&#62; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p&#62; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;p&#62; &#60;/p&#62; La description ci-dessus n'est valable que pour le programme des opérations de transferts AS4200. Si vous utilisez le programme AS4210, seule la désignation est utilisée, la ventilation comptable étant quant à elle définie dans la table &#60;p&#62; 059 &#60;/p&#62; . &#60;/p&#62;<!--c2--></div><!--ec2--><br />Here we can see that there is text without any tags ("doc simé").<br />What I would like to obtain is:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;body&#62;&#60;toto&#62;doc simé&#60;/toto&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p&#62; La table 050 permet de paramétrer les libellés qui doivent figurer sur les relevés de comptes et les écrans de consultation des mouvements sur les comptes imputés lors des opérations de transfert définies dans la table 049. &#60;/p&#62; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p&#62; La table 050 permet aussi de paramétrer les comptes sur lesquels imputer les commissions et les frais, ainsi que les comptes de contreparties aussi bien des opérations de transfert pour une racine que pour un fonds de placement. &#60;/p&#62; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p&#62; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;p&#62; &#60;/p&#62; La description ci-dessus n'est valable que pour le programme des opérations de transferts AS4200. Si vous utilisez le programme AS4210, seule la désignation est utilisée, la ventilation comptable étant quant à elle définie dans la table &#60;p&#62; 059 &#60;/p&#62; . &#60;/p&#62;<!--c2--></div><!--ec2--><br /><br />Unfortunately, my xslt file does not work. There is no modification at all.<br />Here is my code:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;xsl&#58;template match=&#34;body/string&#34;&#62;<br />&#60;toto&#62;&#60;xsl&#58;value-of select=&#34;.&#34;/&#62;&#60;/toto&#62;<br />&#60;/xsl&#58;template&#62;<!--c2--></div><!--ec2--><br /><br />Could anyone help me, please, to solve that problem?<br /><br />Thanks in advance.<br />]]></description>
		<pubDate>Fri, 30 Oct 2009 07:50:49 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28376</guid>
	</item>
	<item>
		<title>Xml/dtd Validator</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28357</link>
		<description><![CDATA[Hi,<br /><br />I found there was an XML validator that checks for well-formedness, as well as the data model of a DTD and I was wondering if there are any plans to make it more widely available, eg like the HTML/CSS validator at w3c.org.<br /><br />Thank you]]></description>
		<pubDate>Wed, 28 Oct 2009 18:22:24 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28357</guid>
	</item>
	<item>
		<title>Complex Type With Mutliple Definitions</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28322</link>
		<description><![CDATA[Hi,<br /><br />I want to define a type in my XSD that will validate both the XML examples below.<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt!-- Example 1 --&gt;<br />&lt;my_root_node&gt;<br />	&lt;street_type&gt;STREET&lt;/street_type&gt;<br />&lt;/my_root_node&gt;</div><br /><br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt!-- Example 2 --&gt;<br />&lt;my_root_node&gt;<br />	&lt;street_type&gt;<br />		&lt;street_type&gt;STREET&lt;/street_type&gt;<br />		&lt;street_type_alias&gt;ST&lt;/street_type_alias&gt;<br />	&lt;/street_type&gt;<br />&lt;/my_root_node&gt;</div><br /><br />However I do not want to define a mixed type as I don't want the following XML example to be valid.<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt!-- XML --&gt;<br />&lt;my_root_node&gt;<br />	&lt;street_type&gt;STREET<br />		&lt;street_type&gt;STREET&lt;/street_type&gt;<br />		&lt;street_type_alias&gt;ST&lt;/street_type_alias&gt;<br />	&lt;/street_type&gt;<br />&lt;/my_root_node&gt;<br /><br />&lt!-- XSD --&gt;<br />  &lt;xs:complexType name="TYPE_street_type_COMPLEX2" mixed="true"&gt;<br />    &lt;xs:complexContent mixed="true"&gt;<br />      &lt;xs:restriction base="xs:anyType"&gt;<br />        &lt;xs:sequence&gt;<br />          &lt;xs:element minOccurs="0" name="street_type" type="xs:string" /&gt;<br />          &lt;xs:element minOccurs="0" name="street_type_alias" type="xs:string" /&gt;<br />        &lt;/xs:sequence&gt;<br />      &lt;/xs:restriction&gt;<br />    &lt;/xs:complexContent&gt;<br />  &lt;/xs:complexType&gt;</div><br />Also the above example fails when I put &lt;xs:restriction base="xs:string"&gt; which seems odd.<br />ERRMSG: The &lt;complexType&gt; [TYPE_street_type_COMPLEX2], is of Type [http://www.w3.org/2001/XMLSchema:string]. However [http://www.w3.org/2001/XMLSchema:string] is not defined as a root item (either a &lt;complexType&gt; or &lt;simpleType&gt;), within this schema or any included or imported schemas.<br />I have tried a union, but this only worked with simple types.<br /><br />I have also thought of other ways to achieve the same thing, like with the example below, but wanted to avoid putting the street_type are an attribute.<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;my_root_node&gt;<br />	&lt;street_type type="STREET"&gt;<br />		&lt;street_type_alias&gt;ST&lt;/street_type_alias&gt;<br />	&lt;/street_type&gt;<br />&lt;/my_root_node&gt;</div><br /><br />Is there another way to have multiple definitions for one type? I have read some things on this site about substitutions but didn't really understand it. <br /><br />I basically want to join the two following type definitions together.<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>  &lt;xs:simpleType name="TYPE_street_type_SIMPLE"&gt;<br />    &lt;xs:restriction base="xs:string" /&gt;<br />  &lt;/xs:simpleType&gt;<br />  <br />  &lt;xs:complexType name="TYPE_street_type_COMPLEX"&gt;<br />    &lt;xs:sequence&gt;<br />      &lt;xs:element minOccurs="0" name="street_type" type="xs:string" /&gt;<br />      &lt;xs:element minOccurs="0" name="street_type_alias" type="xs:string" /&gt;<br />    &lt;/xs:sequence&gt;<br />  &lt;/xs:complexType&gt;<br /></div><br /><br />Can anyone help?<br /><br />Josh]]></description>
		<pubDate>Mon, 26 Oct 2009 19:21:18 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28322</guid>
	</item>
	<item>
		<title>Dtd Entities As Macros</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28310</link>
		<description><![CDATA[Hi!<br /><br />Sorry if I posted this in the wrong forum, but after several hours in W3C Schools and google this is my last hope.<br /><br />I have a large XML that is full of repeating nodes:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;parent id=&#34;1&#34; value=&#34;Tom&#34; option=&#34;x&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;child id=&#34;a&#34; value=&#34;first&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;child id=&#34;b&#34; value=&#34;second&#34; /&#62;<br />&#60;/parent&#62;<br />&#60;parent id=&#34;2&#34; value=&#34;######&#34; option=&#34;x&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;child id=&#34;a&#34; value=&#34;first&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;child id=&#34;b&#34; value=&#34;second&#34; /&#62;<br />&#60;/parent&#62;<!--c2--></div><!--ec2--><br /><br />It would be nice if I could put the child nodes in an entity so that the result would be:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;parent id=&#34;1&#34; value=&#34;Tom&#34; option=&#34;x&#34;&#62;&macro;&#60;/parent&#62;<br />&#60;parent id=&#34;2&#34; value=&#34;######&#34; option=&#34;x&#34;&#62;&macro;&#60;/parent&#62;<!--c2--></div><!--ec2--><br /><br />, or even part of the parent node as well:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;parent id=&#34;1&#34; value=&#34;Tom&#34; &macro;<br />&#60;/parent&#62;&#60;parent id=&#34;2&#34; value=&#34;######&#34; &macro;<!--c2--></div><!--ec2--><br /><br />I've seen examples for this inside DTD, but I need it inside an XML file. If I'm not mistaken parsed parameter entities sound like the right tool:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;!ENTITY macro &#34;&lt;child id="a" value="first" /&gt;&lt;child id="b" value="second" /&gt;"&#62;<!--c2--></div><!--ec2--><br /><br />I hope that this is possible, and that I'm just too dumb to see how.<br />]]></description>
		<pubDate>Mon, 26 Oct 2009 03:24:58 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28310</guid>
	</item>
	<item>
		<title><![CDATA[[solved] How To Extract Attributes From Xml File With Xsl File]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28307</link>
		<description><![CDATA[Hello;<br /><br />I have this XML file:<br /><!--html--><div class='htmltop'>HTML</div><div class='htmlmain'><!--html1-->&lt;<span style='color:blue'>?xml</span> version="<span style='color:orange'>1.0</span>" encoding="<span style='color:orange'>ISO-8859-1</span>" ?&gt;<br />		&lt;<span style='color:blue'>db</span>&gt;<br />		&lt;<span style='color:blue'>cities</span>&gt;<br />			&lt;<span style='color:blue'>city</span> cityName="<span style='color:orange'>Abbecity</span>" stateNumber="80"/&gt;<br />			&lt;<span style='color:blue'>city</span> cityName="<span style='color:orange'>Amiens</span>" stateNumber="80"/&gt;<br />			&lt;<span style='color:blue'>city</span> cityName="<span style='color:orange'>Caen</span>" stateNumber="14"/&gt;<br />			&lt;<span style='color:blue'>city</span> cityName="<span style='color:orange'>La Gacilly</span>" stateNumber="56"/&gt;<br />			&lt;<span style='color:blue'>city</span> cityName="<span style='color:orange'>Rennes</span>" stateNumber="35"/&gt;<br />			&lt;<span style='color:blue'>city</span> cityName="<span style='color:orange'>Saint-Germain en Laye</span>" stateNumber="78"/&gt;<br />			&lt;<span style='color:blue'>city</span> cityName="<span style='color:orange'>Vannes</span>" stateNumber="56"/&gt;<br />			&lt;<span style='color:blue'>city</span> cityName="<span style='color:orange'>Versailles</span>" stateNumber="78"/&gt;<br />		&lt;<span style='color:blue'>/cities</span>&gt;<br />		&lt;<span style='color:blue'>states</span>&gt;<br />			&lt;<span style='color:blue'>state</span> stateNumber="<span style='color:orange'>14</span>" stateName="Calvados"/&gt;<br />			&lt;<span style='color:blue'>state</span> stateNumber="<span style='color:orange'>35</span>" stateName="Ille-et-Vilaine"/&gt;<br />			&lt;<span style='color:blue'>state</span> stateNumber="<span style='color:orange'>59</span>" stateName="Nord"/&gt;<br />			&lt;<span style='color:blue'>state</span> stateNumber="<span style='color:orange'>56</span>" stateName="Morbihan"/&gt;<br />			&lt;<span style='color:blue'>state</span> stateNumber="<span style='color:orange'>78</span>" stateName="Yvelines"/&gt;<br />			&lt;<span style='color:blue'>state</span> stateNumber="<span style='color:orange'>40</span>" stateName="Landes"/&gt;<br />			&lt;<span style='color:blue'>state</span> stateNumber="<span style='color:orange'>80</span>" stateName="Somme"/&gt;<br />			&lt;<span style='color:blue'>state</span> stateNumber="<span style='color:orange'>21</span>" stateName="Côte d'or"/&gt;<br />		&lt;<span style='color:blue'>/states</span>&gt;<br />	&lt;<span style='color:blue'>/db</span>&gt;<!--html2--></div><!--html3--><br /> I want to extract each stateNumber attribute child of &lt;states&gt; element which isn't child of &lt;cities&gt; element. Which means, all states which don't have a city in my database.<br />To do that I have to use XSL file.<br />I tried a various of XSL combination but I failed to get what I want.<br /><br />Please help me to find a solution.<br /><br />Thanks in advance.]]></description>
		<pubDate>Sun, 25 Oct 2009 19:10:46 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28307</guid>
	</item>
	<item>
		<title>Reading Nested Xml With Javascript</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28279</link>
		<description><![CDATA[Hi All, I am very new to Javascript & XML and have been asked by my daughters school to put together a webpage so they can sell their shirts and whatnot. I've decided to use XML to make it easier for others to manage what is added, etc. I'm able to get almost everything showing on the screen but where I'm running into an issue is where I use a drop-down box to display the sizes (not all items have sizes). Here is my XML file:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?xml version=&#34;1.0&#34; encoding=&#34;ISO-8859-1&#34;?&#62;<br />&#60;CATALOG&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;CD id=&#34;18600&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;FILNM&#62;18600.png&#60;/FILNM&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;TITLE&#62;Royal Blue Full Zip Hoodie&#60;/TITLE&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;ITMNO&#62;18600&#60;/ITMNO&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;PRICE&#62;$20.00&#60;/PRICE&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DETAL&#62;You can look great, stay toasty-warm and show your School Spirit in this soft zip-up fleece hooded sweatshirt. 8 oz. fleece blend &#40;80% cotton/20% polyester&#41;, Cotton/Spandex blend at waistband and ribbed cuffs and Jam resistant metal zipper.&#60;/DETAL&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;SIZE&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DESC&#62;Youth Small&#60;/DESC&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;COST&#62;$20.00&#60;/COST&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DESC&#62;Youth Medium&#60;/DESC&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;COST&#62;$20.00&#60;/COST&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DESC&#62;Youth Large&#60;/DESC&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;COST&#62;$20.00&#60;/COST&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DESC&#62;Adult Small&#60;/DESC&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;COST&#62;$20.00&#60;/COST&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DESC&#62;Adult Medium&#60;/DESC&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;COST&#62;$20.00&#60;/COST&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DESC&#62;Adult Large&#60;/DESC&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;COST&#62;$20.00&#60;/COST&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DESC&#62;Adult X-Large&#60;/DESC&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;COST&#62;$20.00&#60;/COST&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DESC&#62;Adult 2X-Large&#60;/DESC&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;COST&#62;$22.00&#60;/COST&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DESC&#62;Adult 3X-Large&#60;/DESC&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;COST&#62;$23.00&#60;/COST&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/SIZE&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/CD&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;CD id=&#34;STICKER&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;FILNM&#62;sticker.png&#60;/FILNM&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;TITLE&#62;Bumper Sticker&#60;/TITLE&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;ITMNO&#62;STICKER&#60;/ITMNO&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;PRICE&#62;$2.00&#60;/PRICE&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;DETAL&#62;OCS Bumper Sticker&#60;/DETAL&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/CD&#62;<br />&#60;/CATALOG&#62;<!--c2--></div><!--ec2--><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script type=&#34;text/javascript&#34;&#62;<br />if &#40;window.XMLHttpRequest&#41;<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;xhttp=new window.XMLHttpRequest&#40;&#41;;<br />&nbsp;&nbsp;}<br />else // Internet Explorer 5/6<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;xhttp=new ActiveXObject&#40;&#34;Microsoft.XMLHTTP&#34;&#41;;<br />&nbsp;&nbsp;}<br />xhttp.open&#40;&#34;GET&#34;,&#34;spirit_wear.xml&#34;,false&#41;;<br />xhttp.send&#40;&#34;&#34;&#41;;<br />xmlDoc=xhttp.responseXML; <br /><br />document.write&#40;&#34;&#60;table border='0' width='100%' cellpadding='3' cellspacing='3'&#62;&#34;&#41;;<br />var x=xmlDoc.getElementsByTagName&#40;&#34;CD&#34;&#41;;<br />for &#40;i=0;i&#60;x.length;i++&#41;<br />&nbsp;&nbsp;{ <br />&nbsp;&nbsp;document.write&#40;&#34;&#60;tr&#62;&#60;td align=center valign=top&#62;&#60;img src='spiritwear/&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;x&#91;i&#93;.getElementsByTagName&#40;&#34;FILNM&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;' alt='&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;x&#91;i&#93;.getElementsByTagName&#40;&#34;TITLE&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;' border=0&#62;&#60;br /&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;/td&#62;&#60;td align=left valign=top&#62;&#60;font size=4&#62;&#60;b&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;x&#91;i&#93;.getElementsByTagName&#40;&#34;TITLE&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;/b&#62;&#60;/font&#62;&#60;br /&#62;&#60;br /&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;font color=red size=1 face='arial,tahoma'&#62;Starting Price&#60;/font&#62; &#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;font size=4&#62;&#60;b&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;x&#91;i&#93;.getElementsByTagName&#40;&#34;PRICE&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;/b&#62;&#60;br /&#62;&#60;br /&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;form target='paypal' action='https&#58;//www.paypal.com/cgi-bin/webscr' method='post'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='cmd' value='_cart'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='business' value='collector00@gmail.com'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='lc' value='US'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='item_name' value='&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;x&#91;i&#93;.getElementsByTagName&#40;&#34;TITLE&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='item_number' value='&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;x&#91;i&#93;.getElementsByTagName&#40;&#34;ITMNO&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='button_subtype' value='products'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='currency_code' value='USD'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='add' value='1'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='bn' value='PP-ShopCartBF&#58;btn_cart_SM.gif&#58;NonHostedGuest'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='on0' value='Size'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='currency_code' value='USD'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;font size=2 face='arial,tahoma'&#62;&#60;b&#62;Select Size&#58;&#60;/b&#62; &#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;select name='os0'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;option value=''&#62;--- select size ---&#34;&#41;;<br /><br />&nbsp;&nbsp;var a=xmlDoc.getElementsByTagName&#40;&#34;SIZE&#34;&#41;;<br />&nbsp;&nbsp;for &#40;z=0;z&#60;a.length;z++&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;option value='&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;a&#91;z&#93;.getElementsByTagName&#40;&#34;DESC&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;a&#91;z&#93;.getElementsByTagName&#40;&#34;DESC&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34; &#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;a&#91;z&#93;.getElementsByTagName&#40;&#34;COST&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;/select&#62;&#60;/font&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;br /&#62;&#60;font size=1 face='arial,tahoma'&#62;Item # &#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;x&#91;i&#93;.getElementsByTagName&#40;&#34;ITMNO&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;/font&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;br /&#62;&#60;br /&#62;&#60;font size=2 face='arial,tahoma'&#62;&#60;b&#62;Product Details&#60;/b&#62;&#60;br /&#62;&#60;font size=2&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;x&#91;i&#93;.getElementsByTagName&#40;&#34;DETAL&#34;&#41;&#91;0&#93;.childNodes&#91;0&#93;.nodeValue&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;/font&#62;&#60;br /&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='hidden' name='option_index' value='0'&#62;&#60;br /&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;input type='image' src='images/addtocart.gif' border='0' name='submit' alt='Make payments with PayPal - it's fast, free and secure!'&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;/form&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;/td&#62;&#60;/tr&#62;&#34;&#41;;<br />&nbsp;&nbsp;document.write&#40;&#34;&#60;tr&#62;&#60;td colspan=2&#62;&#60;hr /&#62;&#60;/td&#62;&#60;/tr&#62;&#34;&#41;;<br />&nbsp;&nbsp;}<br />document.write&#40;&#34;&#60;/table&#62;&#34;&#41;;<br /><br />&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br />The above javascript actually displays the FIST description and price of each item. If anyone has a solution, I'm sure its something stupid that I'm missing but I just cannot figure it out. I would greatly appreciate any assistance! If my code is messy, I apologize....I did my best <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br />THANK YOU IN ADVANCE!!]]></description>
		<pubDate>Fri, 23 Oct 2009 15:03:10 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28279</guid>
	</item>
	<item>
		<title>Tabs And Newlines</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28145</link>
		<description><![CDATA[So I'm working with XML now. The idea is that user input generates an XML doc in the browser, then the browser sends it to the server via AJAX, and the server saves it as a file. The file can be retrieved via AJAX for editing, and simpleXML can parse it for basic reports. It's a very tidy system. FWIW, XSL is not a factor.<br /><br />When I started developing, I used existing XML docs with all the tabs and returns you expect for human readability, and that looked normal to me, and I figured I'd just stick with that.<br /><br />When I created the editing routines, I found that XML DOM methods have no respect for white space in parent elements. The results are ugly. Maybe you've seen this. I am not aware of XML Object methods that reformat. (Maybe I missed something?)<br /><br />On the other hand, browsers and PHP don't care about tabs and returns.<br /><br />So now I'm thinking I'll just leave them out. My routines get streamlined, and I can cut back a little transmission time. (Though at most I'm talking a 500-1000 chars per file, so it's not a big deal.)<br /><br />In a plain text editor, files produced this way are not exactly human-readable (which spoils a traditional reason for choosing XML).<br /><br />But even the dumbest real editor restores the tabs and returns, so human-readability is not a serious concern.<br /><br />And I don't expect humans to read these documents except in emergencies.<br /><br />Should I worry about not having tabs and returns? Am I overthinking this? Or is there a bump down the road I'm not aware of?]]></description>
		<pubDate>Thu, 15 Oct 2009 16:07:48 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28145</guid>
	</item>
	<item>
		<title>Xsl-fo: Bordersettings On Fo:table-row</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28131</link>
		<description><![CDATA[Hello,<br /><br />i've created a asp.net website. <br />In one oy my sites i use appache.fop.net to geneate pdfs of the grids data on this site.<br /><br />Everythings works fine.<br /><br />Now i want to format my pdf with some borders ...<br /><br />If i try to set borders on fo:table-cell ... everything works a expected.<br />If i try to set borders on fo:table-row ... nothing happened.<br /><br />I looked here on W3Schools Objects Reference.<br />I found there same properties for <a href="http://www.w3schools.com/xslfo/obj_table-cell.asp" target="_blank">fo:table-cell </a> and <a href="http://www.w3schools.com/xslfo/obj_table-row.asp" target="_blank">fo:table-row</a>.<br /><br />Is it possible to use bordersettings on fo:table-row ?<br /><br />Thanks.<br /><br />Juergen<br /><br /><br />]]></description>
		<pubDate>Thu, 15 Oct 2009 08:57:34 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28131</guid>
	</item>
	<item>
		<title>Newbie Question: 3 Optional Elements, Yet One Of The Three Is Required</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28018</link>
		<description><![CDATA[I've tried a number of scenarios, but can't seem to hit on the correct configuration.<br /><br />I need to modify the complextype below to adhere to the following requirements:<br /><br />	1.  Although the NASD_CRD_Number, AlternateID & TaxID elements are optional, at least one of threee elements must be present on the request<br />	2.  Although one of the three elements must be present on the request, the remaining two elements can also be present.<br />	3.  An element can only be present once.<br /> <br />&lt;xsd:complexType name="AgentInformationListType"&gt;<br />  &lt;xsd:sequence&gt;<br />    &lt;xsd:element name="AgentInformation" minOccurs="1" maxOccurs="1"&gt;<br />      &lt;xsd:complexType&gt;<br />        &lt;xsd:all&gt;<br />          &lt;xsd:element name="CorrelationId" type="xsd:string" minOccurs="0" maxOccurs="1" /&gt;<br />          &lt;xsd:element name="NASD_CRD_Number" type="xsd:string" minOccurs="0" maxOccurs="1" /&gt;<br />          &lt;xsd:element name="AlternateID" type="xsd:string" minOccurs="0" maxOccurs="1" /&gt;<br />          &lt;xsd:element name="TaxID" type="xsd:string" minOccurs="0" maxOccurs="1" /&gt;<br />        &lt;/xsd:all&gt;<br />      &lt;/xsd:complexType&gt;<br />    &lt;/xsd:element&gt;<br />  &lt;/xsd:sequence&gt;<br />&lt;/xsd:complexType&gt;<br /><br />The closest I've come to a solution is below (please no snickering), but it has the following limitations:<br /><br />	1. a new element (XXX) is introduced into the structure<br />	2. it doesn't prevent one of the three elements from repeating  <br />	<br />&lt;xsd:complexType name="AgentInformationListType"&gt;<br />  &lt;xsd:sequence&gt;<br />    &lt;xsd:element name="AgentInformation" minOccurs="1" maxOccurs="1"&gt;<br />      &lt;xsd:complexType&gt;	<br />        &lt;xsd:all&gt;<br />          &lt;xsd:element name="CorrelationId" type="xsd:string" minOccurs="0" maxOccurs="1" /&gt;<br />          &lt;xsd:element name="XXX" type="XXX" minOccurs="0" maxOccurs="1" /&gt;<br />        &lt;/xsd:all&gt;<br />      &lt;/xsd:complexType&gt;<br />    &lt;/xsd:element&gt;<br />  &lt;/xsd:sequence&gt;<br />&lt;/xsd:complexType&gt;<br /><br />&lt;xsd:complexType name="XXX"&gt;<br />  &lt;xsd:choice minOccurs="1" maxOccurs="3"&gt;<br />    &lt;xsd:element name="NASD_CRD_Number" type="xsd:string"/&gt;<br />    &lt;xsd:element name="AlternateID" type="xsd:string"/&gt;<br />    &lt;xsd:element name="TaxID" type="xsd:string"/&gt;<br />  &lt;/xsd:choice&gt;<br />&lt;/xsd:complexType&gt;<br /><br />I also attempted to use xsd:group with the "ref" parameter, but couldn't get it to validate.<br /><br />Thanks !]]></description>
		<pubDate>Thu, 08 Oct 2009 12:12:38 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28018</guid>
	</item>
	<item>
		<title>How To Use A Web Interface To Execute A Batch Script At Host?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27933</link>
		<description><![CDATA[First of all; I'm not sure this is in the right section. Please feel free to move it if you deem that necessary.<br /><br />I'd like to know, as topic title states, if there is any way to use a web interface to execute a batch script on the host machine, which will be my home computer?<br />I haven't got any particular server software installed at the moment, so if there is a particular one I need there's no problem.<br /><br />Is there any way to achieve this at all? To make the host machine preform actions simply by using a web interface? I'm not talking about VPN services like LogMeIn or anything like that, just pure HTML with an input button.<br /><br />Thanks in advance!<br />NickBomb]]></description>
		<pubDate>Fri, 02 Oct 2009 15:53:35 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27933</guid>
	</item>
	<item>
		<title>Need Help To Encode String In Xsl</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27904</link>
		<description><![CDATA[Hi,<br /><br />Can someone please help me to encode string in XSL.<br />You can also suggest me any pointers on the same.<br />I searched on net but dint get concrete way to encode string.<br />Actually I want to generate password at XSLT level.<br />The input xml has password element which will hold password in string, after applying XSLT it will encode that string and will send it for further processing.<br /><br /><br />Thanks,<br />Sachin.<br />]]></description>
		<pubDate>Thu, 01 Oct 2009 04:51:07 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27904</guid>
	</item>
	<item>
		<title>Get Info From One Node To Apply To All Sub-nodes</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27902</link>
		<description><![CDATA[Hi <br />I'm in way over my head here .. VERY new to converting xml with xsl and <br />then i got this huge xml-form that I need to convert in order to import to a database.<br /><br />I've been trying back and forth with "for-each" but soon found out that I need some input<br />from the experts :-) <br /><br />The the below XML form I need the info (actually only info from a few &lt;fields&gt; under each &lt;card&gt;)<br />the &lt;field&gt;-info under &lt;card&gt; to be insertet for each &lt;article&gt; further below.  each card can have<br />one or more &lt;article&gt;. On top of this, only &lt;card&gt;'s with &lt;CARD  langID="5"&gt; should be extracted.<br />(there are many different languages in the file)<br /><br />I need to import this to an excel spreadsheet, to each &lt;article&gt; under each &lt;card&gt; followed by<br />the info from &lt;fields&gt; should be one row.<br /><br />To further mess things up, the &lt;articles&gt; with &lt;FIELD fieldName="Art nr" rowID="22776" langID="5"&gt;Art.-Nr.&lt;/FIELD&gt;<br />where text is text  and not a number (or a matched string "Art nr" = "Art.-Nr.") should not be included... not possible maybe ?<br />It could also drop the first &lt;article&gt; if there are more than one &lt;article&gt;.. if only one it has to be inlcuded.<br /><br />I tried to make a table with &lt;td&gt;'s from 1 to 20 and insert the info from each &lt;field&gt; in the &lt;td&gt; below to be able to copy the whole thing to excel. got all the info, but I'm clueless on how to get the "common info" from card-field under each article.<br /><br />MY xml-form:<br />  &lt;CARD prodCardID="36005" orgCardID="36002" langID="5" language="German" productNo=""<br />                cardName="100347, DRAGSET PREMIUM"&gt;<br />                &lt;FIELDS&gt;<br />                    &lt;FIELD name="Rubrik"&gt;BLINKER-SATZ PREMIUM&lt;/FIELD&gt;<br />                    &lt;FIELD name="Beskrivning"&gt;* Blinker-Satz für Barsch, Hecht o.ä.&lt;/FIELD&gt;<br />                    &lt;FIELD name="Bild/extratext"/&gt;<br />                    &lt;FIELD name="Katalogbild"&gt;Original:W100347.eps&lt;/FIELD&gt;<br />                    &lt;FIELD name="Nyhetsbild"/&gt;<br />                    &lt;FIELD name="Beskrivning web"&gt;* Blinker-Satz für Barsch, Hecht o.ä.&lt;/FIELD&gt;<br />                    &lt;FIELD name="Sökord"&gt;Blinker, Köder&lt;/FIELD&gt;<br />                    &lt;FIELD name="Art nr ref"&gt;100347, 100348, 100349&lt;/FIELD&gt;<br />                    &lt;FIELD name="Leverantör"&gt;STOXDAL&lt;/FIELD&gt;<br />                    &lt;FIELD name="PC"&gt;HM&lt;/FIELD&gt;<br />                    &lt;FIELD name="Sidnummer"&gt;6707&lt;/FIELD&gt;<br />                    &lt;FIELD name="Nyhet/år"&gt;08&lt;/FIELD&gt;<br />                    &lt;FIELD name="Webbild liten"&gt;Websmall/W100347.jpg&lt;/FIELD&gt;<br />                    &lt;FIELD name="Webbild stor"&gt;Weblarge/W100347.jpg&lt;/FIELD&gt;<br />                    &lt;FIELD name="webSubGroup"&gt;200&lt;/FIELD&gt;<br />                    &lt;FIELD name="Web länk 1 rubrik"/&gt;<br />                    &lt;FIELD name="Web länk 1"/&gt;<br />                    &lt;FIELD name="Web länk 2 rubrik"/&gt;<br />                    &lt;FIELD name="Web länk 2"/&gt;<br />                    &lt;FIELD name="Web länk 3 rubrik"/&gt;<br />                    &lt;FIELD name="Web länk 3"/&gt;<br />                    &lt;FIELD name="Katalogbild 2"&gt;Original:W100348.eps&lt;/FIELD&gt;<br />                    &lt;FIELD name="Katalogbild 3"&gt;Original:W100349.eps&lt;/FIELD&gt;<br />                    &lt;FIELD name="Katalogbild 4"/&gt;<br />                    &lt;FIELD name="Katalogbild 5"/&gt;<br />                    &lt;FIELD name="Katalogbild 6"/&gt;<br />                    &lt;FIELD name="Katalogbild 7"/&gt;<br />                    &lt;FIELD name="Extra fält"/&gt;<br />                    &lt;FIELD name="noweb"/&gt;<br />                &lt;/FIELDS&gt;<br />                &lt;ARTICLES&gt;<br />                    &lt;ARTICLE articleID="87947" cardID="36005" orgCardID="36002" tableID="6088"&gt;<br />                        &lt;FIELD fieldName="Art nr" rowID="22762" langID="5"&gt;Art nr&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Art nr katalog" rowID="22762" langID="5"&gt;Art.-Nr.&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Typ" rowID="22762" langID="5"&gt;Typ&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Gram" rowID="22762" langID="5"&gt;Gew.&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Pris" rowID="22762" langID="5"&gt;Preis&lt;/FIELD&gt;<br />                    &lt;/ARTICLE&gt;<br />                    &lt;ARTICLE articleID="87979" cardID="36005" orgCardID="36002" tableID="6088"&gt;<br />                        &lt;FIELD fieldName="Art nr" rowID="22773" langID="5"&gt;100348&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Art nr katalog" rowID="22773" langID="5"&gt;100348&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Typ" rowID="22773" langID="5"&gt;Hecht&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Gram" rowID="22773" langID="5"&gt;12-18 gr&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Pris" rowID="22773" langID="5"&gt;11,95&lt;/FIELD&gt;<br />                    &lt;/ARTICLE&gt;<br />                    &lt;ARTICLE articleID="87983" cardID="36005" orgCardID="36002" tableID="6088"&gt;<br />                        &lt;FIELD fieldName="Art nr" rowID="22775" langID="5"&gt;100349&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Art nr katalog" rowID="22775" langID="5"&gt;100349&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Typ" rowID="22775" langID="5"&gt;Küste&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Gram" rowID="22775" langID="5"&gt;10-20 gr&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Pris" rowID="22775" langID="5"&gt;11,95&lt;/FIELD&gt;<br />                    &lt;/ARTICLE&gt;<br />                    &lt;ARTICLE articleID="88273" cardID="36005" orgCardID="36002" tableID="6088"&gt;<br />                        &lt;FIELD fieldName="Art nr" rowID="22846" langID="5"&gt;100347&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Art nr katalog" rowID="22846" langID="5"&gt;100347&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Typ" rowID="22846" langID="5"&gt;Barsch&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Gram" rowID="22846" langID="5"&gt;7-12 gr&lt;/FIELD&gt;<br />                        &lt;FIELD fieldName="Pris" rowID="22846" langID="5"&gt;9,95&lt;/FIELD&gt;<br />                    &lt;/ARTICLE&gt;<br />                &lt;/ARTICLES&gt;<br />            &lt;/CARD&gt;<br /><br />This &lt;CARD&gt; has 4 &lt;ARTICLE&gt; the first should not be included<br />Each of the &lt;ARTICLE&gt;'s &lt;FIELD&gt; should be followed by the info in the &lt;FIELD&gt;'s  directly under &gt;CARD&gt;<br />in this case for the first &lt;ARTICLE&gt; export should look like this;<br />36002;100348;100348;Hecht;12-18 gr;11,95;BLINKER-SATZ PREMIUM;* Blinker-Satz für Barsch, Hecht o.ä.;Websmall/W100347.jpg;200<br /><br />This is after I've selected which &lt;FIELD&gt;'s to export from the &lt;CARD&gt; only need a few.<br /><br />Any bright heads that have any bright ideas on how to accomplish this ?!<br /><br />I hope I could explain it ok, my technical English is not all that good. :-)<br /><br />Tks.<br /><br />Eric]]></description>
		<pubDate>Thu, 01 Oct 2009 04:12:44 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27902</guid>
	</item>
	<item>
		<title>Xslt Header/footer For Word</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27884</link>
		<description><![CDATA[Hello,<br /><br />I want to create a word 2003 type document (.doc). I have a xml file and a xslt file. The first one has the data the second has the style. Then I combine these two through my c# code and create the doc file.<br /><br />Can you please help me into solving the below issues concerning the xslt?<br /><br /><br /><br />1)how can I define how big are the page margins?(top bottom left and right?)<br /><br />2)how can I define what is written in each page’s header and footer (I want all pages to have the same header and footer which will be a text that I will enter hardcoded)<br /><br /><br /><br />Thank you very much for your help in advance]]></description>
		<pubDate>Wed, 30 Sep 2009 10:00:24 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27884</guid>
	</item>
	<item>
		<title>How To Access Value Of A Node In A For-each When Multiple Same-named Children Exist</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27852</link>
		<description><![CDATA[Hello.<br /><br />I have an XML file which eventually leads to something like this:<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;function&gt;<br />  &lt;parameter name="param1"&gt;Param1 description.&lt;/parameter&gt;<br />  &lt;parameter name="param2"&gt;Param2 description here!&lt;/parameter&gt;<br />  &lt;parameter name="param3"&gt;Param3 does something else, maybe...&lt;/parameter&gt;<br />  &lt;returnValue&gt;Returns true if Danny gets it right.&lt;/returnValue&gt;<br />&lt;/function&gt;<br />&lt;function&gt;<br />  .. (similar) ..<br />&lt;/function&gt;</div><br /><br />By iterating through each &lt;parameter&gt; in a for-each loop -- per function, which is in its own loop -- I am able to get any parameters the function may have, whether it be 0, 1, or 50 of 'em.  My problem comes when I use the following XSLT code to get the values:<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;xsl:for-each select="parameter"&gt;<br />  &lt;xsl:valueof select="@name"/&gt;<br />  &lt;xsl:value-of select="&#46;&#46;/parameter"&gt;<br />&lt;/xsl:for-each&gt;<br />&lt;xsl:value-of select="returns"/&gt;<br /></div><br /><br />This is leading to no output of the &lt;parameter&gt; value itself.  If you're using what I've posted, then I'm looking for "Param1 description", "Param2 description here!", etc.  Instead, with the above XSLT file -- directed at "&#46;&#46;/parameter" after much trial and error -- I find myself just seeing:<br /><br />Param1 description<br />Param1 description<br />... (continues for each &lt;parameter&gt; tag)<br /><br />How can I access the value of the node used in the for-each loop without referencing up such that I end up at the first node repeatedly, instead drawing the value of each node iterated through?]]></description>
		<pubDate>Mon, 28 Sep 2009 18:38:47 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27852</guid>
	</item>
	<item>
		<title><![CDATA[[solved] How To Compare Two Differents Attributes]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27842</link>
		<description><![CDATA[Hello;<br /><br />   I have a little xml file, which is : <br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp;&#60;?xml version=&#34;1.0&#34; ?&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;db&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;cities&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;city cityName=&#34;aaa&#34; stateNumber=&#34;1&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;city cityName=&#34;bbb&#34; stateNumber=&#34;2&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;/cities&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;states&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;state stateName=&#34;ccc&#34; stateNumber=&#34;1&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;state sateName=&#34;ddd&#34; stateNumber=&#34;3&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;/states&#62; <br /><br />&nbsp;&nbsp; &#60;/db&#62;<!--c2--></div><!--ec2--><br /><br />    I want to compare between an attribute of &lt;city&gt; and an attribute of &lt;state&gt;<br />For this, I tried this code:<br />    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;xsl&#58;for-each select=&#34;/db&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;xsl&#58;if test=&#34;/db/cities/city@stateNumber=/db/states/state@stateNumber&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;td&#62;&nbsp;&nbsp; &#60;xsl&#58;value-of select=&#34;cities/city@cityName&#34; /&#62; &#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;&nbsp;&nbsp; xsl&#58;value-of select=&#34;cities/city@stateNumber&#34; /&#62; &#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;td&#62; &#60;xsl&#58;value-of select=&#34;states/state@stateNumber&#34; /&#62; &#60;/td&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;/xsl&#58;if&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;/xsl&#58;for-each&#62;<!--c2--></div><!--ec2--><br /><br />But, unfortunatelly, my xsl code doesn't work at all. The browser display an error message in my xsl file. for example in firefox, I got this kind of messages: Error loading stylesheet: XPath parse failure: binary operator expected:<br /><br />Thank you in advance]]></description>
		<pubDate>Mon, 28 Sep 2009 09:39:48 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27842</guid>
	</item>
	<item>
		<title>File Access On A Browser</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27837</link>
		<description>I would like to process an XML file on a computer from a program on that computer.  This is not a web based application.  What language should I use?</description>
		<pubDate>Mon, 28 Sep 2009 06:05:30 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27837</guid>
	</item>
	<item>
		<title>Ie6 Compatability Xml</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27760</link>
		<description><![CDATA[JS<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->oldTextAry = new Array&#40;&#41;;<br />var xmlDoc;<br />if &#40;window.XMLHttpRequest&#41;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc=new window.XMLHttpRequest&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc.open&#40;&#34;GET&#34;,&#34;data.xml&#34;,false&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc.send&#40;&#34;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc=xmlDoc.responseXML;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />else if &#40;ActiveXObject&#40;&#34;Microsoft.XMLDOM&#34;&#41;&#41;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc=new ActiveXObject&#40;&#34;Microsoft.XMLDOM&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc.async=false;&nbsp;&nbsp;xmlDoc.load&#40;&#34;data.xml&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<!--c2--></div><!--ec2--><br /><br />Unfortunately this doesn't load DATA.XML for IE6<br /><br />How should I get it to load for IE6?]]></description>
		<pubDate>Wed, 23 Sep 2009 13:58:26 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27760</guid>
	</item>
	<item>
		<title><![CDATA[[xslt] Group Tags To Prioritize The Xml File]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27710</link>
		<description><![CDATA[Hello, <br /><br />I have 2 problems with an xml file:<br /><br />1. the original xml has no structure because all the tags (except the root element) are at the same level. What I want to do is to insert a tag &lt;toto&gt;, whose children would be one &lt;FM1Titre&gt; and all the tags that follow it until the next tag &lt;FM1Titre&gt;. <br /><br />2. I would like to report the content of the tag FM1Titre as the name of the tag that I have mentionned above. <br /><br />Here is a part of the xml file: <br /><br />&lt;XML&gt; <br />&lt;FM1Titre&gt;Description &lt;/FM1Titre&gt; <br />&lt;Bloc-paragraphe&gt;La table mère permet de paramétrer les tables. &lt;/Bloc-paragraphe&gt; <br />&lt;Bloc-paragraphe&gt;Toute nouvelle table doit être créée en premier lieu dans la table mère.&lt;/Bloc-paragraphe&gt; <br /><br />&lt;FM1Titre&gt;Détails techniques &lt;/FM1Titre&gt; <br />...&lt;/XML&gt; <br /><br />What I would like to obtain after transformation : <br /><br />&lt;XML&gt; <br />&lt;Description&gt; <br />&lt;FM1Titre&gt;Description &lt;/FM1Titre&gt; <br />&lt;Bloc-paragraphe&gt;La table mère permet de paramétrer les tables. &lt;/Bloc-paragraphe&gt; <br />&lt;Bloc-paragraphe&gt;Toute nouvelle table doit être créée en premier lieu dans la table mère.&lt;/Bloc-paragraphe&gt; <br />&lt;/Description&gt; <br /><br />&lt;Détails techniques&gt; <br />&lt;FM1Titre&gt;Détails techniques &lt;/FM1Titre&gt; <br />&lt;/Détails techniques&gt; <br /><br />...&lt;/XML&gt; <br />My researches have been unsuccessful (research on the net, on proposed solutions on the forum) and I begin to think that it is maybe impossible to do that with XSLT 1.0.<br />I use to find a solution to problem of that kind but this time I do not manage to find an answer by myself, so if anyone could have a solution or a track, please help me...<br /><br />]]></description>
		<pubDate>Mon, 21 Sep 2009 10:58:11 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27710</guid>
	</item>
	<item>
		<title><![CDATA[[xslt] Group Tags To Prioritize The Xml File]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27709</link>
		<description><![CDATA[Hello, <br /><br />I have 2 problems with an xml file:<br /><br />1. the original xml has no structure because all the tags (except the root element) are at the same level. What I want to do is to insert a tag &lt;toto&gt;, whose children would be one &lt;FM1Titre&gt; and all the tags that follow it until the next tag &lt;FM1Titre&gt;. <br /><br />2. I would like to report the content of the tag FM1Titre as the name of the tag that I have mentionned above. <br /><br />Here is a part of the xml file: <br /><br />&lt;XML&gt; <br />&lt;FM1Titre&gt;Description &lt;/FM1Titre&gt; <br />&lt;Bloc-paragraphe&gt;La table mère permet de paramétrer les tables. &lt;/Bloc-paragraphe&gt; <br />&lt;Bloc-paragraphe&gt;Toute nouvelle table doit être créée en premier lieu dans la table mère.&lt;/Bloc-paragraphe&gt; <br /><br />&lt;FM1Titre&gt;Détails techniques &lt;/FM1Titre&gt; <br />...&lt;/XML&gt; <br /><br />What I would like to obtain after transformation : <br /><br />&lt;XML&gt; <br />&lt;Description&gt; <br />&lt;FM1Titre&gt;Description &lt;/FM1Titre&gt; <br />&lt;Bloc-paragraphe&gt;La table mère permet de paramétrer les tables. &lt;/Bloc-paragraphe&gt; <br />&lt;Bloc-paragraphe&gt;Toute nouvelle table doit être créée en premier lieu dans la table mère.&lt;/Bloc-paragraphe&gt; <br />&lt;/Description&gt; <br /><br />&lt;Détails techniques&gt; <br />&lt;FM1Titre&gt;Détails techniques &lt;/FM1Titre&gt; <br />&lt;/Détails techniques&gt; <br /><br />...&lt;/XML&gt; <br />My researches have been unsuccessful (research on the net, on proposed solutions on the forum) and I begin to think that it is maybe impossible to do that with XSLT 1.0.<br />I use to find a solution to problem of that kind but this time I do not manage to find an answer by myself, so if anyone could have a solution or a track, please help me...<br /><br />Thanks in advance.<br />]]></description>
		<pubDate>Mon, 21 Sep 2009 10:56:38 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27709</guid>
	</item>
	<item>
		<title>Loading Child Nodes Dynamically?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27707</link>
		<description><![CDATA[So, what I need to do is I need to display all the Options &lt;OPT&gt; of a product &lt;PR&gt; whenever it's selected<br /><br />How do you load all the Options &lt;OPT&gt; but only for each product &lt;PR&gt;?<br /><br />JS<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->oldTextAry = new Array&#40;&#41;;<br />var xmlDoc;<br />if &#40;window.XMLHttpRequest&#41;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc=new window.XMLHttpRequest&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc.open&#40;&#34;GET&#34;,&#34;data.xml&#34;,false&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc.send&#40;&#34;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc=xmlDoc.responseXML;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />else if &#40;ActiveXObject&#40;&#34;Microsoft.XMLDOM&#34;&#41;&#41;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc=new ActiveXObject&#40;&#34;Microsoft.XMLDOM&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc.async=false;&nbsp;&nbsp;xmlDoc.load&#40;&#34;data.xml&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />var x=xmlDoc.getElementsByTagName&#40;&#34;PR&#34;&#41;;i=0;<!--c2--></div><!--ec2--><br /><br />XML<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;PRODUCT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;PR&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;TITLE&#62;1E Series Cylinders - 1E2 Rim Cylinder&#60;/TITLE&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;IMG&#62;http&#58;//www.asdf.com/images/cache/asdf.com-dc8ca9ef266a32a6fc42c80fbd39eb77.jpg&#60;/IMG&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;ENL&#62;http&#58;//www.asdf.com/images/cache/asdf.com-b21e748612010de9b9c722fd474419d4.jpg&#60;/ENL&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;LINK&#62; &#60;/LINK&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;INFO&#62; &#60;/INFO&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPTION&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;1&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;2&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;3&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;4&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;5&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/OPTION&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/PR&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;PR&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;TITLE&#62;1E6 Tapered Mortise Cylinder&#60;/TITLE&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;IMG&#62;http&#58;//www.asdf.com/images/cache/asdf.com-9cb55aa0848d4c3fdd53b3600a6d8eb3.jpg&#60;/IMG&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;ENL&#62;http&#58;//www.asdf.com/images/cache/asdf.com-d92d734b54b185fa6bd551673a3d63af.jpg&#60;/ENL&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;LINK&#62; &#60;/LINK&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;INFO&#62; &#60;/INFO&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPTION&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;3&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;4&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;5&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;8&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;OPT&#62;3&#60;/OPT&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/OPTION&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/PR&#62;<br />&#60;/PRODUCT&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Mon, 21 Sep 2009 10:26:44 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27707</guid>
	</item>
	<item>
		<title>Wamp Localhost Not Responding</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27686</link>
		<description>I just recently installed Wamp when I decided that Xampp was too much of a hassle because of all the crashes.  When I attempt to visit localhost in my browser, it loads infinitely.  Just a white page, and it never finishes loading.  No firefox errors come up, no internal server error pages, nothing.  it just keeps loading nothing.</description>
		<pubDate>Fri, 18 Sep 2009 23:56:00 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27686</guid>
	</item>
	<item>
		<title>My First Job, How Much Should I Ask For?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27670</link>
		<description><![CDATA[Someone who has a wrestling company wants me to make his website. He wants me to build his website from scratch, full with a content management system. It looks to me like it's going to take a few weeks to complete. He's asking me how much I will charge him. Could you look at what he's asking me to do and tell me what you think I should charge him? I was thinking $3,200 but I don't know.<br /><br /><u>And overview of what he wants</u><br />- Approximately 8 to 10 pages<br />-Technologies: xhtml, dhtml, javascript, ajax, php, mysql<br />-Custom CMS (built from the ground up)<br />-User Control Panel <br /><br />It's all built from the ground up but some people download a CMS. I'm building one from scratch.<br />How much do you estimate this costs?<br /><br />His quote (confusing and unorganized)-<br /><!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Website Pages<br /><br />Backstage 2 provides website pages for the following page types:<br /><br />    * Content<br />    * News Articles<br />    * News Archives<br />    * Automatic Roster List<br />    * Character Biography<br />    * Champions and Contenders<br />    * Title History<br />    * Card<br />    * Results<br />    * Results Archives<br /><br /> <br /><br />Admin Panel<br /><br />Login Panel <br /><br />    * Single login point for administrators and wrestlers<br />    * Wrestlers can access all of their available characters with one login<br />    * Administrators can access all characters and use all editing and posting features, as well as site configuration tools<br /><br /> <br /><br />Character/Team Types<br /><br />All biography types support biography editing, and news posting, allies and rivals selection and quotes. <br /><br />          o Singles: A wrestler<br />                + Singles wrestles can be used individually or to form tag teams or stables.<br />          o Tag Team: A team consisting of two singles wrestlers.<br />                + It is necessary to create the singles biographies for each team member in order to complete the tag team biography.<br />                + If team members change, the system will keep record of former members.<br />          o Stable: A group consisting of up to five singles wrestlers or other character types.<br />                + It is necessary to create the biographies for each stable member in order to complete the stable biography.<br />                + If stable members change, the system will keep record of former members.<br />          o Manager/Valet: A non-competing person usually employed by a wrestler or team.<br />                + Singles, Tag Teams or Stables can have a single manager.<br />          o Staff: A non-competing person usually employed by the company, e.g. CEO, General Manager, Interviewer, Ring Crew.<br />          o Referee: Match official.<br />                + Referees are associated with individual matches in the show compiler.<br /><br /> <br /><br />Biographies<br /><br />          o Online layout manager - advanced coding knowledge not needed to make unique bio layouts. Single or multiple pages.<br />          o Custom fields - add additional fields without manually modifying source code or the database.<br />          o Newest Wrestler RSS feed - automatically announce your latest signing to the website.<br /><br /> <br /><br />Content Management<br /><br />          o Administrators can add static content pages (e.g. rules, faq) to the website via the admin panel.<br />          o Appearance of each page is determined by selecting from header and footer templates.<br /><br /> <br /> <br /> <br /><br />Integrated News Publishing<br /><br />          o Administrators can add unlimited news categories.<br />          o Posting permissions for each category includes Admin Only or All Users.<br />          o Wrestlers post news as the selected character with finalize approval by Admin.<br />          o News history can be listed in the character bio.<br /><br /> <br /><br />Integrated Results Management<br /><br />          o Event Booking<br />                + Pre-Defined Arena List<br />                + Unlimited Matches<br />                + Hype Each Match<br />                + Add / Remove / Reorder Matches<br />          o Event Compilation<br />                + Matches and segments are posted in wrestlerlogin area.<br />                + Unlimited Matches and Segments can be posted from within the administration pages.<br />                + Associate characters with matches and segments. Headshots appear automatically in the results.<br />                + Administrators compile events - drag and drop reordering of submissions to build card<br />          o Archiving<br />                + Archiving is done automatically. Once a show has been set to Public, it automatically appears in the show archive list. No further action is required by the card compiler.<br />                + Flexible archive list - include a variety of information about each event, e.g. date, arena, what the main event was, custom comments.<br />                + Searchable<br />          o Win/Loss Records<br />                + Administrators are presented with a list of the matches and the competitors. Select the match type, tick win, loss, draw or no-contest, everything else is done for you to count records and calculate statistics.<br />          o Appearance/Layout<br />                + Layouts are extremely flexible. Templates can be assigned per show type, and each show can have custom elements (images etc).<br />          o Booking Notification<br /><br /> <br /><br />Integrated Championship Management<br /><br />          o Champions<br />                + Unlimited Titles<br />                + Singles, Tag or Stables can have titles<br />                + List up to 3 contenders for each title<br />                + All characters on champions/contenders page automatically linked to their bios<br />                + Make titles inactive but keep the history<br />          o Title Histories<br />                + Title histories listed per title and integrated in with the character's match history in their bio.<br />                + Extremely easy maintanance for the card compiler or other site administrator.<br /><br /> <br /><br />Handler Tools<br /><br />          o Active Wrestlers/Characters directory lists all active wrestlers along with the name of their name and the characters that they handle and their email address. Great for keeping track of who is who and keeping in contact.<br /><br /> <br /> <br /> <br /> <br /> <br /> <br /><br />Site Integration<br /><br />Templates<br /><br />Templates contain code sections that act as headers and footers which are then applied to content pages, news articles or any other output from Backstage . It is similar to using PHP or SSI Includes, however the code sections are fixed at the very start and very end of whatever the templates are applied to.<br /><br />A single template can be applied to an unlimited number of output pages. An infinite number of templates can be created.<br />CSS<br />Dynamic Menu Systems<br /> <br /><br />Database<br /><br />Backstage utilizes MYSQL to store data. Custom queries can be created that provide a high level of uniqueness between different sites. <br /><br />Administrators Guide<br /><br />          o Add/Edit/Delete Wrestlers<br />          o Add/Edit/Delete Characters<br />                + Retired Characters: Do not delete them. Put them to Inactive. Deleting them affects results archives.<br />          o Add/Edit/Delete Championships<br />                + Discontinued Titles: Do not delete them. Put them to Inactive. Deleting them affects results archives.<br />          o Add/Edit/Delete Show Names<br />          o Book A Show<br />                + Setup: Select Show Name, Enter Label (e.g. consecutive number), Enter location.<br />                + Add Matches<br />                + Title Matches: Select the championship being competed for during the match.<br />                + Set Status<br />                      # Pre-Booking: Set new booking to "Pre Booking" to allow the administrator to build the card without giving away the match lineup to non-admin users.<br />                      # Booking: Set booking to "Booking" to allow members to submit matches and segments for the event.<br />          o Compile A Show<br />                + Edit Matches/Segments<br />                + Set Participants: Participants headshots appear at the top of each match/segment.<br />                + Set Interference: Interferences are listed on the character bio page of the interferer, but not specifically noted on the results.<br />                + Reorder Matches/Segments<br />                + Make Show Public<br />                + Edit Title History Comments<br /><br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br />Users Guide<br /><br />    * Change Your Character: If you have multiple characters, simply select whichever character you want to edit or post as from the drop-down menu at the top of the backstage login page. If the dropdown isn't there, the site administrator must enable additional characters for your wrestler account.<br />    * Update Bio Page<br />    * Submit Quoes<br />    * Post News<br /><br /> <br /><br />Site Integration <br /><br />Template Management<br /><br />          o CMS Templates: They can be used for Content Pages, News Article Pages, Bio Layouts, and Default Pages<br />          o Bio Templates: Allow biographies to be formatted without directly editing script files<br /><br /> <br /><br />Content Pages<br /><br />Default Page is the Content Page or News Group when accessing index.php <br /><br />Standard Pages<br /><br />Weekly Card and Next Weekly Card: CSS<br /><br />Results Archives and News Archives: CSS<br /><br />Champions and Contenders: CSS <br /><br />File List and Purpose<br /><br />backstage.php<br /><br />backstageajax.php<br /><br />backstagefunctions.php<br /><br />backstagefunctionscustom.php<br /><br />bio.php<br /><br />content.php<br /><br />index.php<br /><br />resort.php<br /><br />rssfeed.php<br /><br />backstage.css: Controls the appearance of the administration console<br /><br />kow.css: Controls the appearance of the output pages within the website<!--QuoteEnd--></div><!--QuoteEEnd-->]]></description>
		<pubDate>Thu, 17 Sep 2009 18:23:34 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27670</guid>
	</item>
	<item>
		<title>Substring For Selecting Only Last X No. Of Characters</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27630</link>
		<description><![CDATA[Hi i have a counting number i continually recieve in messages the number is going to continue counting and adding digits<br /><br />e.g. &lt;number&gt;54321&lt;/number&gt; will eventually be &lt;number&gt;654321&lt;/number&gt;  AND &lt;number&gt;987654321&lt;/number&gt; and so on.<br /><br />What i want is only digits 1,2,and 3<br /><br />as the total length will change i cant use substring-after(//number,3,3) which would work for the first as when i hit 9 digits it would give a different result]]></description>
		<pubDate>Tue, 15 Sep 2009 08:53:26 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27630</guid>
	</item>
	<item>
		<title>Show More Attributes By An Element</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27361</link>
		<description>****</description>
		<pubDate>Fri, 11 Sep 2009 07:39:33 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27361</guid>
	</item>
	<item>
		<title>Xmpp Tutorial</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27179</link>
		<description><![CDATA[I've searched a while but couldn't find a good XMPP tutorial anywhere, the specification is on <a href="http://xmpp.org" target="_blank">xmpp.org</a>. But it's completely in XML-Schema, which may be human-readable, but not human friendly. <img src="http://w3schools.invisionzone.com/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> <br /><br />If anyone is interested in working his way through the .xsd files, or knows a lot about XMPP already, maybe they could make a tutorial on W3Schools. It would fit nice with all the other XML tutorials]]></description>
		<pubDate>Thu, 10 Sep 2009 15:48:38 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27179</guid>
	</item>
	<item>
		<title>Unordered Elements</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27173</link>
		<description><![CDATA[Hi, <br />I'm working on an XML definition of a web application and I need to create an XML Schema for this definition. However I'm having trouble with the order of the elements. With the xs:sequens tag I can get a specified order of the selected elements as the following code shows:<br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><br />&lt;xs:element name="Panel" maxOccurs="unbounded"&gt;<br />	&lt;xs:complexType mixed="true"&gt;<br />	    &lt;xs:sequence&gt;<br />		&lt;xs:element name="Button" minOccurs="0" maxOccurs="unbounded"&gt;<br />			...<br />		&lt;/xs:element&gt;<br />		&lt;xs:element name="Image" minOccurs="0" maxOccurs="unbounded"&gt;<br />                        ...<br />		&lt;/xs:element&gt;<br />	    &lt;/xs:sequence&gt;<br />	&lt;/xs:complexType&gt;<br />&lt;/xs:element&gt;<br /></div><br />This makes it possible to create a Panel element and within it add Button and Image elements in sequence where the Button element/elements have to be added before the Image element/elements. But how do i define in the XML Schema that the Button and Image element can appear in whatever order and numbers as in the example below?<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><br />&lt;Panel&gt;<br />     &lt;Image/&gt;<br />     &lt;Button/&gt;<br />     &lt;Button/&gt;<br />     &lt;Image/&gt;<br />     &lt;Button/&gt;<br />     ...<br />&lt;/Panel&gt;<br /></div><br /><br />I cant't find the specified functionality and I am thankful for all the help I can get.]]></description>
		<pubDate>Thu, 10 Sep 2009 14:05:29 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27173</guid>
	</item>
	<item>
		<title>Rss Feed</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27169</link>
		<description><![CDATA[Okay,<br /><br />I have a blog and I guess it has an RSS feed.  <br /><br />In order to incorporate this into my website, I need a RSS Reader and then a script that accesses this reader to display the blog content or updates?  Or I can use a 3rd party provider?  So they run the RSS REader and then send me the readable feed?  <br /><br />Is that basically how it works?  If so if I find an RSS reader, I can run it on my own server and then script it.  <br /><br />Thanks Much<br /><br />HKIM]]></description>
		<pubDate>Thu, 10 Sep 2009 02:09:31 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27169</guid>
	</item>
	<item>
		<title>Query Xml</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27159</link>
		<description><![CDATA[I'm learning to work with XML as a storage option for a web application I'm building. I chose XML, because unlike databases, for my purpose I can allow my XML "records" have a dynmic ammount of data (i.e. one root tag can have 4 children, the next can have 2, and so on). I know that, technically, valid XML has to have a DTD that prevents that effect, but for my purposes it's not important to include a DTD to limit it. Anyway, on to my actual question.<br /><br />I'm learning to parse my XML using the PHP XML Expat tutorial. I was wondering if there was a querying system that would allow me to parse only certain data. Something along the lines of what PHP MySQL can do. I want myself and a couple other people to be able to use this application to add whatever data, edit whatever data, and read whatever data.<br /><br />The reason that I cannot use databasing effectively for this particular application is because, as I mention, two "records" that are categorized in the same place may have a different amount of data. A good example is one part of this application helps us keep track of small sales we make. One customer could buy one item, another could buy 6, and so on. It'd be hard to make a structured database to keep track of it all efficiently. It could be done, yes, but I'd have to make more databse tables and write the application to read through each table and find all the relating data to one transaction when (if Expat can) I can kep all the data from a transaction in one "record" and have PHP just search for that particular transaction. Make sense?<br /><br />Can it be done?]]></description>
		<pubDate>Wed, 09 Sep 2009 11:44:39 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27159</guid>
	</item>
	<item>
		<title>How To Add Gadgets To My Website</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27133</link>
		<description><![CDATA[Hi everyone, <br /><br />I have a website and wonder how to add gadgets, e.g. <a href="http://www.google.com/ig/modules/datetime.xml" target="_blank">http://www.google.com/ig/modules/datetime.xml</a> , to it. <br /><br />Your instructions would be appreciated. <br /><br />Best regards <br />Mori]]></description>
		<pubDate>Mon, 07 Sep 2009 15:55:10 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27133</guid>
	</item>
	<item>
		<title>Iterating Through Xml Help</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27118</link>
		<description><![CDATA[if anyone could answer this id greatly appreciate. im a bit confused how iterating through xml works<br /><br />if i have say three roots with tag album. and each contained several child tags "name". and each name tag has a text value say &lt;name&gt;Bob&lt;/name&gt;<br /><br /><br />if i use:<br />var x = getElementsByTagName("album")[0].getElementsByTagName("name");<br /><br /><br />is x now an array of just the first albums name tags right?<br /><br />and if i wanted to access specific names i just call x[i].childNodes[0].nodeValue;<br /><br /><br />is this right?<br /><br /><br /><br /><br /><br /><br />also does anyone know where i can find a tutorial on how to make a custom picasa web template]]></description>
		<pubDate>Mon, 07 Sep 2009 03:55:29 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27118</guid>
	</item>
	<item>
		<title>Addind New Datatype Into A Owl File For Furthering Using</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27117</link>
		<description><![CDATA[Hi all, I m actually dealing with adding into my owl file a new coordinate datatype feature. I m having problems while parsing with turtle.<br />What I want to do is:<br />1)Create my new datatype as follows:<br /><br />&lt!-- Spatial coord--&gt;<br />&lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;<br />&lt;xsd:element name="coordinate" type="xsd:string"/&gt;<br />&lt;/xsd:schema&gt;<br /><br /><br />2)getting my domain new type associated (owl stuff)<br /><br />&lt;owlatatypeProperty rdf:ID="has_Coordinate"&gt;<br />&lt;rdfs:domain rdf:resource="#E47.Spatial_Coordinates"/&gt;<br />&lt;rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#coordinate"/&gt;<br />&lt;/owlatatypeProperty&gt;<br /><br /><br />3)Defining the literal as my new type:<br /><br />&lt;has_Coordinate rdf:datatype="http://www.w3.org/2001/XMLSchema#coordinate"&gt; &lt;coord&gt;40.483890533447266,-3.36331844329834<br />&lt;/coord&gt;<br />&lt;/has_Coordinate&gt;<br /><br /><br />I think my problems begin in the referring namespace. Got next error while parsing with turtle: rdf:datatype specified on a node with resource value!! Any suggestion would be in advance thanks, Carlos]]></description>
		<pubDate>Mon, 07 Sep 2009 03:46:57 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27117</guid>
	</item>
	<item>
		<title>Help Loading In Xml- Ie8 Error</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27095</link>
		<description><![CDATA[so im running the following at the top of my javascript file<br /><br /><br /><br />var xmlDoc;<br />xmlDoc=new window.XMLHttpRequest();<br />xmlDoc.open("GET","books.xml",false);<br />xmlDoc.send("");<br /><br />var urls = new Array();<br />var descrip = new Array();<br />			<br />			var urlSize=xmlDoc.getElementsByTagName("image");<br />			for(i=0; i&lt;urlSize.length; i++){<br />				urls[i] = ""+urlSize[i].getElementsByTagName("itemLargeImage")[0].childNodes[0].nodeValue;<br />				descrip[i] = ""+urlSize[i].getElementsByTagName("itemCaption")[0].childNodes[0].nodeValue;<br />			}<br /><br /><br /><br /><br /><br />----<br />trying to create a custom picasa template/html gallery<br />i cant get it to load properly in IE8. -i dont really care for anything under 8 as ive already handeled thatelsewhere.<br /><br />why i cant get past, is the line<br /><br />xmlDoc.open("GET","books.xml",false);<br /><br />seems to break IE8 somehow?<br /><br />am i doing this right?<br /><br /><br /><br /><br />]]></description>
		<pubDate>Sun, 06 Sep 2009 05:13:29 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27095</guid>
	</item>
	<item>
		<title>Using Xpath In A Schema</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27068</link>
		<description><![CDATA[Hmm, I just started out on learning XPath for Schema recently. I am trying to define a model for an xml document, which in turn will describe the syntax of some text file used in a Java application.<br /><br />I just don't understand how XPath works. There are lots of examples in the tutorial, and theoretically I understand, but in practice, it would just not work for me <img src="http://w3schools.invisionzone.com/style_emoticons/default/dry.gif" style="vertical-align:middle" emoid="&lt;_&lt;" border="0" alt="dry.gif" /> <br /><br />I have this xml fragment:<br /><!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->&lt;commandTemplate <i>schema binding</i>&gt;<br />&lt;metainfo&gt;<br />&lt;components&gt;<br />&lt;inlinecomment&gt; &lt;marker char="" /&gt; &lt;closer char="" /&gt; &lt;/inlinecomment&gt;<br />&lt;argumentList&gt; &lt;separator char="" /&gt; &lt;/argumentList&gt;<br />&lt;valueList&gt; &lt;separator char="" /&gt; &lt;/valueList&gt;<br />&lt;commandName&gt; &lt;marker char="" /&gt; &lt;/commandName&gt;<br />&lt;argumentName&gt; &lt;marker char="" /&gt; &lt;/argumentName&gt;<br />&lt;/components&gt;<br />&lt;/metainfo&gt;<br />&lt;/commandTemplate&gt;<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />And I want the schema to force uniqueness on each and evere "char" attribute here. And this would not work at all:<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt!-- ... --&gt;<br />&lt;xs:element name="commandTemplate"&gt;<br />&lt;xs:complexType&gt; &lt!-- shortened out --&gt; &lt;/xs:complexType&gt;<br />&lt;xs:key name="keyChar"&gt;<br />&lt;xs:selector xpath="marker | separator | closer"&gt;&lt;/xs:selector&gt;<br />&lt;xs:field xpath="@char"&gt;&lt;/xs:field&gt;<br />&lt;/xs:key&gt;<br />&lt;/xs:element&gt;<br />&lt!-- ... --&gt;</div><br /><br />The point is, I am unsure if my XML editor (using Eclipse IDE) show the error in any xml document using this schema, if it has non-unique char attributes. I just assume it does, but I can't find a working example of the key element with due XPath expressions.<br /><br />Edit: I found bits of information about that Eclipse might not support binding between keys and elems/attris, through the modeling system. I think it means my code could be correct, but that only the editor cannot tell if the xml document conforms the xsd in that way. Thus, I cannot know what I am doing <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> So, how to lay this binding between "char" attributes and an xs:key?]]></description>
		<pubDate>Thu, 03 Sep 2009 14:44:31 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27068</guid>
	</item>
	<item>
		<title>Import Xml Into Sql2005 Using Asp</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27042</link>
		<description><![CDATA[HI,<br /><br />I have a xml file and would like to import its contents into a table in<br />SQl2005.<br /><br />can some one tell me how? <br /><br />Thanks]]></description>
		<pubDate>Wed, 02 Sep 2009 03:41:19 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27042</guid>
	</item>
	<item>
		<title>Ajax And Ie8</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=27028</link>
		<description><![CDATA[I am having a problem with an AJAX request and IE8. I am requesting an XML document as follows:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->var shipto = false<br />&nbsp;&nbsp;&nbsp;&nbsp;if&#40;window.XMLHttpRequest&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shipto = new XMLHttpRequest&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;shipto.overrideMimeType&#41;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shipto.overrideMimeType&#40;&#34;text/xml&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;}else if &#40;window.ActiveXObject&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shipto = new ActiveXObject&#40;&#34;Microsoft.XMLHTTP&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />function getShipto&#40;&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;if&#40;shipto&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shipto.open&#40;&#34;GET&#34;, '/webwiz/wwiz.asp?wwizmstr=W_GET_SHIPTO_XML', true&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shipto.onreadystatechange = function&#40;&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;shipto.readyState == 4 && shipto.status == 200&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//do something<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shipto.send&#40;null&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<!--c2--></div><!--ec2--><br /><br />If I look at the responseText in IE8, I can see the XML document. However, I need the responseXML and IE8 keeps saying object required every time I try and extract data from it. This is how I am trying to extract the data:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->var obj = shipto.responseXML<br />obj.getElementsByTagName&#40;&#34;stname&#34;&#41;&#91;0&#93;.firstChild.data<!--c2--></div><!--ec2--><br /><br />am I doing something wrong? Any help would be great. Thank you.]]></description>
		<pubDate>Tue, 01 Sep 2009 12:07:07 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=27028</guid>
	</item>
	<item>
		<title>Edit Xsl File</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26995</link>
		<description><![CDATA[Is it possible to navigate through an xsl file and edit a template in it and save it like if it was an xml files with javascript ?<br /><br /><br />Lets say i want to edit a tag with the id="4",then when its an xml file i would do a:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->var path = &#34;//tag&#91;@id&#91;text&#40;&#41;='&#34;4&#34;'&#93;&#93;&#34;;<br />var node = SelectSingleNode&#40;xsl,path&#41;;<!--c2--></div><!--ec2--><br /><br />if my xml file is <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;tag = &#34;4&#34;&#62;blabla&#60;/tag&#62;;<!--c2--></div><!--ec2--><br /><br />But what if the file i want to edit is an xsl and it is:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp; &#60;xsl&#58;template match=&#34;tag&#34;&#62;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description of the tag<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xsl&#58;template&#62;<!--c2--></div><!--ec2--><br /><br />how do i select that template and then save it back to the server ?]]></description>
		<pubDate>Sun, 30 Aug 2009 01:10:26 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26995</guid>
	</item>
	<item>
		<title>Trouble Using Exslt:node-set() Function When Affecting Conditionned Variable Value</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26978</link>
		<description><![CDATA[Hello<br /><br />Basically, i have this code <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;xsl&#58;template name=&#34;myTemplate&#34;&#62;<br /> &#60;xsl&#58;param name=&#34;newNodeSet&#34;/&#62; &lt!-- this is, of course, one node --&gt;<br /> &#60;xsl&#58;param name=&#34;defaultNodeSet&#34;/&#62; &lt!-- this is another node --&gt;<br /><br />&#60;xsl&#58;variable name=&#34;myNodeToWorkWith&#34;&#62;<br /> &#60;xsl&#58;choose&#62;<br />&nbsp;&nbsp; &#60;xsl&#58;when test=&#34;$newNodeSet&#34;&#62;&#60;xsl&#58;value-of select=&#34;$newNodeSet&#34;/&#62;&#60;/xsl&#58;when&#62;<br />&nbsp;&nbsp; &#60;xsl&#58;otherwise&#62;&#60;xsl&#58;value-of select=&#34;$defaultNodeSet&#34;/&#62;&#60;/xsl&#58;otherwise&#62;<br /> &#60;/xsl&#58;choose&#62;<br />&#60;/xsl&#58;variable&#62;<br /><br />&#60;xsl&#58;value-of select=&#34;exsl&#58;node-set&#40;$myNodeToWorkWith&#41;/Address&#91;type='Business'&#93;/city&#34;/&#62;<br />&#60;/xsl&#58;template&#62;<!--c2--></div><!--ec2--><br /><br /><br />this returns nothing.<br /><br />Of course, i have the exsl definition on my xsl:stylesheet node : xmlns:exsl="http://exslt.org/common"<br /><br />This should work<br /><br />I know this is working if the &lt;xsl:variable&gt; is actually using &lt;xsl:element&gt; but i want use the fragment tree result as is.<br />Do you know if it is possible or i shouldn't waste my time searching again and again why the exsl:node-set is not understanding my xpath.<br /><br />FYI, the XML i need looks like this :<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;Me&#62;<br />&nbsp;&nbsp;&#60;AddressBook&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;Address&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;type&#62;Business&#60;/type&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;street&#62;street&#60;/street&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;zip&#62;the zip code&#60;/zip&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;city&#62;the city name&#60;/city&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/Address&#62;<br />&nbsp;&nbsp;&#60;/AddressBook&#62;<br />&#60;/Me&#62;<br />&#60;You&#62;<br />&nbsp;&nbsp;&#60;AddressBook&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;Address&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;type&#62;Home&#60;/type&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;street&#62;street&#60;/street&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;zip&#62;the zip code&#60;/zip&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;city&#62;the city name&#60;/city&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/Address&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;Address&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;type&#62;Business&#60;/type&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;street&#62;street&#60;/street&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;zip&#62;the zip code&#60;/zip&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;city&#62;the city name&#60;/city&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/Address&#62;<br />&nbsp;&nbsp;&#60;/AddressBook&#62;<br />&#60;/You&#62;<!--c2--></div><!--ec2--><br /><br />And i'll use my template this way<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;xsl&#58;call-template name=&#34;myTemplate&#34;&#62;<br /> &#60;xsl&#58;with-param name=&#34;newNodeSet&#34; select=&#34;Me/AddressBook&#34;/&#62; &lt!-- this is, of course, one node --&gt;<br /> &#60;xsl&#58;with-param name=&#34;defaultNodeSet&#34; select=&#34;You/AddressBook&#34;/&#62; &lt!-- this is another node --&gt;<br />&#60;/xsl&#58;call-template&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Fri, 28 Aug 2009 12:48:35 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26978</guid>
	</item>
	<item>
		<title>Dom Problem Parsing Empty Tag</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26950</link>
		<description><![CDATA[Hello All,<br /><br />I am having an issue using DOM to parse a XML document that is produced by a third party website. This XML document is a valid XML document. I have saved a copy of the XML and checked it to make sure it is valid. The parsing script I am working on uses a recursive method to retrieve a parent node and all of the nodes within the parent and its children. However, when the script gets to an empty node i.e. (&lt;NodeName /&gt;) it bombs. An example of the script is as follows:<br /><br />/*********************************** Code Starts Here *********************************************/<br /><br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;script type="text/javascript"&gt;<br />var parentNodeArray;<br />var childNodeArray;<br />var xmlhttp;<br />var siblingArray = [];<br />var finalArray = [];<br /><br />function loadXMLDoc(url){<br /><br />xmlhttp=null;<br /><br />xmlhttp=new XMLHttpRequest();<br />  <br />	if (xmlhttp!=null){<br /><br />    xmlhttp.onreadystatechange=state_Change;<br />  	<br />    xmlhttp.open("GET",url,true);<br />  	<br />    xmlhttp.send(null);<br />		<br />  }<br />}<br /><br />function state_Change(){<br /><br />if (xmlhttp.readyState==4){<br /><br />  if (xmlhttp.status==200){<br />		  //Getting the desired metric<br />  		parentNodeArray=xmlhttp.responseXML.documentElement.getElementsByTagName("AC04");<br />			<br />			//Getting child nodes of metric<br />			childNodeArray=parentNodeArray[0].childNodes;<br />			<br />			//looping through the array<br />			for(var i=0; i &lt; childNodeArray.length; i++){<br /><br />				if(!childNodeArray[i].firstChild.hasChildNodes){																									<br />				     document.write(childNodeArray[i].firstChild.nodeValue + "&lt;br/&gt;");<br />						<br />				}else{<br />              			 <br />                         var childNode=childNodeArray[i].firstChild;<br />                         <br />                         siblingArray[0] = childNode;<br />                                                                                         <br />                         var finalArray = GetAllSiblings(childNode);<br />                                                                <br />                         for(var y = 0; y &lt; finalArray.length; y++){<br />                             var grandChildNodeArray = finalArray[y].childNodes<br />                             <br />                             for(var z = 0; z &lt; grandChildNodeArray.length; z++){<br />                             		document.write(grandChildNodeArray[z].firstChild.nodeValue+"&lt;br/&gt;");<br />                             }<br />                         }<br />                             <br />                         siblingArray = [];<br />                                   <br />				}<br />			}																														 <br />    }else{<br />    	alert("Problem retrieving XML data:" + xmlhttp.statusText);<br />    }<br />  }<br />}<br /><br />/*********** getAllSiblings ******************/<br /><br />function GetAllSiblings(node){<br />	var sibling = node.nextSibling;<br /> <br />	while(sibling != null){<br />          siblingArray[siblingArray.length] = sibling;<br />          return GetAllSiblings(sibling);<br />     }<br />   return siblingArray;<br />}<br /><br />&lt;/script&gt;<br />&lt;/head&gt;<br /><br />&lt;body onload="loadXMLDoc('http://www.helpussaveamerica.org/davesXML.xml')"&gt;<br /><br />&lt;/body&gt;<br />&lt;/html&gt;<br /><br />/*********************************** Code Ends Here *********************************************/<br /><br />If one were to copy paste the above code into an html application (a file ending in .hta for those of you that aren't familiar with html applications) when opened   the application would start and parse all of the values out up to the empty tag and then it will bomb stating object required. I need to find a way to get past the empty tag without editing the xml as I cannot edit the original on the third party site. Any help with this will be greatly appreciated.<br /><br />Thanks,<br /><br />]]></description>
		<pubDate>Thu, 27 Aug 2009 11:02:50 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26950</guid>
	</item>
	<item>
		<title>Sorting The Data From Xml File In Descending Order</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26891</link>
		<description><![CDATA[Hi guys I want to sort and print the data from xml file in descending order. I tried it using xsl:sort but thats not working.<br />I am pasting the code below please help me figure out how to do it.... <br /><br />xml<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br />&lt;ListItems&gt;<br />  &lt;ListItem&gt;<br />    &lt;Attachments&gt;False&lt;/Attachments&gt;<br />    &lt;LinkTitle&gt;Ahello&lt;/LinkTitle&gt;<br />    &lt;desc&gt;To read more Click &lt;/desc&gt;<br />    &lt;image href="/Communities/Directorates/Logistics/Newpage/images/New1.JPG"&gt;<br />    &lt;/image&gt;<br />    &lt;more href="/pa/apr09expo.pdf"&gt;more&lt;/more&gt;<br />    &lt;FileRef&gt;/Communities/Directorates/Logistics/Lists/news/1_.000&lt;/FileRef&gt;<br />    &lt;FileDirRef&gt;Communities/Directorates/Logistics/Lists/news&lt;/FileDirRef&gt;<br />    &lt;FileLeafRef&gt;1_.000&lt;/FileLeafRef&gt;<br />    &lt;ServerUrl&gt;/Communities/Directorates/Logistics/Lists/news/1_.000&lt;/ServerUrl&gt;<br />    &lt;BaseName&gt;1_&lt;/BaseName&gt;<br />    &lt;ID&gt;1&lt;/ID&gt;<br />    &lt;_ModerationStatus&gt;0&lt;/_ModerationStatus&gt;<br />    &lt;_Level&gt;1&lt;/_Level&gt;<br />    &lt;owshiddenversion&gt;1&lt;/owshiddenversion&gt;<br />    &lt;UniqueId&gt;00721fc7-4e47-4d1e-b48e-4ab5cab12730&lt;/UniqueId&gt;<br />    &lt;FSObjType&gt;0&lt;/FSObjType&gt;<br />    &lt;Created_x0020_Date&gt;8/5/2009 8:26&lt;/Created_x0020_Date&gt;<br />    &lt;Created&gt;8/5/2009 1:26:24 PM&lt;/Created&gt;<br />  &lt;/ListItem&gt;<br />  &lt;ListItem&gt;<br />    &lt;Attachments&gt;False&lt;/Attachments&gt;<br />    &lt;LinkTitle&gt;Recycling Programs&lt;/LinkTitle&gt;<br />    &lt;desc&gt;D &lt;/desc&gt;<br />    &lt;image href="/Communities/Directorates/Logistics/Newpage/images/lgSusLogo2.jpg"&gt;<br />    &lt;/image&gt;<br />    &lt;more href="/sites/9/FMO/Newletter/LG%20Newletter%20-%20June%2009.1.pdf"&gt;more&lt;/more&gt;<br />    &lt;FileRef&gt;/Communities/Directorates/Logistics/Lists/news/2_.000&lt;/FileRef&gt;<br />    &lt;FileDirRef&gt;Communities/Directorates/Logistics/Lists/news&lt;/FileDirRef&gt;<br />    &lt;FileLeafRef&gt;2_.000&lt;/FileLeafRef&gt;<br />    &lt;ServerUrl&gt;/Communities/Directorates/Logistics/Lists/news/2_.000&lt;/ServerUrl&gt;<br />    &lt;BaseName&gt;2_&lt;/BaseName&gt;<br />    &lt;ID&gt;2&lt;/ID&gt;<br />    &lt;_ModerationStatus&gt;0&lt;/_ModerationStatus&gt;<br />    &lt;_Level&gt;1&lt;/_Level&gt;<br />    &lt;owshiddenversion&gt;7&lt;/owshiddenversion&gt;<br />    &lt;UniqueId&gt;fd24ae04-5f2c-4c96-b2a3-9f5f8032ce2b&lt;/UniqueId&gt;<br />    &lt;FSObjType&gt;0&lt;/FSObjType&gt;<br />    &lt;Created_x0020_Date&gt;8/5/2009 9:08&lt;/Created_x0020_Date&gt;<br />    &lt;Created&gt;8/5/2009 2:08:25 PM&lt;/Created&gt;<br />  &lt;/ListItem&gt;<br />  &lt;ListItem&gt;<br />    &lt;Attachments&gt;False&lt;/Attachments&gt;<br />    &lt;LinkTitle&gt;the Warehouse&lt;/LinkTitle&gt;<br />    &lt;desc&gt; To read more click &lt;/desc&gt;<br />    &lt;image href="/Communities/Directorates/Logistics/Newpage/images/New3.JPG"&gt;<br />    &lt;/image&gt;<br />    &lt;more href="/C17/Project%20WMS/Newsletters/WMS%20Let%27s%20Move%20It!%20Special%20Edition.pdf"&gt;more&lt;/more&gt;<br />    &lt;FileRef&gt;/Communities/Directorates/Logistics/Lists/news/3_.000&lt;/FileRef&gt;<br />    &lt;FileDirRef&gt;Communities/Directorates/Logistics/Lists/news&lt;/FileDirRef&gt;<br />    &lt;FileLeafRef&gt;3_.000&lt;/FileLeafRef&gt;<br />    &lt;ServerUrl&gt;/Communities/Directorates/Logistics/Lists/news/3_.000&lt;/ServerUrl&gt;<br />    &lt;BaseName&gt;3_&lt;/BaseName&gt;<br />    &lt;ID&gt;3&lt;/ID&gt;<br />    &lt;_ModerationStatus&gt;0&lt;/_ModerationStatus&gt;<br />    &lt;_Level&gt;1&lt;/_Level&gt;<br />    &lt;owshiddenversion&gt;3&lt;/owshiddenversion&gt;<br />    &lt;UniqueId&gt;47c0bc49-fc15-40d2-9713-188402062ea6&lt;/UniqueId&gt;<br />    &lt;FSObjType&gt;0&lt;/FSObjType&gt;<br />    &lt;Created_x0020_Date&gt;8/5/2009 9:09&lt;/Created_x0020_Date&gt;<br />    &lt;Created&gt;8/5/2009 2:09:42 PM&lt;/Created&gt;<br />  &lt;/ListItem&gt;<br />  &lt;ListItem&gt;<br />    &lt;Attachments&gt;False&lt;/Attachments&gt;<br />    &lt;LinkTitle&gt;ASI VIDEO&lt;/LinkTitle&gt;<br />    &lt;desc&gt;ASI VIDEO &lt;/desc&gt;<br />    &lt;image href="/Communities/Directorates/Logistics/Newpage/images/videoimg.png"&gt;<br />    &lt;/image&gt;<br />    &lt;more href="/Communities/Directorates/Logistics/Newpage/images/LOGISTICS ASI.wmv"&gt;more&lt;/more&gt;<br />    &lt;FileRef&gt;/Communities/Directorates/Logistics/Lists/news/4_.000&lt;/FileRef&gt;<br />    &lt;FileDirRef&gt;Communities/Directorates/Logistics/Lists/news&lt;/FileDirRef&gt;<br />    &lt;FileLeafRef&gt;4_.000&lt;/FileLeafRef&gt;<br />    &lt;ServerUrl&gt;/Communities/Directorates/Logistics/Lists/news/4_.000&lt;/ServerUrl&gt;<br />    &lt;BaseName&gt;4_&lt;/BaseName&gt;<br />    &lt;ID&gt;4&lt;/ID&gt;<br />    &lt;_ModerationStatus&gt;0&lt;/_ModerationStatus&gt;<br />    &lt;_Level&gt;1&lt;/_Level&gt;<br />    &lt;owshiddenversion&gt;4&lt;/owshiddenversion&gt;<br />    &lt;UniqueId&gt;a74a5c02-fc6b-4e33-9120-f88800018f87&lt;/UniqueId&gt;<br />    &lt;FSObjType&gt;0&lt;/FSObjType&gt;<br />    &lt;Created_x0020_Date&gt;8/18/2009 7:40&lt;/Created_x0020_Date&gt;<br />    &lt;Created&gt;8/18/2009 12:40:07 PM&lt;/Created&gt;<br />  &lt;/ListItem&gt;<br />&lt;/ListItems&gt;</div><br /><br /><br />xslt<br /><br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><br />&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt!-- DWXMLSource="news.xml" --&gt; <br />&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;<br />&lt;xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/&gt;<br />&lt;xsl:template match="/"&gt;<br /><br />&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;<br />&lt;title&gt;Untitled Document&lt;/title&gt;<br /><br />&lt;STYLE type="text/css"&gt;<br />&lt!--<br />html <br />{ <br />  direction:;<br />  background-attachment:fixed; <br />  scrollbar-arrow-color: #ffffff;<br />  scrollbar-track-color: #999999;<br />  scrollbar-face-color: #000000;<br />  scrollbar-highlight-color: ;<br />  scrollbar-3dlight-color: ;<br />  scrollbar-darkshadow-color: ;<br />  scrollbar-shadow-color: ;<br />}<br />--&gt;<br />&lt;/STYLE&gt;<br /><br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />&lt;table cellspacing="0px" cellpadding="1px" style="width:560px; border:0px; color:#999999;"&gt;<br />&lt;tr&gt;<br />&lt;th align='center' colspan="2" style=" background-image:url(images/posttop1.gif); background-repeat:repeat; height:30px; color: #CCCCCC; font:Arial, Helvetica, sans-serif; font-size:18px; font-weight:bold;"&gt;LOGISTICS NEWS&lt;/th&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;div style="width:580px; height: 300px; overflow-x:hidden ;overflow-y:scroll;"&gt;<br />&lt;table cellspacing="0px" cellpadding="1px" style="width:560px;border:0px; color:#999999;"&gt;<br /><br />&lt;xsl:for-each select="ListItems/ListItem"&gt;<br /><br />&lt;xsl:sort select="id" order="descending"/&gt;<br /><br />&lt;tr style="background-image: url(images/postmiddle1.gif); background-repeat:repeat; width:560px; height:130px;"&gt;<br /><br />&lt;td width="85"&gt;&lt;img src="{image/@href}" width="125" height="120" align="right" style="border: solid; border-color:#999999; border-width:2px; "/&gt;&lt;/td&gt;<br /><br /><br />&lt;td width="416" align="center"&gt;&lt;div style="font:Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; color:#999999;"&gt;&lt;u&gt;&lt;xsl:value-of select="LinkTitle"/&gt;<br />&lt;/u&gt;&lt;/div&gt;<br /><br />&lt;div style="font:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#525757;"&gt;<br /><br />&lt;xsl:value-of select="desc/div|desc"/&gt;<br /><br />&lt;a&gt;&lt;xsl:attribute name="href"&gt;<br />       &lt;xsl:value-of select="more/@href"/&gt;&lt;/xsl:attribute&gt; <br />       &lt;xsl:value-of select="more"/&gt; <br />       &lt;/a&gt;<br /><br />&lt;/div&gt;<br /><br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/xsl:for-each&gt;<br /><br />&lt;tr&gt;<br />&lt;td colspan="2" style=" background-image:url(images/postbottom1.gif); color:#000000"&gt;.s<br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;/div&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /><br />&lt;/xsl:template&gt;<br />&lt;/xsl:stylesheet&gt;</div>]]></description>
		<pubDate>Mon, 24 Aug 2009 11:15:32 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26891</guid>
	</item>
	<item>
		<title>Wordpress Plugin Not Working Properly.</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26866</link>
		<description><![CDATA[Here goes the noob question, folks. So I have installed this Wordpress plugin for my site, thespartana.net, called flShow (it's the Flash image rotator in the middle of the page). However, I want to display pop-up titles when your mouse hovers over each image. I have followed the instructions <a href="http://flshow.net/carousel/titles.html" target="_blank">here</a> and I still cannot get it to work. In fact, I have tried other ways of altering the plugin (linked pictures, etc.) and they still do not work. Any help you can give me is greatly appreciated. Thanks.]]></description>
		<pubDate>Sat, 22 Aug 2009 13:56:15 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26866</guid>
	</item>
	<item>
		<title>Replacing Html Line Break To Fo:block</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26847</link>
		<description><![CDATA[Hello,<br /><br />let's say there is the following structure:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;element&#62;Row 1 &lt;br /&gt; Row 2&#60;/element&#62;<!--c2--></div><!--ec2--><br />Which actually represents this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;element&#62;Row 1 &#60;br/&#62; Row 2&#60;/element&#62;<!--c2--></div><!--ec2--><br />How can I replace this line break with an fo:block element. I've already tried the following:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;xsl&#58;template match=&#34;br&#34;&#62;<br />&nbsp;&nbsp;&#60;fo&#58;block&#62;&#60;/fo&#58;block&#62;<br />&#60;/xsl&#58;template&#62;<!--c2--></div><!--ec2--><br />However, the line break seems to be treated as normal text in &lt;element&gt;. Is there any way to replace this?<br /><br />Robert]]></description>
		<pubDate>Fri, 21 Aug 2009 04:06:19 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26847</guid>
	</item>
	<item>
		<title>Different Element Names</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26804</link>
		<description><![CDATA[I think the solution to my problem is very easy, but i couldn't fint it <img src="http://w3schools.invisionzone.com/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /><br />So, here is:<br /><br />I have an XML which have a list of elements with different names, but in sequence. <br />An example:<br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;DOC&gt;<br /> &lt;DOC_OBL_1&gt;<br />  &lt;TIP_DOC_OBL&gt;1&lt;/TIP_DOC_OBL&gt; <br /> &lt;/DOC_OBL_1&gt;<br /> &lt;DOC_OBL_2&gt;<br />  &lt;TIP_DOC_OBL&gt;2&lt;/TIP_DOC_OBL&gt; <br />  &lt;/DOC_OBL_2&gt;<br /> &lt;DOC_OBL_3&gt;<br />  &lt;TIP_DOC_OBL&gt;3&lt;/TIP_DOC_OBL&gt;  <br /> &lt;/DOC_OBL_3&gt;<br />&lt;/DOC&gt;</div><br />So, i have 3 elements: DOC_OBL_1, DOC_OBL_2 and DOC_OBL_3. And yes, there could be number 4, 5, 6, etc.<br />As you can se, all 3 have the same elements inside(actually, they have a lot of them, but arent important righ now), and I thinked i could declare a general type which could validate this kind of documents.<br /><br />How can i validate this with an Schema???<br /><br />I know its a very ugly XML (maybe it isnt standard, please tell me, i dont know), but It's not my concern to build this document. I just have to parse it, validate it and transform it.<br /><br />You can just link to the solution, any help will be wellcome.<br /><br />PD: im an english (language) student &gt;.&lt;]]></description>
		<pubDate>Wed, 19 Aug 2009 08:12:52 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26804</guid>
	</item>
	<item>
		<title>W3schools Xml Tutorial: A Simple Cd Catalog Application.</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26791</link>
		<description><![CDATA[This is in reference to the Xml Tutorial: A simple CD catalog application found at: <a href="http://www.w3schools.com/xml/tryit.asp?filename=tryxml_app" target="_blank">http://www.w3schools.com/xml/tryit.asp?filename=tryxml_app</a><br /><br />I'm new to Xml and Javascrpt. I love this Xml Tutorial and have adapted it for my personal recipies. When you click on a table row, the full album information pops up. How can I make this pop up in a new window?<br /><br />I've tried target="_blank" and window.open and still can't get it to work.]]></description>
		<pubDate>Wed, 19 Aug 2009 01:30:47 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26791</guid>
	</item>
	<item>
		<title>Xml Navigator</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26785</link>
		<description><![CDATA[First I just want to say thank you for your awesome XML tutorial. I've been wanting to do this for ages but you've given me a clear and concise example of how to achieve this but I have a problem with the Navigation side.<br /><br />Your example worked perfectly but not how I need it to work.<br /><br />Instead of displaying the page information how do I get it to actually go to the Next or Previous articles on clicking on the page?<br /><br />I'm picking the answer lies where I've marked <b>&lt;-- I think this needs to be changed yeah????</b><br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function next()<br />{<br />if (i&lt;x.length-1)<br />  {<br />  i++;<br />  display(); &lt;-- I think this needs to be changed yeah????<br />  }<br />}<br /><br />function previous()<br />{<br />if (i&gt;0)<br />  {<br />  i--;<br />  display(); &lt;-- I think this needs to be changed yeah????<br />  }<br />}</div><br /><br />That being said what do I change it to?<br /><br />Please note I have no real experience of using Javascript so I'm using all of this as learning as well so if you could provide full code instead of a line or so in order for me to learn and understand what's going on I will be eternally grateful.<br /><br />Thanks.<br />]]></description>
		<pubDate>Tue, 18 Aug 2009 16:25:13 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26785</guid>
	</item>
	<item>
		<title>Google Links</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26784</link>
		<description>How to build links to the web site that google will track it? My web site is about  bounce houses.</description>
		<pubDate>Tue, 18 Aug 2009 16:09:18 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26784</guid>
	</item>
	<item>
		<title>Xml Attributes And Node Data Using Xslt</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26777</link>
		<description><![CDATA[Anyone have any suggestions on some XSLT I can write to pull the data out of the nodes using the attributes for each node? I know it's ugly, but I'm out of ideas. <br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'> &lt;AnswerSet&gt;<br />    &lt;Answer firstName="FName"&gt;asdfa&lt;/Answer&gt;<br />    &lt;Answer lastName="LName"&gt;asdf&lt;/Answer&gt;<br />    &lt;Answer userEmail="Email"&gt;asdf&lt;/Answer&gt;<br />    &lt;Answer userFeedback="Description"&gt;asdf sdfsdf&lt;/Answer&gt;<br />  &lt;/AnswerSet&gt;<br />  &lt;AnswerSet&gt;<br />    &lt;Answer firstName="FName"&gt;r&lt;/Answer&gt;<br />    &lt;Answer lastName="LName"&gt;r&lt;/Answer&gt;<br />    &lt;Answer userEmail="Email"&gt;fgfgf&lt;/Answer&gt;<br />    &lt;Answer userFeedback="Description"&gt;fgfg&lt;/Answer&gt;<br />  &lt;/AnswerSet&gt;</div>]]></description>
		<pubDate>Tue, 18 Aug 2009 13:41:35 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26777</guid>
	</item>
	<item>
		<title>Implementation Or Xmlhttp?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26776</link>
		<description>What is the difference between parsing xml using document.implementation and using the xmlhttp method?</description>
		<pubDate>Tue, 18 Aug 2009 13:26:41 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26776</guid>
	</item>
	<item>
		<title>Using Xslt To Only Copy Specific Nodes.</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26739</link>
		<description><![CDATA[I know how to do an identity transform, and I know how to filter specific nodes out, but how do I specify that you copy only specific nodes and everything else (comments, etc.)?<br /><br />For example:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;mmmm&#58;RetrieveSomething xmlns&#58;clcs=&#34;http&#58;//www.mycorp.com/mmmm/retrieval/retrievesomthing&#34; xmlns&#58;xsi=&#34;http&#58;//www.w3.org/2001/XMLSchema-instance&#34; xsi&#58;schemaLocation=&#34;http&#58;//www.mycorp.com/mmmm/retrieval/retrievesomething RetrieveSomething.xsd&#34; CorrelationId=&#34;123456789&#34; Version=&#34;1.0&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;Return Status=&#34;Success&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;AccountType&#62;M&#60;/AccountType&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;ProgramName&#62;TEST NAME&#60;/ProgramName&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;EnrollmentChannel&#62;Web&#60;/EnrollmentChannel&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;EnrollmentDetails&#62;http&#58;//mycorp&#60;/EnrollmentDetails&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;CustomerId&#62;12345678901234&#60;/CustomerId&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;MemberRowId&#62;222222222222222&#60;/MemberRowId&#62;<br />&#60;/mmmm&#58;RetrieveSomething&#62;<!--c2--></div><!--ec2--><br /><br /><br />Suppose all I wanted to see was:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;mmmm&#58;RetrieveSomething xmlns&#58;clcs=&#34;http&#58;//www.mycorp.com/mmmm/retrieval/retrievesomthing&#34; xmlns&#58;xsi=&#34;http&#58;//www.w3.org/2001/XMLSchema-instance&#34; xsi&#58;schemaLocation=&#34;http&#58;//www.mycorp.com/mmmm/retrieval/retrievesomething RetrieveSomething.xsd&#34; CorrelationId=&#34;123456789&#34; Version=&#34;1.0&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;Return Status=&#34;Success&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;EnrollmentChannel&#62;Web&#60;/EnrollmentChannel&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;MemberRowId&#62;222222222222222&#60;/MemberRowId&#62;<br />&#60;/mmmm&#58;RetrieveSomething&#62;<!--c2--></div><!--ec2--><br /><br /><br />What should the xslt look like to accomplish that?<br /><br />I thought that I could try to first copy over all non-nodes then focus on the nodes and list the specific ones I wanted to copy but I could not get it to work.<br /><br />Again, I don't want to filter out specific nodes, I just want to copy specific ones!<br /><br />Thanks.<br /><br />]]></description>
		<pubDate>Fri, 14 Aug 2009 16:57:04 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26739</guid>
	</item>
	<item>
		<title>Cdata Section Parser Error</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26715</link>
		<description><![CDATA[Hi All,<br /><br />My application generate a XML file contains special characters (ex: pound sign ) with encoding:UTF-8, which when opened via IE giving an error -<br />An invalid character was found in the text content. Error processing resource...&lt;filename&gt; <br /> <br />Tag causing problem:<br />----<br />&lt;InvoiceMessages&gt;<br />&lt;InvoiceMessage&gt;&lt;![CDATA[Love the mobile web?  You can now get unlimited web access for just £1 a day. Perfect for checking the news, having a peep on facebook, or sticking a bid on ebay.]]&gt;&lt;/InvoiceMessage&gt;<br />&lt;/InvoiceMessages&gt;<br />----<br />The header of the file generated contains says –encoding: UTF-8. <br />Header of the file:<br />&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />Question: Could someone suggest me why the XML file is not being opened by Internet explorer? Is there any syntax error in the CDATA section of above  "InvoiceMessages" tag? <br /><br />The content between the &lt;![CDATA[ and ]]&gt; should be ignored by Parser, why still getting the Error while opened via IE?<br />in other words....<br />The special character(ex: pound sign ) within the CDATA section, should not be parsed....why I am still getting the ERROR?]]></description>
		<pubDate>Thu, 13 Aug 2009 12:54:23 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26715</guid>
	</item>
	<item>
		<title>How To Keep Block And Table Together?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26708</link>
		<description><![CDATA[Hi,<br />i'm new to XSLT, using fop 0.95. Is there any way to force keeping together &lt;fo:block&gt; with &lt;fo:table&gt; when breaking a page. "keep-with-next" property doesn't work <img src="http://w3schools.invisionzone.com/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />. This &lt;fo:block&gt; can not be a part of a table. Thank you in advance for your help.]]></description>
		<pubDate>Thu, 13 Aug 2009 03:28:25 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26708</guid>
	</item>
	<item>
		<title>Need Help With This Html To Xml Transform</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26701</link>
		<description><![CDATA[I am not sure this is the right place for this. But i will try it here. I am very troubled with my XSLT. Trying to transform a text Coupon which has the following html for it. So,<br /><b><br />1. INPUT is:</b><br /><br />&lt;html&gt;<br />&lt;head&gt;<br /><br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;p&gt;<br />This coupon is for a good guy whose first name is :<br />&lt;/p&gt;<br />&lt;p&gt;<br /><br />&lt;/p&gt;<br />&lt;p align="center"&gt;<br />Sadd<br />&lt;/p&gt;<br />&lt;p align="center"&gt;<br /><br />&lt;/p&gt;<br />&lt;p align="right"&gt;<br />&lt;b&gt;also&lt;/b&gt; whose &lt;var&gt;full_name&lt;/var&gt; is Sadd Hossain<br />&lt;/p&gt;<br />&lt;p align="left"&gt;<br /><br />&lt;/p&gt;<br />&lt;p align="left"&gt;<br />He is a &lt;font size="3"&gt;software &lt;/font&gt;&lt;font size="4"&gt;engineer for&lt;/font&gt;&lt;font size="5"&gt;<br />S&H&lt;/font&gt;<br />&lt;/p&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /><br /><b><br />*2. output needed is:</b><br /><br />&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br /><br /><br /><br />  &lt;POSMESSAGE&gt;<br />    &lt;TextMSG&gt;<br />      This coupon is for a &lt;emph&gt;good guy&lt;/emph&gt; whose first name is :<br />    &lt;/TextMSG&gt;<br /><br />&lt;LF/&gt;<br /><br />    &lt;TextMSG align="center"&gt;<br />      &lt;SIZE ="3"&gt;&lt;emph&gt;SADD&lt;/emph&gt;&lt;/SIZE&gt;<br />    &lt;/TextMSG&gt;<br />    <br />&lt;LF/&gt;<br /><br />    &lt;TextMSG align="right"&gt;<br />      also whose full_name is Sadd Hossain<br />    &lt;/TextMSG&gt;<br />   <br />&lt;LF/&gt;<br /><br />    &lt;TextMSG align="left"&gt;<br />      He is a &lt;SIZE ="5"&gt;&lt;emph&gt;software engineer&lt;/emph&gt;&lt;/SIZE&gt; for S&amp;H<br />    &lt;/TextMSG&gt;<br />  &lt;/POSMESSAGE&gt;<br /><br /><br /><b>*3. XSLT for this</b><br /><br />&lt;xsl:stylesheet<br />xmlns:xsl="http://www.w3.org/1999/XSL/Transform"<br />version="2.0"&gt;<br /><br />&lt;xsl:template match="body"&gt;<br />&lt;POSMESSAGE&gt;<br />&lt;xsl:apply-templates/&gt;<br />&lt;/POSMESSAGE&gt;<br />&lt;/xsl:template&gt;<br /><br />&lt;xsl:template match="p"&gt;<br />&lt;TextMSG&gt;<br />&lt;xsl:copy-of select="@align"/&gt;<br />&lt;xsl:apply-templates/&gt;<br />&lt;/TextMSG&gt;<br />&lt;/xsl:template&gt;<br /><br />&lt;xsl:template match="b"&gt;<br />&lt;emph&gt;<br />&lt;xsl:copy-of select="@b"/&gt;<br />&lt;xsl:apply-templates/&gt;<br />&lt;/emph&gt;<br />&lt;/xsl:template&gt;<br /><br />&lt;xsl:template match="font size"&gt;<br />&lt;SIZE&gt;<br />&lt;xsl:copy-of select="@size"/&gt;<br />&lt;xsl:apply-templates/&gt;<br />&lt;/SIZE&gt;<br />&lt;/xsl:template&gt;<br /><br /><br />&lt;/xsl:stylesheet&gt;<br /><br /><b>*4: the above xslt generating this output*</b><br /><br />&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />  <br />    <br />  <br />  &lt;POSMESSAGE&gt;<br />    &lt;TextMSG&gt;<br />      This coupon is for a &lt;emph&gt;good guy&lt;/emph&gt; whose first name is :<br />    &lt;/TextMSG&gt;<br />    &lt;TextMSG&gt;<br />      <br />    &lt;/TextMSG&gt;<br />    &lt;TextMSG align="center"&gt;<br />      &lt;SIZE size="3"&gt;&lt;emph&gt;SADD&lt;/emph&gt;&lt;/SIZE&gt;<br />    &lt;/TextMSG&gt;<br />    &lt;TextMSG align="center"&gt;<br />      <br />    &lt;/TextMSG&gt;<br />    &lt;TextMSG align="right"&gt;<br />      also whose full_name is Sadd Hossain<br />    &lt;/TextMSG&gt;<br />    &lt;TextMSG align="left"&gt;<br />      <br />    &lt;/TextMSG&gt;<br />    &lt;TextMSG align="left"&gt;<br />      He is a &lt;SIZE size="5"&gt;&lt;emph&gt;software engineer&lt;/emph&gt;&lt;/SIZE&gt; for S&amp;H<br />    &lt;/TextMSG&gt;<br />  &lt;/POSMESSAGE&gt;<br /><br /><br /><br />[b]notice that i have now &lt;SIZE size="5"&gt; but i really needed &lt;SIZE ="5"&gt; where I am doing the mistake????? If you could let me know.<br /><br /><br />another last thing which i did not try yet as I could not solve this size issue is i have to transform any empty &lt;p&gt; with &lt;LF&gt; like in the above output where I have :<br /><br />&lt;TextMSG&gt;<br /><br />&lt;/TextMSG&gt;<br /><br />or<br /><br />&lt;TextMSG align="left"&gt;<br /><br />&lt;/TextMSG&gt;<br /><br />I have to replace it with just &lt;LF/&gt;<br /><br />or if you think it in terms of input<br /><br />&lt;p&gt;<br /><br />&lt;/p&gt;<br /><br />or<br /><br />&lt;p align="left"&gt;<br /><br />&lt;/p&gt;<br /><br /><br /><br />I have to replace it empty &lt;p&gt;s with &lt;LF/&gt;<br /><br /><br />If you could shed any light about this also will be extremely helpful. thank you again]]></description>
		<pubDate>Wed, 12 Aug 2009 18:45:57 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26701</guid>
	</item>
	<item>
		<title>Using Php To Output Mysql As An Xml File?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26695</link>
		<description><![CDATA[Hey guys,<br />      I have a database that I created using mysql command line. I need to output this data as an XML file, using PHP so that I can take the XML information and use it in an api map. Does anyone know how to do this? Or have a link to a good article on how to do this. Thanks in advance for the help.  <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />]]></description>
		<pubDate>Wed, 12 Aug 2009 14:37:12 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26695</guid>
	</item>
	<item>
		<title>Domdocument : Select Element By Unique Id</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26689</link>
		<description><![CDATA[Hi. I´m learning about xml to feed a photo gallery. <br /><br />I´m able to read the file by simple_xml. But now i´m trying to set new values by users interface.<br /><br />I think the best way to achieve taht is using PHP DomDocument . But how? Documentation is really hard to find and to understand.<br /><br />Here my xml structure: <br /><br />&lt;galeria&gt;<br /><br />&lt;photo id='a2.jpg'&gt;<br />&lt;titulo&gt;Heres the title&lt;/titulo&gt;<br />&lt;descripcion&gt;This picture´s about dada&lt;/descripcion&gt;<br />&lt;/photo&gt;<br /><br />&lt;photo id='Henry-Rousseau.jpg'&gt;<br />&lt;titulo&gt;<br />&lt;/titulo&gt;<br />&lt;descripcion&gt;<br />&lt;/descripcion&gt;<br />&lt;/photo&gt;<br /><br />&lt;/galeria&gt;<br /><br />And i should be able to select the photo by id, and modify the title of it.<br /><br />I´ll appreciate your comments. <br /><br />Regards. G.]]></description>
		<pubDate>Wed, 12 Aug 2009 10:05:31 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26689</guid>
	</item>
	<item>
		<title>Newbie Question About Namespaces</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26672</link>
		<description><![CDATA[I have just started learning about schemas, and though I'm familiar with namespaces (being a programmer), I'm still a little unclear on how they are used in XML & schemas.<br /><br />Are these just a named reference used to identify a namespace, or do the URL addresses (often used in identifying namespaces), actually contain information that is referenced by the XML or schema file?]]></description>
		<pubDate>Tue, 11 Aug 2009 09:41:28 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26672</guid>
	</item>
	<item>
		<title>Xml For Wordpress</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26670</link>
		<description><![CDATA[Hi All <img src="http://w3schools.invisionzone.com/style_emoticons/default/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> . Is there anybody who can help with this? i'm setting up some Wordpress blogs and know how to add a PayPal buy now button. So the customer hopefully will buy my eBook which then I would like to send the eBook as an attachment to an email sent to the customer's email address. Does anybody know how to do this? I would really appreciate some help. There is a WP plugin that does this but according to many not very well. Thanks janice28 <img src="http://w3schools.invisionzone.com/style_emoticons/default/Bucktooth.gif" style="vertical-align:middle" emoid=":Bucktooth:" border="0" alt="Bucktooth.gif" />]]></description>
		<pubDate>Tue, 11 Aug 2009 06:09:46 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26670</guid>
	</item>
	<item>
		<title>Placing Pictures From Xml  File In Table In Row Wise Fashion.</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26666</link>
		<description><![CDATA[hi guys I have created something in xslt. but my problem is same pic is selected in different column of the row.<br />what i want is a row with 2 columns which has the images which are there in xml document and after the 2nd column the third image should be in second row 1st column and so on..... here is what i have created... plzzzz someone help me do this.....<br /><br />-------------------------XSL---------------------------------------------<br /><br /><br />&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt!-- DWXMLSource="assrec.xml" --&gt;&lt;!DOCTYPE xsl:stylesheet  [<br />    &lt;!ENTITY nbsp   "&#160;"&gt;<br />    &lt;!ENTITY copy   "&#169;"&gt;<br />    &lt;!ENTITY reg    "&#174;"&gt;<br />    &lt;!ENTITY trade  "&#8482;"&gt;<br />    &lt;!ENTITY mdash  "&#8212;"&gt;<br />    &lt;!ENTITY ldquo  "&#8220;"&gt;<br />    &lt;!ENTITY rdquo  "&#8221;"&gt;<br />    &lt;!ENTITY pound  "&#163;"&gt;<br />    &lt;!ENTITY yen    "&#165;"&gt;<br />    &lt;!ENTITY euro   "&#8364;"&gt;<br />]&gt;<br />&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;<br />&lt;xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/&gt;<br />&lt;xsl:template match="/"&gt;<br /><br />&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;<br />&lt;title&gt;Untitled Document&lt;/title&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />&lt;table cellspacing="0px" cellpadding="1px" style="width:192px; border:0px; color:#999999;"&gt;<br />&lt;tr&gt;<br />&lt;th align='center' colspan="2" style=" background-image:url(images/menutop.gif); background-repeat:repeat; height:30px; color: #CCCCCC; font:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold;"&gt;Employee&lt;/th&gt;<br />&lt;/tr&gt;<br />&lt;xsl:for-each select="ListItems/ListItem"&gt;<br />&lt;tr style="background-image: url(images/menumiddle.gif); background-repeat:repeat; width:192px; height:80px;"&gt;<br />&lt;td &gt;&lt;img src="{image/@href}" width="75" height="70" align="right" style="border: solid; border-color:#999999; border-width:2px; "/&gt;&lt;br /&gt; &lt;xsl:value-of select="name"/&gt;&lt;/td&gt;<br />&lt;td&gt;<br />&lt;img src="{image/@href}" width="75" height="70" align="right" style="border: solid; border-color:#999999; border-width:2px; "/&gt;<br />&lt;br /&gt; &lt;xsl:value-of select="name"/&gt;&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/xsl:for-each&gt;<br />&lt;tr&gt;<br />&lt;td colspan="2" style=" background-image:url(images/menubottom.gif); color:#000000"&gt;.<br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /><br />&lt;/xsl:template&gt;<br />&lt;/xsl:stylesheet&gt;<br /><br /><br /><br /><br />------------------------------------------------------XML------------------------------------------------<br /><br />&lt;?xml version="1.0" encoding="utf-8"?&gt;<br />&lt;?xml version="1.0" encoding="utf-8"?&gt;<br />&lt;?xml:stylesheet type="text/xsl" href="assrec.xsl"?&gt;<br />&lt;ListItems&gt;<br />  &lt;ListItem&gt;<br /> <br />    &lt;image href="C:&#092;wampserver 2&#092;www&#092;aafes test&#092;my&#092;by vickey&#092;cdtest&#092;images&#092;member1.jpg"&gt;<br />    &lt;/image&gt;<br />    &lt;name&gt;anuj&lt;/name&gt;<br />  &lt;/ListItem&gt;<br />  &lt;ListItem&gt;<br />   <br />    &lt;image href="C:&#092;wampserver 2&#092;www&#092;aafes test&#092;my&#092;by vickey&#092;cdtest&#092;images&#092;member2.jpg"&gt;<br />    &lt;/image&gt;<br />    &lt;name&gt;bb&lt;/name&gt;<br />  &lt;/ListItem&gt;<br />  &lt;ListItem&gt;<br /> <br />    &lt;image href="C:&#092;wampserver 2&#092;www&#092;aafes test&#092;my&#092;by vickey&#092;cdtest&#092;images&#092;member3.jpg"&gt;<br />    &lt;/image&gt;<br />    &lt;name&gt;anuj&lt;/name&gt;<br />  &lt;/ListItem&gt;<br />  &lt;ListItem&gt;<br />   <br />    &lt;image href="C:&#092;wampserver 2&#092;www&#092;aafes test&#092;my&#092;by vickey&#092;cdtest&#092;images&#092;member4.jpg"&gt;<br />    &lt;/image&gt;<br />    &lt;name&gt;bb&lt;/name&gt;<br />  &lt;/ListItem&gt;<br />&lt;/ListItems&gt;<br /><br /><br /><br /><br /><br /><br />right now I am getting the out as<br /><br />1  1<br />2  2<br />3  3<br /><br />but I want it to b like..<br /><br />1  2<br />3  4<br />5   6<br />]]></description>
		<pubDate>Tue, 11 Aug 2009 01:42:48 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26666</guid>
	</item>
	<item>
		<title><![CDATA[Ecommerce & Secure Payments]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26613</link>
		<description><![CDATA[I am going to be making a website for my mother to sell products online, which will of course entail accepting payments.  I was hoping for a general idea of what companies people have tried and trust - should I go for our bank's option, or are there better ones?  <br /><br />Please post the name of any company you have used, and any thoughts on it - how easy was it to integrate? how reasonable are their blanket/per transaction costs? what was the support like? etc.  <br /><br />My hosting company has a deal set up with protx (now sagepay.com), so that would be the most convenient option, but I don't mind a little effort to get the most secure service, and the one we can integrate most fully.]]></description>
		<pubDate>Sat, 08 Aug 2009 17:32:37 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26613</guid>
	</item>
	<item>
		<title>Select Copyy-of Question</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26607</link>
		<description><![CDATA[I'm trying to pull the complete XML (structure and data) from my input file and put into a string....<br /><br />I am doing:<br />             <br />        &lt;string&gt;&lt;xsl:copy-of select="ancestor-or-self::node()"/&gt;&lt;/string&gt;<br />and it is not returning the complete structure.<br /><br />I first do a: &lt;xsl:template match="/"&gt;<br /> then:<br />        &lt;xsl:copy-of select="ancestor-or-self::node()"/&gt;<br /><br />and the input XML is 9 lines long and the output will be 8. The root tag is missing from the output.<br /><br />Why is my SELECT not returning the root node?<br /><br />Is there a better way to do what I'm trying to do?<br /><br />Thanks for any help...<br />Jack]]></description>
		<pubDate>Sat, 08 Aug 2009 08:46:54 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26607</guid>
	</item>
	<item>
		<title>Adding Elements To An Existing Xml File</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26602</link>
		<description><![CDATA[I have learned the basics of fetching and displaying xml data and want to play with saving new records to a test file, called books.xml, which looks like:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?xml version=&#34;1.0&#34; ?&#62;<br />&lt!--Sample XML Document --&gt;<br />&#60;Books&#62;<br />&#60;book&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;title&#62;A Very Good Book&#60;/title&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;author&#62;Jane Doe&#60;/author&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;publishingInfo&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;publisher&#62;Sams Publishing&#60;/publisher&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;publisherCity&#62;Indianapolis&#60;/publisherCity&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;publishedYear&#62;2008&#60;/publishedYear&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;/publishingInfo&#62;<br />&#60;/book&#62;<br />&#60;book&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;title&#62;Another Very Good Book&#60;/title&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;author&#62;John Doe&#60;/author&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;publishingInfo&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;publisher&#62;Sams Publishing&#60;/publisher&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;publisherCity&#62;Indianapolis&#60;/publisherCity&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;publishedYear&#62;2008&#60;/publishedYear&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;/publishingInfo&#62;<br />&#60;/book&#62;<br />&#60;/Books&#62;<!--c2--></div><!--ec2--><br /><br />My php file to display these records is:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?php<br />$dom = new DomDocument;<br />$dom-&#62;load&#40;&#34;books.xml&#34;&#41;;<br /><br />foreach&#40;$dom-&#62;documentElement-&#62;childNodes as $books&#41; {<br />&nbsp;&nbsp;if &#40;&#40;$books-&#62;nodeType ==1&#41; && &#40;$books-&#62;nodeName == &#34;book&#34;&#41;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;foreach&#40;$books-&#62;childNodes as $theBook&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;&#40;$theBook-&#62;nodeType ==1&#41; && &#40;$theBook-&#62;nodeName == &#34;title&#34;&#41;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$theBookTitle = $theBook-&#62;textContent;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;&#40;$theBook-&#62;nodeType ==1&#41; && &#40;$theBook-&#62;nodeName == &#34;author&#34;&#41;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$theBookAuthor = $theBook-&#62;textContent;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;&#40;$theBook-&#62;nodeType == 1&#41; && &#40;$theBook-&#62;nodeName == &#34;publishingInfo&#34;&#41;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach&#40;$theBook-&#62;childNodes as $thePublishingInfo&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if&#40;&#40;$thePublishingInfo-&#62;nodeType == 1&#41; && &#40;$thePublishingInfo-&#62;nodeName == &#34;publisher&#34;&#41;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $theBookPublisher = $thePublishingInfo-&#62;textContent;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if&#40;&#40;$thePublishingInfo-&#62;nodeType == 1&#41; && &#40;$thePublishingInfo-&#62;nodeName == &#34;publishedYear&#34;&#41;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $theBookPublishedYear = $thePublishingInfo-&#62;textContent;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;echo &#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;p&#62;&#60;span style=&#092;&#34;text-decoration&#58;underline &#092;&#34;&#62;&#34;.$theBookTitle.&#34;&#60;/span&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;by &#34;.$theBookAuthor.&#34;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;published by &#34;.$theBookPublisher.&#34; in &#34;.$theBookPublishedYear.&#34;&#60;/p&#62;&#34;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;unset&#40;$theBookTitle&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;unset&#40;$theBookAuthor&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;unset&#40;$theBookPublisher&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;unset&#40;$theBookPublishedYear&#41;;<br />&nbsp;&nbsp;}<br />}<br />?&#62;<!--c2--></div><!--ec2--><br /><br />All fine and dandy.  To make matters simple, I added this to the top, after the first 3 lines:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->foreach&#40;$dom-&#62;childNodes as $elem&#41; {<br />&nbsp;&nbsp;if&#40;$elem-&#62;nodeName = &#34;Books&#34;&#41; {<br /><br />$new = $dom-&#62;createElement&#40;'book'&#41;;<br />$dom-&#62;appendChild&#40;$new&#41;;<br /><br />$title = $dom-&#62;createElement&#40;'title'&#41;;<br />$dom-&#62;appendChild&#40;$title&#41;;<br />$titleText = $dom-&#62;createTextNode&#40;'New Book'&#41;;<br />$dom-&#62;appendChild&#40;$titleText&#41;;<br /><br />$author = $dom-&#62;createElement&#40;'author'&#41;;<br />$dom-&#62;appendChild&#40;$author&#41;;<br />$authorText = $dom-&#62;createTextNode&#40;'Jackie O'&#41;;<br />$dom-&#62;appendChild&#40;$authorText&#41;;<br /><br />$publisher = $dom-&#62;createElement&#40;'publisher'&#41;;<br />$dom-&#62;appendChild&#40;$publisher&#41;;<br />$publisherText = $dom-&#62;createTextNode&#40;'Penguin'&#41;;<br />$dom-&#62;appendChild&#40;$publisherText&#41;;<br /><br />$publisherCity = $dom-&#62;createElement&#40;'publisherCity'&#41;;<br />$dom-&#62;appendChild&#40;$publisherCity&#41;;<br />$publisherCityText = $dom-&#62;createTextNode&#40;'Atlanta'&#41;;<br />$dom-&#62;appendChild&#40;$publisherCityText&#41;;<br /><br />$publishedYear = $dom-&#62;createElement&#40;'publishedYear'&#41;;<br />$dom-&#62;appendChild&#40;$publishedYear&#41;;<br />$publishedYearText = $dom-&#62;createTextNode&#40;'1998'&#41;;<br />$dom-&#62;appendChild&#40;$publishedYearText&#41;;<br /><br />$saveDom = $dom-&#62;save&#40;&#34;/books.xml&#34;&#41;;<br /><br />&nbsp;&nbsp;}<br />}<!--c2--></div><!--ec2--><br /><br />This produces a fatal error, saying I "cannot write property..." at line 7, which is this one: <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;if&#40;$elem-&#62;nodeName = &#34;Books&#34;&#41; {<!--c2--></div><!--ec2--><br /><br />I admit I'm not sure if what I have put ought to work, but it doesn't, and the php.net documentation for the save() function is sparse to say the least.  I wonder if it is a file permissions problem?]]></description>
		<pubDate>Fri, 07 Aug 2009 20:31:46 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26602</guid>
	</item>
	<item>
		<title><![CDATA[Re: Storing Rss Feed In Utf-8" Format]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26596</link>
		<description><![CDATA[I am trying to create an application in C# which will extract and save RSS feeds onto the D drive. I am using the following C# code to save the file on the disk<br /><br /><br />            rssReader = new XmlTextReader(FeedAddress.Text);<br />            rssDoc = new XmlDocument();<br />            //Load the XML contents into a XMLDocument<br />            rssDoc.Load(rssReader);<br />            rssDoc.Save("D://text.xml");<br /><br />Everything works wells and the file is saved in the "utf-8" format if the extension of the link is XML (e.g <a href="http://msdn.microsoft.com/rss.xml)" target="_blank">http://msdn.microsoft.com/rss.xml)</a>. The problem comes when I try to save a feed with .rss extension (e.g <a href="http://orangecounty.craigslist.org/apa/index.rss)" target="_blank">http://orangecounty.craigslist.org/apa/index.rss)</a>, instead of saving the feed in "utf-8" format it saves the feed in "ISO-8859-1" format.<br /><br />Moreover, when I try to save the feed with .rss extension using the Save As option of the Internet Explorer it saves the feed in "utf-8" format but when I use the C# code to save the same feed it saves it in the "ISO-8859-1" format.<br /><br />Is there any way to save the feed with .rss extension in "utf-8" format instead of "ISO-8859-1" format?<br /><br />Thanks<br />Deepak<br />]]></description>
		<pubDate>Fri, 07 Aug 2009 16:07:51 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26596</guid>
	</item>
	<item>
		<title>Displaying Data From An Xml On A Web Page, Best Way?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26594</link>
		<description><![CDATA[I've skimmed through the W3schools tutorials, and it seems the whole XML DOM thing uses Java Script in addition to PHP and HTML.<br />I'd like to avoid using Java Script if at all possible.<br /><br />Whats the best way to do this? Should I just bite the bullet and use Java Script? Or is there a better/different way?<br />[EDIT]: A friend suggested using a PHP script to pass the data in the XML to a MySQL database and then pulling the data into the webpage from there. How easy would that be? taking into account that I know virtually nothing of MySQL.<br /><br /><br />Some details on exactly what I wish to achieve:<br /><br />I want to have a link on a web page that when someone clicks it, it will open a new window, and in that window it will display some data that is retrieved from an XML document. The data will be nicely laid out and easy to read. I have already done the HTML and CSS for the new window that opens (for displaying the data nicely) now what I have to do is do the code for taking the data from the XML and putting it into the correct places in the style sheet.<br />I also want it to be able to do this for more than one XML document, depending on which link the user clicks on.<br />I was thinking of using the PHP '$_GET['p']' function for getting a text string at the end of the URL to determine which XML file to load.<br /><br /><br />Thanks, Koiju]]></description>
		<pubDate>Fri, 07 Aug 2009 15:06:22 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26594</guid>
	</item>
	<item>
		<title>Format Number Query</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26552</link>
		<description><![CDATA[Hi,<br /><br />I am using the following in my xsl:<br /><br />&lt;xsl:variable name="sumAmount" select="sum(trade/tradeRequest/specifiedMoney/amount)"/&gt;<br /><br />The total value of this can literally be any size number e.g. from 100 to 1000000000000<br /><br />My problem is that the output from this looks like <br /><br />70002.34808E8<br /><br />where as I need it to look like<br /><br />7000234808000<br /><br />Can anyone tell me how to use format-number (or anything else that would work) to ensure it's output in the latter format<br /><br />Thanks<br /><br />Mitch<br /><br />]]></description>
		<pubDate>Thu, 06 Aug 2009 08:46:00 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26552</guid>
	</item>
	<item>
		<title>Param Not Incrementing</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26550</link>
		<description><![CDATA[Hello,<br /><br />I am currently trying to use the code below to increment the currentChild after every iteration. However, in the output shown below, it is apparent that the value is never changing.<br /><br />There are four children in this example, so it is printing out the statements the correct number of times, just not incrementing the value.<br /><br />What can I do to keep track of the currentChild count?<br /><br />Thanks.<br /><br />Code:<br /><br />&lt;xsl:param name="currentChild"&gt;0&lt;/xsl:param&gt;<br /><br />&lt;xsl:for-each select="Attribute[./@name='Children.Name']/Value"&gt;<br />   &lt;xsl:value-of select="$currentChild"/&gt; before increment&lt;br/&gt;<br />   &lt;xsl:with-param name="currentChild" select="$currentChild+1"/&gt;<br />   &lt;xsl:value-of select="$currentChild"/&gt; after increment&lt;br/&gt;<br />&lt;/xsl:for-each&gt;<br /><br />Output:<br />0 before increment<br />0 after increment<br />0 before increment<br />0 after increment<br />0 before increment<br />0 after increment<br />0 before increment<br />0 after increment]]></description>
		<pubDate>Thu, 06 Aug 2009 07:38:24 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26550</guid>
	</item>
	<item>
		<title>Ie8 Vs Xml</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26546</link>
		<description><![CDATA[Check out the following link.<br /><a href="http://mssportfolio.com/popup/" target="_blank">http://mssportfolio.com/popup/</a><br />If u click on the "Add to cart" button,a pop up appears with some data retrieved from XML.The pop up works fine in Firefox but not with IE.The pop up appears in IE but not the data from xml file.what may be the problem?The script to retrieve xml code is as follows:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function loadXMLDoc&#40;dname&#41;<br />{<br />var xmlDoc;<br /><br />if &#40;window.XMLHttpRequest&#41;<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;xmlDoc=new window.XMLHttpRequest&#40;&#41;;<br />&nbsp;&nbsp;xmlDoc.open&#40;&#34;GET&#34;,dname,false&#41;;<br />&nbsp;&nbsp;xmlDoc.send&#40;&#34;&#34;&#41;;<br />&nbsp;&nbsp;return xmlDoc.responseXML;<br />&nbsp;&nbsp;}<br />// IE<br />else if &#40;ActiveXObject&#40;&#34;Microsoft.XMLDOM&#34;&#41;&#41;<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;xmlDoc=new ActiveXObject&#40;&#34;Microsoft.XMLDOM&#34;&#41;;<br />&nbsp;&nbsp;xmlDoc.async=false;<br />&nbsp;&nbsp;xmlDoc.load&#40;dname&#41;;<br />&nbsp;&nbsp;return xmlDoc;<br />&nbsp;&nbsp;}<br />alert&#40;&#34;Error loading document&#34;&#41;;<br />return null;<br />} <br /><br />function display&#40;id&#41;{<br /><br />xmlDoc=loadXMLDoc&#40;&#34;xmlfile.xml&#34;&#41;;<br />x=xmlDoc.getElementsByTagName&#40;&#34;LISTING&#34;&#41;<br />for&#40;i=0;i&#60;x.length;i++&#41;<br />{<br />//document.write&#40;x.item&#40;i&#41;.attributes&#91;0&#93;.textContent&#41;;<br />//document.write&#40;&#34;&#60;br /&#62;&#34;&#41;;<br />if&#40;x.item&#40;i&#41;.attributes&#91;0&#93;.textContent==id&#41;{<br /><br />document.getElementById&#40;'name'&#41;.innerHTML=x.item&#40;i&#41;.childNodes&#91;1&#93;.childNodes&#91;0&#93;.nodeValue;<br />document.getElementById&#40;'author'&#41;.innerHTML=x.item&#40;i&#41;.childNodes&#91;3&#93;.childNodes&#91;0&#93;.nodeValue;<br />document.getElementById&#40;'price'&#41;.innerHTML=x.item&#40;i&#41;.childNodes&#91;5&#93;.childNodes&#91;0&#93;.nodeValue;<br />document.getElementById&#40;'publisher'&#41;.innerHTML=x.item&#40;i&#41;.childNodes&#91;7&#93;.childNodes&#91;0&#93;.nodeValue;<br />document.getElementById&#40;'img'&#41;.src=x.item&#40;i&#41;.childNodes&#91;9&#93;.childNodes&#91;0&#93;.nodeValue;<br /><br />}<br />} <br />&nbsp;&nbsp;&nbsp;&nbsp;<br />}<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Thu, 06 Aug 2009 02:08:46 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26546</guid>
	</item>
	<item>
		<title>Using The Twitter Api</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26541</link>
		<description><![CDATA[I want to get the most recent statuses from my Twitter and display them on my website that I've done in PHP. Im familiar with REST web services, but i haven't done one where you need to login. Does anyone know any examples of this? I know this is a common thing since I've seen it on many wordpress sites/blogs.]]></description>
		<pubDate>Wed, 05 Aug 2009 17:41:14 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26541</guid>
	</item>
	<item>
		<title>Earning Money</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26454</link>
		<description><![CDATA[Hi everyone,<br />		I am new to this web development thing and the benefits from owning a website and <br />generating income from such source. As far as web development is concerned, I have just started off learning PHP-MySql and its use in developing a site. Also creating a site with PHP-MySql would definitely need some experience with the language. So, I would like to know if there are ways to earn money from a site ( I want to earn while I learn) as I have heard about things like blogspot, google adsense, etc that help one earn money through adds. Are these ( blogs, adsense etc) such an easy way to earn from a site/blog without having any programming experience? Can anyone give me a detailed description of these things? Thanking everyone………..<br />]]></description>
		<pubDate>Sat, 01 Aug 2009 01:52:50 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26454</guid>
	</item>
	<item>
		<title>Is There A Wordpress Api / Web Service?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26449</link>
		<description>I want to pull data from my blog as well as write data to my blog through another web application. Does Wordpress have some API or web service that allows this capability?</description>
		<pubDate>Fri, 31 Jul 2009 18:20:14 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26449</guid>
	</item>
	<item>
		<title>Same Xml Task Can Perform Using Html.</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26412</link>
		<description><![CDATA[* XML was designed to transport and store data, with focus on what data is.<br />    * HTML was designed to display data, with focus on how data looks.<br /><br />I think we can also use html to transport and store data as a replacement over xml.<br /><br />Pls put your thoughts for why we should prefer xml over html to transport and store data.<br /><br />My thoughts: <br /> 1) We can use xml to store and send dynamic data and for this we only have to use few lines of code.<br /> 2) We can use our own tags and not to depend on predefined tags as in html like &lt;tr&gt;&lt;td&gt;&lt;br&gt;...... etc.<br /><br />Your suggestions will be highly appreciated.<br /><br /><br />Regards,<br />Shobhit]]></description>
		<pubDate>Thu, 30 Jul 2009 02:04:50 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26412</guid>
	</item>
	<item>
		<title>Valid Xsl-fo</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26409</link>
		<description><![CDATA[Hi<br /><br />I got a quick question for professionals here<br /><br />is this a valid xsl-fo ?<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;fo&#58;block fo&#58;start-indent=&#34;10.620px&#34; fo&#58;font-size=&#34;10pt&#34;&#62;<!--c2--></div><!--ec2--><br /><br />is there any website where i can test the validity of my xsl-fo ?<br /><br /><br />Thanks<br />]]></description>
		<pubDate>Wed, 29 Jul 2009 20:51:44 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26409</guid>
	</item>
	<item>
		<title>Create Xml From Binary Using Schema</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26397</link>
		<description><![CDATA[I have some binary data that I wish to convert to xml, using the schema as below, or something like it, but I cant see exactly how to populate the XmlDocument with my data.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;<br />&#60;xs&#58;schema xmlns&#58;xs=&#34;http&#58;//www.w3.org/2001/XMLSchema&#34;&#62;&nbsp;&nbsp;<br />&nbsp;&nbsp;&#60;xs&#58;element name=&#34;logResults&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;complexType&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;value&#34; type=&#34;xs&#58;decimal&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;speed&#34; type=&#34;xs&#58;unsignedShort&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;time&#34; type=&#34;xs&#58;int&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xs&#58;complexType&#62;<br />&nbsp;&nbsp;&#60;/xs&#58;element&#62;<br />&#60;/xs&#58;schema&#62;<!--c2--></div><!--ec2--><br /><br />This is using C# in VS2005.<br /><br />I can create an instance of the XmlDocument and apply the schema to it, but im stumped if I can see how to populate the xmldocument using the structure predefined by the schema.<br />The code I have so far is this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XmlReaderSettings schemaIn;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XmlDocument docOut;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public Form1&#40;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InitializeComponent&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private void button1_Click&#40;object sender, EventArgs e&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;docOut = new XmlDocument&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;schemaIn = new XmlReaderSettings&#40;&#41;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;schemaIn.Schemas.Add&#40;&#34;trySchema&#34;, &#34;schemaFile.xsd&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;schemaIn.Schemas.Compile&#40;&#41;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;docOut.Schemas = schemaIn.Schemas;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;// then what?<!--c2--></div><!--ec2--><br /><br />The resulting xml should contain multiple entries of the value/speed/time element.<br />My guess is that there would be a loop which reads my raw data, creates an element, and populates it, something like this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->while &#40;readingFile&#41;<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;read&#40;file, record&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;create&#40;docOut, element&#41;;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;write&#40;docOut, element , record.value&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;write&#40;docOut, element , record.speed&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;write&#40;docOut, element , record.time&#41;;<br />}<br />docOut.Save&#40;&#34;filename&#34;&#41;;<!--c2--></div><!--ec2--><br /><br />Ive had a look at the DOM XML and Schema tutorials, but cant quite see the solution.<br /><br />]]></description>
		<pubDate>Wed, 29 Jul 2009 10:39:15 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26397</guid>
	</item>
	<item>
		<title><![CDATA[[solved] Create Html Table Iteratively]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26396</link>
		<description><![CDATA[Hello,<br /><br />I'm just starting with XSLT so maybe someone is able to help me with my topic <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br />There is an XML file with the following structure:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;TestCaseData&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;TestCase&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;TestCaseId&#62;XXX&#60;/TestCaseId&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;Name&#62;Name&#60;/Name&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;FolderYn&#62;Y&#60;/FolderYn&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;CustomProperties&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;CustomProperty&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;Alias&#62;Test Case ID&#60;/Alias&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;Name&#62;Text01&#60;/Name&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/CustomProperty&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;CustomProperty&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;Alias&#62;Preconditions&#60;/Alias&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;Name&#62;Text02&#60;/Name&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/CustomProperty&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;CustomProperty&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;Alias&#62;Type of Test&#60;/Alias&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;Name&#62;List01&#60;/Name&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/CustomProperty&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/CustomProperties&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/TestCase&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;TestCase&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#91;...&#93;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/TestCase&#62;<br />&#60;/TestCaseData&#62;<!--c2--></div><!--ec2--><br /><br />The most interesting element for me is "FolderYn" which can contain either "Y" or "N" as I would like to format my HTML output depending on the value of this element. The final output shall behave like this:<br /><br />If FolderYn is set to "Y", then format the content of &lt;Name&gt; as a heading (&lt;h3&gt;). If FolderYn is set to "N", then create a table and insert the content of &lt;Name&gt; for each &lt;TestCase&gt; as a new row until FolderYn is set to "Y" (which represents a new chapter).<br /><br />Or in HTML:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;h3&#62;Name1&#60;/h3&#62; &lt!-- If FolderYn=Y --&gt;<br />&#60;table&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;th&#62;Column 1&#60;/th&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;th&#62;Column 2&#60;/th&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt!-- Repeat for each TestCase as long as FolderYn=N and next TestCase/FolderYn=N --&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;Name&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;Text01&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/tr&#62;<br />&#60;/table&#62;<br />&#60;h3&#62;Name2&#60;/h3&#62; &lt!-- If FolderYn=Y --&gt;<br />&#60;h3&#62;Name3&#60;/h3&#62; &lt!-- If FolderYn=Y --&gt;<br />&#60;h3&#62;Name4&#60;/h3&#62; &lt!-- If FolderYn=Y --&gt;<br />&#60;table&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;th&#62;Column 1&#60;/th&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;th&#62;Column 2&#60;/th&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt!-- Repeat for each TestCase as long as FolderYn=N and next TestCase/FolderYn=N --&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;Name&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;Text01&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/tr&#62;<br />&#60;/table&#62;<!--c2--></div><!--ec2--><br />My major problem is: I tried to solve this with several if-statements but unfortunately it's not possible that e.g. the closing &lt;/table&gt; tag is outside of the if-statement where the opening &lt;table&gt; has been defined.<br /><br />Oh my god, describing my problem is really hard. I hope anybody will understand my posting <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> If you have further questions, I'll be happy answering them.<br /><br />Robert]]></description>
		<pubDate>Wed, 29 Jul 2009 10:20:24 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26396</guid>
	</item>
	<item>
		<title>Using Templates As A Subroutine</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26365</link>
		<description><![CDATA[I believe i can use templates as a form of sub-routine? I have a few fields that are going to need to display a value for periods.<br /><br />e.g. Monthly,Quarterly, semi-annual, annual, Bi-ennial. I have written the below which i could just re-use over but it is messy and ihave to do weeklys as well which will be a lot more options.<br /><br /><br />I've tried tweaking a few different things from the web, but can't get any progress on any. I think the difficulty of having to worry about the main and sub routine makes it hard for me to use my one line of code at a time process :-)<br /><br />Tutorial just introduces the very basic :-(<br /><br />Looking to make a monthly and weekly routine i believe i can call on both and it will resolve on which one applies. <br /><br />Cheers<br /><br />XML.................................................<br />&lt;calculationPeriodFrequency&gt;<br />  &lt;periodMultiplier&gt;3&lt;/periodMultiplier&gt; <br />  &lt;period&gt;Monthly&lt;/period&gt; <br />  &lt;rollConvention&gt;None&lt;/rollConvention&gt; <br />  &lt;/calculationPeriodFrequency&gt;<br /><br />XSLT............................................<br />&lt;xsl:choose&gt;<br />  &lt;xsl:when test="//calculationPeriodFrequency/period='Term'"&gt;No compound&lt;/xsl:when&gt;<br />  &lt;xsl:when test="//calculationPeriodFrequency/period='Year'"&gt;A&lt;/xsl:when&gt;<br />      &lt;xsl:when test="//calculationPeriodFrequency/period='Monthly'and//calculationPeriodFrequency/periodMultiplier='1'"&gt;M&lt;/xsl:when&gt;<br />      &lt;xsl:when test="//calculationPeriodFrequency/period='Monthly'and//calculationPeriodFrequency/periodMultiplier='3'"&gt;Q&lt;/xsl:when&gt;<br />      &lt;xsl:when test="//calculationPeriodFrequency/period='Monthly'and//calculationPeriodFrequency/periodMultiplier='6'"&gt;S&lt;/xsl:when&gt;<br />  <br />  &lt;xsl:otherwise&gt;<br /><br /><br /><br />  &lt;/xsl:otherwise&gt;<br />&lt;/xsl:choose&gt;<br /><br /><br />...............................................<br /><br /><br />This is an example of one i tried to tweak...but i have literally shoe horned it from somewhere else and don't know how to introduce it or syntax it properly<br /><br /><br />&lt!-- Convert compounding --&gt;<br />  &lt;xsl:template name="comp_mth”&gt;<br />    &lt;xsl:param name='number'/&gt;<br />    &lt;xsl:choose&gt;<br />      &lt;xsl:when test=“$number=‘1’”&gt;Monthly&lt;/xsl:when&gt;<br />      &lt;xsl:when test=“$number=‘3’“&gt;Quarterly&lt;/xsl:when&gt;<br />      &lt;xsl:otherwise&gt;??&lt;/xsl:otherwise&gt;<br />    &lt;/xsl:choose&gt;<br />  &lt;/xsl:template&gt;<br />]]></description>
		<pubDate>Mon, 27 Jul 2009 11:51:22 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26365</guid>
	</item>
	<item>
		<title>Brief Understanding</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26360</link>
		<description><![CDATA[Just started with XLS and I have this code, which I think suppose to copy every node to the output file. But I am really not sure...<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt!-- Copies everything? But it doesn't?? --&gt; <br />&lt!-- Matches any element node --&gt;<br />&lt;xsl:template match="*"&gt;<br />  &lt;xsl:copy&gt;<br />    &lt!-- Matches any attribute node --&gt;<br />    &lt;xsl:for-each select="@*"&gt;<br />      &lt;xsl:copy/&gt;<br />    &lt;/xsl:for-each&gt;<br />    &lt;xsl:apply-templates/&gt;<br />  &lt;/xsl:copy&gt;<br />&lt;/xsl:template&gt;</div>]]></description>
		<pubDate>Mon, 27 Jul 2009 06:15:26 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26360</guid>
	</item>
	<item>
		<title>How To Add Values And Output The Total</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26282</link>
		<description><![CDATA[Hi,<br /><br />Can someone assist with how to add values together in xsl?<br /><br />If I have the following XML file (there could be any number of records):<br /><br />&lt;numbers&gt;<br />  &lt;x&gt;5&lt;/x&gt;<br />&lt;/numbers&gt;<br />&lt;numbers&gt;<br />  &lt;x&gt;3&lt;/x&gt;<br />&lt;/numbers&gt;<br />&lt;numbers&gt;<br />  &lt;x&gt;4&lt;/x&gt;<br />&lt;/numbers&gt;<br /><br />I'd like to read through the entire file, adding them up as I go along and then output the total at the end e.g. 12<br /><br />Can anyone help provide the code to do this?<br /><br />Cheers !<br /><br />Mitch]]></description>
		<pubDate>Fri, 24 Jul 2009 11:43:51 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26282</guid>
	</item>
	<item>
		<title>Selecting Subtag Based On Attribute Value</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26272</link>
		<description><![CDATA[xml...<br /><br />&lt;Cashflow&gt;<br /> &lt;principalExchange id="startExchange"&gt;<br />   &lt;adjustedPrincipalExchangeDate&gt;2009-06-15&lt;/adjustedPrincipalExchangeDate&gt; <br />   &lt;principalExchangeAmount&gt;-23000.00&lt;/principalExchangeAmount&gt; <br /> &lt;/principalExchange&gt;<br /> &lt;principalExchange id="maturityExchange"&gt;<br />   &lt;adjustedPrincipalExchangeDate&gt;2009-06-16&lt;/adjustedPrincipalExchangeDate&gt; <br />   &lt;principalExchangeAmount&gt;25567.00&lt;/principalExchangeAmount&gt; <br /> &lt;/principalExchange&gt;<br />&lt;/Cashflow&gt;<br /><br />Attempted code.....based on answer i got from a similar issue <br /><br />&lt;maturity_amount&gt; <br />       &lt;xsl:value-of select="//principalExchange[@id=$maturityExchange]/principalExchangeAmount"/&gt;<br />&lt;/maturity_amount&gt;<br /><br />As you can likely see i am wanting to extract the specific amount for maturity.<br /><br />In general i have been having difficulty navigating with and around these &lt;tag attribute="value"&gt; need to understand how to handle the syntax with these better<br /><br />Cheers]]></description>
		<pubDate>Fri, 24 Jul 2009 04:37:24 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26272</guid>
	</item>
	<item>
		<title>Web Service Composition</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26258</link>
		<description><![CDATA[dear all<br />I am PhD student i, my research area is in web service composition and I am trying to find problem statement in this area and I need help from you.<br /><br />I knew that you all  are expert in this area and can help me, because I really need your help and I will be thankful for you.<br /><br />I read in quality of service on web service composition and I need idea from you in this field if you can.<br /><br /><br />So can you give me some suggestion about problem statement in this field.<br /><br />Thank you <br />]]></description>
		<pubDate>Thu, 23 Jul 2009 14:36:30 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26258</guid>
	</item>
	<item>
		<title>Adding Whitespace</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26240</link>
		<description><![CDATA[Hi,<br /><br />I have a question regarding dreaded whitespace. I am using xsl to convert XML into flat file record structure. This requires much padding out of the values with white space to accommodate fixed length file structures<br /><br />Can anyone advise on the easiest way to do this?<br /><br />Thanks!!<br /><br />Mitch]]></description>
		<pubDate>Wed, 22 Jul 2009 12:19:23 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26240</guid>
	</item>
	<item>
		<title>Displaying Specific Duplicated Tags</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26238</link>
		<description><![CDATA[Hi all,<br /><br />Really need help on this one. Am completely new to XSLT.<br /><br />I have an xml that has repetitive tags. I need to display one of the repeated tags based on the value of another repeated tag.<br /><br />i.e. i need to display the specific &lt;tradeId&gt; when &lt;systemDomainName&gt; = TID<br /><br />So i need to locate the right &lt;systemDomainName&gt; under &lt;tradeIdentifier&gt; parent (term?) and display the &lt;tradeId&gt; that occurs under the same parent (term?)<br /><br />Have looked at xsl:if, xsl:choose examples and tutorials, but i don't seem to be able to get it right. I think it will be very easy when i see it.<br /><br />Cheers<br /><br />&lt;tradeIdentifier&gt;<br />  &lt;tradeId&gt;730397523000000&lt;/tradeId&gt; <br />  &lt;tradeVersion&gt;1&lt;/tradeVersion&gt; <br />  &lt;systemReference&gt;System1&lt;/systemReference&gt; <br />  &lt;systemDomainName&gt;TID&lt;/systemDomainName&gt; <br />  &lt;tradeIdClassificationScheme&gt;Primary Transaction Identifier&lt;/tradeIdClassificationScheme&gt; <br />  &lt;/tradeIdentifier&gt;<br />&lt;tradeIdentifier&gt;<br />  &lt;tradeId&gt;0906150186305&lt;/tradeId&gt; <br />  &lt;systemReference&gt;System1&lt;/systemReference&gt; <br />  &lt;systemDomainName&gt;DEAL_NUMBER&lt;/systemDomainName&gt; <br />  &lt;tradeIdClassificationScheme&gt;Secondary Transaction Identifier&lt;/tradeIdClassificationScheme&gt; <br />  &lt;/tradeIdentifier&gt;<br />&lt;tradeIdentifier&gt;<br />  &lt;tradeId&gt;MM0906153032&lt;/tradeId&gt; <br />  &lt;systemReference&gt;System1&lt;/systemReference&gt; <br />  &lt;systemDomainName&gt;EXT_TRADE_NO&lt;/systemDomainName&gt; <br />&lt;/tradeIdentifier&gt;<br />]]></description>
		<pubDate>Wed, 22 Jul 2009 11:21:43 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26238</guid>
	</item>
	<item>
		<title><![CDATA[Datetime Or "..."]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26235</link>
		<description><![CDATA[Hi folks,<br /><br />I want to have an element that either contains a dateTime or the literal string "...". Is there any way to specify this in Schema?<br /><br />The element in question is the creationTimestamp element as below:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp; &#60;complexType name=&#34;persistedEntity&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;element name=&#34;editedBy&#34; type=&#34;string&#34; minOccurs=&#34;0&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;element name=&#34;creationTimestamp&#34; type=&#34;dateTime&#34; minOccurs=&#34;0&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;element name=&#34;status&#34; type=&#34;syringe&#58;entityStatus&#34; minOccurs=&#34;0&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/complexType&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;complexType name=&#34;role&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;complexContent&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;extension base=&#34;syringe&#58;mnemonizedPersistedEntity&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;element name=&#34;name&#34; type=&#34;string&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;element name=&#34;builtIn&#34; type=&#34;boolean&#34; minOccurs=&#34;0&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/extension&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/complexContent&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/complexType&#62;<!--c2--></div><!--ec2--><br /><br />I would like to be able to use it as such:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;role&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;editedBy&#62;SYSTEM&#60;/editedBy&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;creationTimestamp&#62;...&#60;/creationTimestamp&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;status&#62;NORMAL&#60;/status&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;mnemonic&#62;ADMIN&#60;/mnemonic&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;name&#62;ADMIN&#60;/name&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;builtIn&#62;true&#60;/builtIn&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/role&#62;<!--c2--></div><!--ec2--><br /><br />The "..." is for testing purposes, a way to say "I don't care what dateTime is here", whereas the actual dateTime is used in any other case.<br /><br />Cheers,<br />Sybren]]></description>
		<pubDate>Wed, 22 Jul 2009 10:29:08 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26235</guid>
	</item>
	<item>
		<title>A Basic Xml Question</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26232</link>
		<description><![CDATA[Is the first example below valid (re the duplicate "author" elements)? Is the second example below better or more appropriate (other than for readability)? Any further explanation would be welcome. TIA<br /><br />&lt;catalog&gt;<br /><blockquote>&lt;book&gt;<br /><blockquote>&lt;title&gt;All About XML&lt;/title&gt;<br />&lt;author&gt;John&lt;/author&gt;<br />&lt;author&gt;Mary&lt;/author&gt;</blockquote><br />&lt;/book&gt;<br /></blockquote>&lt;/catalog&gt;<br /><br />&lt;catalog&gt;<br /><blockquote>&lt;book&gt;<br /><blockquote>&lt;title&gt;All About XML&lt;/title&gt;<br />&lt;authors&gt;<br /><blockquote>&lt;name&gt;John&lt;/name&gt;<br />&lt;name&gt;Mary&lt;/name&gt;<br /></blockquote>&lt;/authors&gt;<br /></blockquote>&lt;/book&gt;</blockquote><br />&lt;/catalog&gt;]]></description>
		<pubDate>Wed, 22 Jul 2009 09:05:06 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26232</guid>
	</item>
	<item>
		<title>Schema Help</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26231</link>
		<description><![CDATA[I currently use a Schema to convert an Excel spreadsheet into XML format, to provide captions in timed text format for flash videos hosted online.<br /><br />The schema is currently coded as follows:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62;<br />&#60;xs&#58;schema xmlns&#58;xs=&#34;http&#58;//www.w3.org/2001/XMLSchema&#34; targetNamespace=&#34;http&#58;//www.w3.org/2006/04/ttaf1&#34; xmlns=&#34;http&#58;//www.w3.org/2006/04/ttaf1&#34;&#62;<br /><br />&#60;xs&#58;complexType name=&#34;ttType&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;element name=&#34;head&#34; type=&#34;headType&#34; minOccurs=&#34;0&#34; maxOccurs=&#34;1&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;element name=&#34;body&#34; type=&#34;bodyType&#34; minOccurs=&#34;0&#34; maxOccurs=&#34;1&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xs&#58;sequence&#62;<br />&#60;/xs&#58;complexType&#62;<br /><br />&#60;xs&#58;complexType name=&#34;headType&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;element name=&#34;styling&#34; type=&#34;stylingType&#34; minOccurs=&#34;0&#34; maxOccurs=&#34;1&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xs&#58;sequence&#62;<br />&#60;/xs&#58;complexType&#62;<br /><br />&#60;xs&#58;complexType name=&#34;stylingType&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;element name=&#34;style&#34; type=&#34;styleType&#34; minOccurs=&#34;0&#34; maxOccurs=&#34;3&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xs&#58;sequence&#62;<br />&#60;/xs&#58;complexType&#62;<br /><br />&#60;xs&#58;complexType name=&#34;styleType&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;fontFamily&#34; type=&#34;xs&#58;string&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;fontSize&#34; type=&#34;xs&#58;string&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;color&#34; type=&#34;xs&#58;string&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;id&#34; type=&#34;xs&#58;string&#34;/&#62;<br />&#60;/xs&#58;complexType&#62;<br /><br />&#60;xs&#58;complexType name=&#34;bodyType&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;element name=&#34;div&#34; type=&#34;divType&#34; minOccurs=&#34;0&#34; maxOccurs=&#34;1&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xs&#58;sequence&#62;<br />&#60;/xs&#58;complexType&#62;<br /><br />&#60;xs&#58;complexType name=&#34;divType&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;element name=&#34;p&#34; type=&#34;subtitleType&#34; minOccurs=&#34;0&#34; maxOccurs=&#34;unbounded&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xs&#58;sequence&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;style&#34; use=&#34;required&#34;/&#62;<br />&#60;/xs&#58;complexType&#62;<br /><br />&#60;xs&#58;complexType name=&#34;subtitleType&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;simpleContent&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;extension base=&#34;xs&#58;string&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;begin&#34; use=&#34;required&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xs&#58;attribute name=&#34;end&#34; use=&#34;required&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xs&#58;extension&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xs&#58;simpleContent&#62;<br />&#60;/xs&#58;complexType&#62;<br /><br />&#60;xs&#58;element name=&#34;tt&#34; type=&#34;ttType&#34;/&#62;<br /><br />&#60;/xs&#58;schema&#62;<!--c2--></div><!--ec2--><br /><br />When we run our Excel spreadsheet with this Schema, we get the following output:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?xml version='1.0' encoding='UTF-8'?&#62;<br />&#60;ns3&#58;tt xmlns&#58;ns3=&#34;http&#58;//www.w3.org/2006/04/ttaf1&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;head&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;styling&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;style fontFamily=&#34;Arial,Helvetica,sans-serif&#34; fontSize=&#34;20&#34; color=&#34;#ffffff&#34; id=&#34;1&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/styling&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/head&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;body&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div style=&#34;style&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p begin=&#34;00&#58;00&#58;01.00&#34; end=&#34;00&#58;00&#58;02.00&#34;&#62;Time code must be in hh&#58;mm&#58;ss.00 format. Delete this row.&#60;/p&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/body&#62;<br />&#60;/ns3&#58;tt&#62;<!--c2--></div><!--ec2--><br /><br />The end format needs to be as follows:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62;<br />&#60;tt xml&#58;lang=&#34;en&#34; xmlns=&#34;http&#58;//www.w3.org/2006/04/ttaf1&#34; xmlns&#58;tts=&#34;http&#58;//www.w3.org/2006/04/ttaf1#styling&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;head&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;styling&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;style tts&#58;fontFamily=&#34;Arial,Helvetica,sans-serif&#34; tts&#58;fontSize=&#34;20&#34; tts&#58;color=&#34;#ffffff&#34; id=&#34;1&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/styling&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/head&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;body&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div style=&#34;style&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p begin=&#34;00&#58;00&#58;01.00&#34; end=&#34;00&#58;00&#58;02.00&#34;&#62;Time code must be in hh&#58;mm&#58;ss.00 format. Delete this row.&#60;/p&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/body&#62;<br />&#60;/tt&#62;<!--c2--></div><!--ec2--><br /><br />I'm having difficulty getting it fine tuned - I end up manually making a few corrections. I have to remove the "ns3" references throughout the entire output. Also, I have to add "tts" to each of the attributes in the &lt;style&gt; tag. Lastly, in the &lt;tt&gt; tag, how would I code it to include the "xmlns:tts" attribute and value, and also include the "xml-lang" attribute?<br /><br />Any pointers/suggestions are welcome and greatly appreciated.<br /><br />Thanks,<br />Matthew]]></description>
		<pubDate>Wed, 22 Jul 2009 08:48:03 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26231</guid>
	</item>
	<item>
		<title>Summing Variables</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26187</link>
		<description><![CDATA[Hello everybody,<br /><br />I'm trying to transform an XML file into a table using XSLT.<br />I can calculate the value of a variable and get the value on each row of the table.<br /><br />How can I sum the value of the variable of each row and get the total amount for each column?<br /><br />As far as I know, I can't use the sum operator with a variable<br />sum($variable)<br />because the sum opearator works with Xpath expressions only.<br /><br />Any suggestions are appreciated.<br /><br />Thanks a lot,<br />Alessandro<br />]]></description>
		<pubDate>Mon, 20 Jul 2009 07:03:03 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26187</guid>
	</item>
	<item>
		<title>Xslt - On The Client Tutorial</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26171</link>
		<description><![CDATA[Hello<br /><br />Does anyone know how to get this tutorial working with Google Chrome?<br /><a href="http://www.w3schools.com/xsl/xsl_client.asp" target="_blank">http://www.w3schools.com/xsl/xsl_client.asp</a><br /><br />It works in all other browsers I've tried but in Google Chrome the result is just blank. No errors or anything.<br /><br />If someone could tell me how to get this working I'd be very grateful!<br /><br />Thanks!]]></description>
		<pubDate>Sun, 19 Jul 2009 12:29:45 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26171</guid>
	</item>
	<item>
		<title>Xpath Is Incorrect.</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26165</link>
		<description><![CDATA[I'm trying to learn xslt and apparently have a problem with my XPath. I'm new to this and I really hate it, but a necessary evil, correct? Well here is my very first xslt test and it says I have a problem with the XPath in the xslt file.<br /><br /><!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Error loading stylesheet: Parsing an XPath expression failed.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Here is my xml file-<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62;<br />&#60;?xml-stylesheet type=&#34;text/xsl&#34; href=&#34;xsltest1.xsl&#34;?&#62;<br />&#60;browser&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;firefox&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;speed&#62;fast&#60;/speed&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;rating&#62;*****&#60;/rating&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/firefox&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;chrome&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;speed&#62;fast&#60;/speed&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;rating&#62;****&#60;/rating&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/chrome&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;ie&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;speed&#62;moderate&#60;/speed&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;rating&#62;**&#60;/rating&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/ie&#62;<br />&#60;/browser&#62;<!--c2--></div><!--ec2--><br /><br />Here is my xslt file-<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?xml version=&#34;1.0&#34; ?&#62;<br />&#60;xsl&#58;stylesheet version=&#34;1.0&#34; xmlns&#58;xsl=&#34;http&#58;//www.w3.org/1999/XSL/Transform&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xsl&#58;template match=&#34;browser/*/&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;xsl&#58;apply-templates select=&#34;speed&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xsl&#58;template&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xsl&#58;template match=&#34;speed&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SpEEeeeEd. <br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/xsl&#58;template&#62;<br />&#60;/xsl&#58;stylesheet&#62;<!--c2--></div><!--ec2--><br /><br />I know it's the wildcard character it doesn't like, but I think that should be ok because it follows the format that Tizag uses (Not using w3schools on this one, I go back and forth.)<br /><a href="http://www.tizag.com/xmlTutorial/xslapplytemplates.php" target="_blank">http://www.tizag.com/xmlTutorial/xslapplytemplates.php</a><br /><br />So why won't this work? I don't need it for practical purposes, this is just my first test.]]></description>
		<pubDate>Sat, 18 Jul 2009 23:31:41 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26165</guid>
	</item>
	<item>
		<title>New To Xml. How Should I Do This?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26114</link>
		<description><![CDATA[So my project is to make some kind of fancy message that you will see on a site if there are messages available. For example, this one will check your browser and tell you if it's a good browser. Instead of just making a hard copy of the tabbed layout I wanted it to be multi-purposed. Like if there is a new exciting feature or two and I wanted this to popup for member who have just signed in and haven't seen it yet. So I thought I would do this with XML. It goes as follows-<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;tab name=&#34;Chrome&#34;&#62;<br />&#60;mtitle&#62;Message Title&#60;/mtitle&#62;<br />&#60;message&#62;<br />This is the message of the tab. Pretty simple.<br />&#60;/message&#62;<br />&#60;/tab&#62;<!--c2--></div><!--ec2--><br /><br />It only consists of 3 tags so far but once I get it down I'll expand to more information. I want it to look something like this-<br /><img src="http://img440.imageshack.us/img440/458/tabbedmessageconept.jpg" border="0" class="linked-image" /><br /><br />And it currently looks something like this-<br /><a href="http://mrfishtests.byethost17.com/" target="_blank">http://mrfishtests.byethost17.com/</a><br /><br />How can I use Php/Javascript/xml to make a script that turns every &lt;tab&gt; into a tab, &lt;mtitle&gt; into a title, etc. I want this to have the ability to have several tabs but easy to edit. I'm currently using fopen to get the file with the xml (wich I want to stay a php file in case I want to get information for that specific message).<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?php<br />$file = fopen&#40;'includes/blackoutmessagelogs.php', &#34;r+&#34;&#41;;<br />while&#40;!feof&#40;$file&#41;&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo fgets&#40;$file&#41; . '&#60;br /&#62;';<br />}<br />fclose&#40;$file&#41;;<br />?&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Wed, 15 Jul 2009 21:43:15 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26114</guid>
	</item>
	<item>
		<title>Basic Xslt</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26059</link>
		<description><![CDATA[Hello,<br /><br />Fairly new to using xslt... I have multiple xslt files that the user can load to view the data. I want to create an xslt that displays the XML as if no transformation was done on it. I want the tags displayed as if no style sheet was loaded... Any suggestions? I'm able to display the tags by replacing "&lt;" by "&lt", etc. but the data is all bunched up with no separation between tags.<br /><br />Thanks in advance,<br /><br />Mike]]></description>
		<pubDate>Sun, 12 Jul 2009 23:55:16 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26059</guid>
	</item>
	<item>
		<title>Xml Creation Through Php</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26045</link>
		<description><![CDATA[Hi ,<br />     I am creating XML through php DOMdocument. i am creating an element in xml and assigning it a value which is coming from a varible in my php script. after that i am accessing that xml element in my java script  by getElementsByTagName()[0].firstChild.nodeValue, this is working fine in firefox and chrome but ie is throwing and error 'object required' at this line. the strange part of this is at the time of assigning a value to that element in php if i hardcode the same value of that variable than it works fine.  means <br />                  suppose $cat_id is having value 1;<br />                         $dom-&gt;createElement('CATID',$cat_id); doesn't work in ie but works in other browsers. <br />                          $dom-&gt;createElement('CATID',1); works fine in ie too. <br />but in both cases xml is same  ,if you will see the xml in browser.  I am totally clueless what's going wrong if i assign that variable to that element in XML. i even checked the bytes through wireshark but it is same in both the cases.<br />please help me out.]]></description>
		<pubDate>Sun, 12 Jul 2009 02:24:08 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26045</guid>
	</item>
	<item>
		<title>Ajax Rss Reader</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26041</link>
		<description><![CDATA[Can anyone tell me how to get this example working without the drop-down menu?  It's exactly what I'm looking for, except I'd like the RSS feed to show automatically without having to select a drop-down.<br /><br /><a href="http://www.w3schools.com/php/php_ajax_rss_reader.asp" target="_blank">http://www.w3schools.com/php/php_ajax_rss_reader.asp</a><br /><br />Any help would be greatly appreciated.<br /><br />Thanks,<br /><br /><br />-Ted]]></description>
		<pubDate>Sat, 11 Jul 2009 22:46:28 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26041</guid>
	</item>
	<item>
		<title>Xslt Looping Problem</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=26001</link>
		<description><![CDATA[Hi <br /><br />I have a problem currently with looping in XSLT.. <br />What i'm trying to do is removing duplicates from a Node structure<br /> <br />I have many regs that contain a set of persons. <br /><br />when i do <br />&lt;xsl:for-each select="./persons/person"&gt;<br />   &lt;xsl:if test="./name[.=following::name]"&gt;true&lt;/xsl:if&gt;<br />&lt;/xsl:for-each&gt;<br /><br />when it reaches the first Ant. it will print true instead Nothing because it sees in the next person's set another Ant but I want it to print nothing!<br />while for Bob because there no more bob afterwards it won't print anything which is good..<br /><br />I could not find the solution <br /><br />any help is appreciated....<br /><br />XML BELOW and below the xml is my XSLT<br /><br /><br />&lt;roots&gt;<br />   &lt;regs&gt;<br />       &lt;persons&gt;<br />               &lt;person&gt;<br />                        &lt;name&gt;Ant&lt;/name&gt;<br />                        &lt;type&gt;&lt;/type&gt;<br />                &lt;/person&gt;<br />                 &lt;person&gt;<br />                        &lt;name&gt;Bob&lt;/name&gt;<br />                        &lt;type&gt;&lt;/type&gt;<br />                &lt;/person&gt;<br />        &lt;/persons&gt;<br />   &lt;/regs&gt;<br />   &lt;regs&gt;<br />       &lt;persons&gt;<br />            &lt;person&gt;<br />                        &lt;name&gt;Ant&lt;/name&gt;<br />                        &lt;type&gt;&lt;/type&gt;<br />                &lt;/person&gt;<br />               &lt;person&gt;<br />                        &lt;name&gt;Mark&lt;/name&gt;<br />                        &lt;type&gt;&lt;/type&gt;<br />                &lt;/person&gt;<br />        &lt;/persons&gt;<br />   &lt;/regs&gt;<br />&lt;roots&gt;<br /><br /><br />part of my XSLT<br /><br />&lt;xsl:for-each select = "regs"&gt;<br />    &lt;xsl:for-each select="Persons/Person"&gt;<br />         &lt;xsl:if test="./name[.=following::name]"&gt;true&lt;/xsl:if&gt;<br />    &lt;/xsl:for-each&gt;<br />&lt;/xsl:for-each]]></description>
		<pubDate>Thu, 09 Jul 2009 11:06:03 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=26001</guid>
	</item>
	<item>
		<title>Xml And Cookies</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=25974</link>
		<description><![CDATA[Hi everybody,<br />i'm developing a simple application entirely based on xml.<br /><br />I use eXist xml-based db and, in a few words, that's what i'm working on: I have some xml files that are transformed using xquery into other xml files, formatted in html using xsl and css.<br /><br />Now i would use the cookies to manage the user's sessions: do i need something like php/asp/jsp or am i able to do the same using the instruments that i'm already using?<br /><br />Thank you all.]]></description>
		<pubDate>Wed, 08 Jul 2009 06:42:08 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=25974</guid>
	</item>
	<item>
		<title>Namespace Problem</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=25959</link>
		<description><![CDATA[Hi everybody,<br />that's my first post here.<br /><br />i have a problem with the namespaces using xslt to transform an xml document.<br /><br />The xml document is:<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;?xml-stylesheet href="dettagli.xsl" type="text/xsl"?&gt;<br />&lt;page&gt;<br />    &lt;compositore&gt;<br />        &lt;nome&gt;Pink Floyd&lt;/nome&gt;<br />        &lt;recensione&gt;<br />            bla bla bla<br />        &lt;/recensione&gt;<br />    &lt;/compositore&gt;<br />    &lt;items xmlns="urn:apis:Components"&gt;<br />        &lt;Item&gt;<br />            &lt;Title&gt;item1&lt;/Title&gt;<br />        &lt;/Item&gt;<br />        &lt;Item&gt;<br />            &lt;Title&gt;item2&lt;/Title&gt;<br />        &lt;/Item&gt;<br />        &lt;Item&gt;<br />            &lt;Title&gt;item3&lt;/Title&gt;<br />        &lt;/Item&gt;<br />    &lt;/items&gt;<br />&lt;/page&gt;</div><br /><br />The xslt section that doesn't work is:<br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;div id="news"&gt;<br />		&lt;xsl:for-each select="/page/items/Item"&gt;<br />		    &lt;p&gt;&lt;xsl:value-of select="Title"/&gt;&lt;/p&gt;<br />		&lt;/xsl:for-each&gt;<br />	&lt;/div&gt;<br /></div><br />I suppose that the xslt doesn't work because of the xmlns in the "items" node.<br /><br />Could you please suggest me how to fix that problem?<br /><br />Thank you.]]></description>
		<pubDate>Tue, 07 Jul 2009 12:56:45 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=25959</guid>
	</item>
	<item>
		<title>Displaying Xml Nodes In A Table</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=25862</link>
		<description><![CDATA[Hi guys,<br /><br />XML structure:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->search-results<br />&nbsp;&nbsp; object1<br />&nbsp;&nbsp; object2<br />&nbsp;&nbsp; object3<br />&nbsp;&nbsp; items<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file-item<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; genre<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file-item<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; genre<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file-item<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; genre<!--c2--></div><!--ec2--><br /><br />xslt:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;xsl&#58;stylesheet version=&#34;1.0&#34; xmlns&#58;xsl=&#34;http&#58;//www.w3.org/1999/XSL/Transform&#34;&#62;<br />&#60;xsl&#58;output method=&#34;html&#34; encoding=&#34;utf-8&#34; omit-xml-declaration=&#34;yes&#34;/&#62;<br /><br />&#60;xsl&#58;template match=&#34;/&#34;&#62;<br />&#60;table border=&#34;0&#34; id=&#34;research&#34; class=&#34;style1&#34;&#62;<br />&nbsp;&nbsp;&#60;tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;th scope=&#34;col&#34;&#62;A&#60;/th&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;th scope=&#34;col&#34;&#62;B&#60;/th&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;th scope=&#34;col&#34;&#62;C&#60;/th&#62;<br />&nbsp;&nbsp;&#60;/tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;xsl&#58;for-each select=&#34;search-results/items/file-item&#34;&#62;<br />&nbsp;&nbsp;&#60;tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;&#60;xsl&#58;if test=&#34;genre = 'A'&#34;&#62;&#60;xsl&#58;value-of select=&#34;name&#34;/&#62;&#60;/xsl&#58;if&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;&#60;xsl&#58;if test=&#34;contains&#40;genre, 'B'&#41;&#34;&#62;&#60;xsl&#58;value-of select=&#34;name&#34;/&#62;&#60;/xsl&#58;if&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;&#60;xsl&#58;if test=&#34;genre = 'C'&#34;&#62;&#60;xsl&#58;value-of select=&#34;name&#34;/&#62;&#60;/xsl&#58;if&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&#60;/tr&#62;<br />&nbsp;&nbsp;&#60;/xsl&#58;for-each&#62;<br />&#60;/table&#62;<br />&#60;/xsl&#58;template&#62;<br />&#60;/xsl&#58;stylesheet&#62;<!--c2--></div><!--ec2--><br /><br />My problem is, that if the first file-item has a genre of "a", its puts it column "a", but then if the next file-item has a genre of "b" (allthough it puts it in the "b" column) it puts it on the next row.<br /><br />The table im getting looks somthing like this:<br /><br />A-----B------C<br />a<br />a<br />-------b<br />-------b<br />a<br />--------------c<br /><br />but i want it to look like this:<br /><br />A       B       C<br />a       b        c<br />a       b        c<br />etc...<br /><br />Any help would be much appreciated!!]]></description>
		<pubDate>Tue, 30 Jun 2009 11:52:33 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=25862</guid>
	</item>
</channel>
</rss>