|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Inserting the value of a variable in a result-doc
don't do <xsl:with-param name="myInputDoc">file:///c:/test.xml</xsl:with-param> (which forces the system to (act as if it had to) generate a temporary tree with a new document node with a text node child, which is expensive to build if all you are going to do is coerce back to a string, instead do <xsl:with-param name="myInputDoc" select="'file:///c:/test.xml'"/> or just pass in the document rather than a string <xsl:with-param name="myInputDoc" select="doc('file:///c:/test.xml')"/> I wouldn't use named templates at all for this, just have an identity template <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> and a template for insert that inserts stuff: <xsl:template match="insert"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> <xsl:text>the new insert</xsl:text> </xsl:template> David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







