Subject: RE: Beginner's question: The | doesn't work From: David Schach <davidsch@xxxxxxxxxxxxx> Date: Fri, 26 Mar 1999 09:12:13 -0800 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Beginner's question: The | does, Joe Lapp | Thread | New XT release, James Clark |
RE: IE5.0 and XSL, Ben Jung | Date | RE: XML to HTML Conversion Tools, Mike Dierken |
Month |