xsl-list
[Top] [All Lists]

RE: Best practices

2004-01-19 07:36:58
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



<Prev in Thread] Current Thread [Next in Thread>