[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

Subject: RE: xsl:value-of not allowed inside a stylesheet
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Fri, 17 May 2002 10:03:09 +0100
value is not allowed
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.