[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: fn:collection and result-document problem

Subject: Re: Re: fn:collection and result-document problem
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Mon, 24 Mar 2008 14:07:10 +0100
Re:  Re: fn:collection and result-document problem
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()])"/>
JSPX: <xsl:value-of select="$page-path"/>:
<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

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.