Re: [xsl] Re: fn:collection and result-document problem

Subject: Re: [xsl] Re: fn:collection and result-document problem
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Mon, 24 Mar 2008 14:07:10 +0100
Robert Koberg wrote:

but this does not:

...
<xsl:apply-templates select="collection($jspx-includes-dir)" mode="jspx"/>
...
<xsl:template match="/" mode="jspx">
<xsl:variable name="jspx-doc" select="."/>
<xsl:variable name="page-path" select="concat($output-dir, '/WEB-INF/jspx/',
tokenize(document-uri(/), '/')[last()])"/>
<xsl:message>
JSPX: <xsl:value-of select="$page-path"/>:
</xsl:message>
<xsl:result-document href="{$page-path}">
<xsl:apply-templates select="$jspx-doc"/>

I don't know how your template for root nodes (e.g. <xsl:template match="/">) looks but here it is possible that you recursively process your nodes again. I would rather expect you to use e.g.
<xsl:apply-templates select="$jspx-doc/node()" mode="jspx"/>
here and then have templates filling the result document in mode="jspx".


--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread