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(_dot_)Honnen(_at_)gmx(_dot_)de>
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--