expected token eof found name, xml%%%expected token eof found name - Re: Beginner's question: The

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

Re: Beginner's question: The | doesn't work

Subject: Re: Beginner's question: The | doesn't work
From: Elliotte Rusty Harold <elharo@xxxxxxxxxxxxxxx>
Date: Sat, 6 Mar 1999 07:46:55 -0500
expected token eof found name
At 7:22 PM -0800 3/5/99, Rebecca Chan wrote:
>The following is my code.  I used | as $or$ but it always gave me an error,
>"Error: Expected token '||' found 'NAME'.     test1ID->|<-test2ID "
>
>If I replaced | with ||, I would get another error,"Error: Expected token
>'eof' found '||'   test1ID->||<-test2ID"
>
>Did I miss something important?
>
><!----------------------- | is used here--------------------------->
>		<xsl:template select="test1ID | test2ID">


The | isn't the problem. The select is. It should be match. i.e.


<xsl:template match="test1ID | test2ID">


+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@xxxxxxxxxxxxxxx | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|        XML: Extensible Markup Language (IDG Books 1998)            |
|   http://www.amazon.com/exec/obidos/ISBN=0764531999/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://sunsite.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://sunsite.unc.edu/xml/     |
+----------------------------------+---------------------------------+



 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.