Subject: Re: Filtering on element name e.g. Author* From: "Bill Rishel" <illusyn@xxxxxxxxxx> Date: Tue, 22 Feb 2000 22:37:58 -0800 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Filtering on element name e.g. , Wakefield, Nicholas | Thread | xsl:variable not suppported, anoop |
Re: Sum() function, Steve Muench | Date | Saxon, Mar Fior |
Month |