Re: [xsl] How to transform multiple XML docs with XSLT 2.0 into single doc

Subject: Re: [xsl] How to transform multiple XML docs with XSLT 2.0 into single doc
From: Jack Bush <netbeansfan@xxxxxxxxxxxx>
Date: Mon, 28 Jun 2010 04:54:47 -0700 (PDT)
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: [xsl] 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/

Current Thread