Subject:value of select doubt Author:Minollo I. Date:06 Apr 2006 08:57 AM
You will need to work with the string value somehow; seems bad design to have "poscode" coded as part of the text node, instead of exploded in the XML structure itself...
You could do something like...
<xsl:value-of select="attribute[@name='address' and contains(.,'poscode=75500']"/>
...or you can do more sophisticated checks using other XPath functions to manipulate strings.
hi, thanks for ur help. I followed exactly the way u mentioned below, there was no error when converting to html, but under the address column of the table, it will still select the whole adresss, instead of poscode number only...
>You will need to work with the
>string value somehow; seems
>bad design to have "poscode"
>coded as part of the text
>node, instead of exploded in
>the XML structure itself...
>
>You could do something like...
><xsl:value-of
>select="attribute[@name='addre
>ss' and
>contains(.,'poscode=75500']"/&
>gt;
>
>...or you can do more
>sophisticated checks using
>other XPath functions to
>manipulate strings.
>
>Minollo
Subject:value of select doubt Author:Minollo I. Date:06 Apr 2006 10:22 PM
Oh, sorry; the code I sent you selected an <attribute> element corresponding to a specific poscode; if you want to display the poscode value only, you can do something like: