|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Filtering on element name e.g. Author*
> Has anyone done this succesfully. I am trying to read portfolio1,
> portfolio2 etc.. using a filer which would say something like portfolio*.
> However I get stuck:-(
>
> Anyone done this before and succeded
>
> TIA
>
> XML
> *****
<top>
<subscriber_id>nick</subscriber_id>
<portfolio1>fun</portfolio1>
<portfolio2>serious</portfolio2>
</top>
XSL
****
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="*" />
<xsl:template match="top">
<xsl:apply-templates select="*[nodename = 'p*']"/>
</xsl:template>
<xsl:template match="*[nodename = 'p*']">
<xsl:eval>nodeName()</xsl:eval>
</xsl:template>
</xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








