[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to transform multiple XML docs with XSLT 2.0 i
Hi Martin, Yes, you are right. I will use this method to load additional documents to carry out transformation. Thank you again, Jack ----- Original Message ---- From: Martin Honnen <Martin.Honnen@xxxxxx> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Sent: Sat, 26 June, 2010 12:28:24 AM Subject: Re: How to transform multiple XML docs with XSLT 2.0 into single doc Jack Bush wrote: > ( i ) Is it true that lines 8 - 13 retrieves content of /ph:index/ph:title? If so what is the purpose of lines 15 - 17? > ( ii ) What does line 21 do especially the concat() function and which document is it reading from? Is it index.xml? Does it mean that lines 8 - 23 all uses the same document as a result from this line? Likewise, where in this stylesheet that references the secondary source index.xml? > ( iii ) Lines 25 - 39 appears to retrieve content of various nodes in the primary source (either geneva.xml orlondon.xml). Exactly which one of them is the primary source document? Or is it able to lookup both at the same time? > ( iv ) Lines 25 - 39 all uses ( v ) Lastly, is URI in XSLT is equivalent to filename? e.g. document('geneva.xml') With that stylesheet you have posted only index.xml makes sense as the primary input document. That document contains ph:entry elements with the name or rather prefix of other files to be loaded with the document function (e.g. with <ph:entry>geneva</ph:entry> and <xsl:apply-templates select="document(concat(.,'.xml'))"/> the file "geneva.xml" is loaded and processed). -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|