[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Best practices


Subject: RE: [xsl] Best practices
From: Jarno.Elovirta@xxxxxxxxx
Date: Mon, 19 Jan 2004 16:36:58 +0200

Hi,

> In the following xml document, what is the best way to 
> display 'id' and
> 'description' of element lln and 'name' of element N when
> objname='Folder'?

I don't really understand what's the thing you're having problems with, but

  <xsl:template match="lln[objname = 'Folder']">
    <xsl:value-of select="@id"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="@description"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="n/@name"/>
  </xsl:template>

Will display the info you wanted. 

Cheers,

Jarno

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xml