Subject: Beginner's question: The | doesn't work From: Rebecca Chan <chanr@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 5 Mar 1999 19:22:38 -0800 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: DCOM is now open code, Didier PH Martin | Thread | Re: Beginner's question: The | does, Elliotte Rusty Harol |
DCOM is now open code, Didier PH Martin | Date | Re: DCOM is now open code, Lars Marius Garshol |
Month |