This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:variable not suppported
i am trying to use xsl:variable / xsl:param but it is giving error in ie5
anybody who have used these may come to rescue :-(
anoop
----- Original Message -----
From: Bill Rishel <illusyn@nwlink.com>
To: <xsl-list@mulberrytech.com>
Sent: Wednesday, February 23, 2000 12:07 PM
Subject: Re: Filtering on element name e.g. Author*
> > Doesn't work for me.
> >
> > This will work with ie5 won't it and it does run of the example.
> >
>
> I did it with xt:
> XML:
> <?xml version="1.0"?>
>
> <top>
> <subscriber_id>nick</subscriber_id>
> <portfolio1>fun</portfolio1>
> <portfolio2>serious</portfolio2>
> </top>
>
> XSL:
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xt="http://www.jclark.com/xt"
> extension-element-prefixes="xt">
>
> <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
> <xsl:strip-space elements="*"/>
>
> <xsl:template match="/">
> <xsl:apply-templates />
> </xsl:template>
>
> <xsl:template match="top">
> <xsl:apply-templates select="*[substring(name(),1,9)='portfolio']"/>
> </xsl:template>
>
> <xsl:template match="top/*">
> <xsl:text>
> </xsl:text>
> <xsl:value-of select="name()"/>
> </xsl:template>
>
> </xsl:stylesheet>
>
> OUTPUT:
>
> portfolio1
> portfolio
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list