A
Andy Fish
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
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