This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]