[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] about xsl:when
Subject: RE: [xsl] about xsl:when From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Thu, 8 Mar 2001 16:50:02 -0000 |
> I try that display the names that have the 'id=1' and 'id=2' > in the resutl, > but doesen't work. In the XML file, each 'persona' node have > a 'id' with > numeric value. This is the xsl code: > > <xsl:template match = "persona[@id]" > > <xsl:choose > > <xsl:when test = ".='1'" > <br/> You current node is the persona element, not the @id attribute. Try <xsl:when test="@id='1'"> Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] about xsl:when, David Carlisle | Thread | [xsl] problem matching templates., Snyder, Christopher |
Re: [xsl] How to efficiently remove, Teppo Peltonen | Date | RE: [xsl] How to pass parameters to, Michael Kay |
Month |