[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FW: RE: Re: XPath syntax error problem

Subject: FW: RE: Re: XPath syntax error problem
From: cknell@xxxxxxxxxx
Date: Sun, 23 Jan 2005 15:44:19 -0500
xpath syntax date
I didn't have the source file or the stylesheet to test my answer as I normally would. This is what happens when you don't test. It helps if you have someone looking over your shoulder to catch the mistakes you make.
--
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx>
Sent:     Sat, 22 Jan 2005 19:45:28 -0500
To:       cknell@xxxxxxxxxx
Subject:  RE: Re:  XPath syntax error problem

[off-list]

Hi Charles ... note that the right paren belongs to the left of the "=" and not the right of the "0". I didn't know if you wanted to correct it publicly or not. By leaving the paren where you put it, I suspect the processor would throw a "not a node set" error because the comparison makes it a boolean.

.................... Ken

At 2005-01-22 15:09 -0500, you wrote:

> " What am I doing wrong?"

The processor has told you what you are doing wrong. You just don't see it.
This is line 24 in your XSL file.

<xsl:if test="count(//*[substring-after(@ref,':') = $elementName] = 0">

How do I know this without seeing the whole file? The error message told me so.
The error message says that you have failed to include a closing parenthesis for the count() function. Change the line to read like this and that message will go away.


<xsl:if test="count(//*[substring-after(@ref,':') = $elementName] = 0)">

Note the right parenthesis between the '0' and the closing quotation mark. It isn't in your code and that's why the processor is complaining.

--
Charles Knell
cknell@xxxxxxxxxx - email


--
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/m/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/m/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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.