Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


passing in an element as a parameter to a stylesheet

From: "Andy Fish" <ajfish@----------.--.-->
To: NULL
Date: 8/2/2007 12:20:00 PM

hi,

I have a stylesheet which accepts a parameter 'foo' whch is an XML element 
(.Net 2.0 - I'm not sure if this is platform specific)

now, when I do

<xsl:apply-templates select=$foo />

this matches the following template:

<xsl:template match="/">

which I was expecting to only match the root of the input document (this 
confused me at first but it's obviously because the element passed in is 
effectively a root element)

the question is, is there a way to match only the root node element of the 
input document rather than the root element of a stylesheet parameter

Andy




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent