Just to thank Ken Holman for those nice XSLT and XPath sites!
|From: General discussion of Extensible Markup Language
|[mailto:[log in to unmask]] On Behalf Of G. Ken Holman
|Sent: 12 May 2004 12:23 PM
|To: [log in to unmask]
|Subject: Re: Concatenating multiple input documents into a
|XSLT and XPath questions would be better posted to the following list:
|There are a number of subscribers who would enthusiastically
|respond to such questions.
|There is also an *excellent* FAQ at:
|At 2004-05-10 19:27 -0700, Chris von See wrote:
|>I want to concatenate all of the nodes in a RELAX-NG schema (which is
|>comprised of multiple included files) into a single node-set.
|Actually, if you are using XSLT 1.0 you are declaring a result
|tree fragment variable, not a node set.
|>something like this:
|> <xsl:for-each select="//rng:include">
|> <xsl:copy-of select="document(@href)" />
|>but I only get one node in the resulting variable.
|How are you establishing this count? Remember to do
|<xsl:copy-of select="$collection"/> to add the above to the
|result tree instead of doing <xsl:value-of select="$collection"/>.
|>Is there a better way to do this?
|Yes, change the <xsl:variable> to be <xsl:template> and then
|call the named template where you want the collection to be
|added to the result tree.
|I hope this helps.
|Public courses: Spring 2004 world tour of hands-on XSL instruction
|Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
|Bremen May 24-28, 2004 --- Birmingham June 14-18, 2004
|World-wide on-site corporate, govt. & user group XML/XSL training.
|G. Ken Holman mailto:[log in to unmask]
|Crane Softwrights Ltd. http://www.CraneSoftwrights.com/l/
|Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
|Male Breast Cancer Awareness http://www.CraneSoftwrights.com/l/bc
|Legal business disclaimers: http://www.CraneSoftwrights.com/legal