When the XSLT processor can't tell you anything better than "Unknown
error", then it's time to try it on a different processor. If nothing
else, you're likely to get better diagnostics.
There's nothing wrong with your xsl:variable, though the trailing "/."
is redundant.
Michael Kay
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Vivek Shinde
Sent: 02 September 2003 19:03
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Unknown error in Xpath
Team,
I have a xsl stylesheet that has a template with following statements:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="/newsletter">
..
..
..
<xsl:variable name="classification"
select="normalize-space(metadata/article-classification/.)"/>
<xsl:if test="contains($classification,'News')">
When I run the stylesheet with an XML file, I get following error:
got an exception....Unknown error in Xpath
; SystemID: file:..... Line#: 365; Column#: 98
Line 365 is the <xsl:variable....> line.
If I run it without this statement, it runs fine. I don't see
any obvious error in that statement. Any clues?
Thanks
Vivek
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list