|
Subject: RE: [xsl] xsl:value-of not allowed inside a stylesheet From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx Date: Fri, 17 May 2002 10:03:09 +0100 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] RE: Simple problem - complica, michael . h . kay | Thread | [xsl] Using regular expressions in , trang_nguyen |
| Re: [xsl] Simple problem - complica, Mike Brown | Date | Re: [xsl] template precedence probl, Jeni Tennison |
| Month |