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

RE: a novice Q

Subject: RE: a novice Q
From: Jo Kong HO <JoK@xxxxxxxxxxxxxx>
Date: Mon, 7 Aug 2000 16:43:39 +0100
RE: a novice Q
Mike

I tried what you suggested, and I get the following error :

Expected token 'eof' found '='. QT/text() -->=<-- 'text 1' and AT/text() !=
'NULL'

I am using IE5.

> a XSLT novice question, and I promise this is not my home work.
> I have the following XML :
[snip]
> and the following XSL
> 
> 	<xsl:template match="Test/Test2/Q">
> 		<xsl:if test=".[QT/text() = 'text 1' and AT/text() !=
> 'NULL']">

Your XPath syntax is invalid, and should be rejected (this syntax is a
carry-over from Microsoft IE5 XSL). The "." should not be followed by a
predicate. Write

<xsl:if test="QT/text() = 'text 1' and AT/text() != 'NULL'">

Mike Kay
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • a novice Q
    • Jo Kong HO - Fri, 4 Aug 2000 14:52:11 +0100
      • <Possible follow-ups>
      • Kay Michael - Mon, 7 Aug 2000 16:01:18 +0100
      • Jo Kong HO - Mon, 7 Aug 2000 16:43:39 +0100 <=
      • Kay Michael - Mon, 7 Aug 2000 18:13:49 +0100

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.