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

RE: Bug in XT ? - no

Subject: RE: Bug in XT ? - no
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Wed, 18 Aug 1999 19:55:19 -0600
RE: Bug in XT ? - no
> Exception in thread "main" bad character after :
>
>  <xsl:variable name='zaza' select='http://www.yahoo.com'/>

No, not a bug. You are saying "bind a variable with name 'zaza' to a
node-set that matches the XPath expression http://www.yahoo.com"

 http:  = namespace prefix 'http'
 //     = descendants
 www    = element name 'www'
 .      = current node
 yahoo  = element name 'yahoo'
 .      = current node
 com    = element name 'com'

...and this of course is not a valid expression for many reasons, not the
least of which is that // cannot follow a namespace prefix.


Try this (notice the quoting):

<xsl:variable name="zaza" select="'http://www.yahoo.com'"/>

This is saying "bind a variable with name 'zaza' to a *string* consisting of
these literal characters http://www.yahoo.com


 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.