[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Unknown error in Xpath
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@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Vivek Shinde > Sent: 02 September 2003 19:03 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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
|
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
|