[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

Subject: Re: How to transform multiple XML docs with XSLT 2.0 into single doc
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 25 Jun 2010 16:28:24 +0200
Re:  How to transform multiple XML docs with XSLT 2.0 i
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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.