xsl nodename,expected token eof found,error expected token eof,error expected token found name, xml%%%xsl nodename - 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: David Schach <davidsch@xxxxxxxxxxxxx>
Date: Fri, 26 Mar 1999 09:12:13 -0800
xsl nodename
Are you using the IE5 beta?  The | operator works in the release version.

-----Original Message-----
From: Rebecca Chan [mailto:chanr@xxxxxxxxxxxxxxxxxxxx]
Sent: Friday, March 05, 1999 7:23 PM
To: XSL-List@xxxxxxxxxxxxxxxx
Subject: Beginner's question: The | doesn't work


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?


<?xml version="1.0"?>

<!-- Generic stylesheet for viewing XML -->
<xsl:template xmlns:xsl="http://www.w3.org/TR/WD-xsl">
	<DIV STYLE="font-family:Times; font-size:10pt; margin-bottom:3em">
		<H1>The Mode_View Section of Notation1</H1>
		<xsl:apply-templates select="test1/subTest"/>
	</DIV>
	<xsl:templates>
		<xsl:template>
			<xsl:apply-templates/>
		</xsl:template>
		<xsl:template match="*[node()]">
			<DIV STYLE="margin-left:3em;color:blue">
				<xsl:nodeName/>
				<xsl:apply-templates select="@*"/>
				<xsl:apply-templates select="node()"/>
			</DIV>
		</xsl:template>
<!----------------------- | is used here--------------------------->
		<xsl:template select="test1ID | test2ID">
			<DIV STYLE="margin-left:3em; color:green">
				<xsl:nodeName/>
				<xsl:apply-templates select="@*"/>
				<xsl:apply-templates select="node()"/>
			</DIV>
		</xsl:template>
		<xsl:template match="textnode()">
			<SPAN STYLE="color:purple">
				<B>
					<xsl:get-value/>
				</B>
			</SPAN>
		</xsl:template>
	</xsl:templates>
</xsl:template>



 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

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.