|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Beginner's question: The | doesn't work
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








