|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:value-of not allowed inside a stylesheet
Jarko wrote:
...
I getting this sort of error message from XALAN StylesheetHandler:
XSLT error: (StylesheetHandler) xsl:value-of not allowed inside a
stylesheet.
(file:///var/www/xslt/Header.xsl, line 62, column 85)
The situation is the same if I use xsl:copy-of.
The part of the Header.xsl what seems to be wrong looks like this:
<p><b>Message count= </b><xsl:value-of select="$NumberOfMessages" /></p>
Since the value comes from a variable, the list of variables is
in a separate file. The variable is like this:
<xsl:variable name="NumberOfMessages">
<xsl:for-each select="Document">
<xsl:value-of select="count(Information)" />
</xsl:for-each>
</xsl:variable>
...
-------------------------------------------------------------------
Morning Jarko,
Can we have a bit more of Header.xsl - at least the template the line comes
from?
Ta,
Tom Weissmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! 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
|

Cart








