[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Filtering on element name e.g. Author*

Subject: RE: Filtering on element name e.g. Author*
From: "Wakefield, Nicholas" <NWakefield@xxxxxxxxxxxxxxxxx>
Date: Tue, 22 Feb 2000 19:48:33 -0500
eg author
Doesn't work for me.

This will work with ie5 won't it and it does run of the example.

-----Original Message-----
From: Bill Rishel [mailto:illusyn@xxxxxxxxxx]
Sent: Tuesday, February 22, 2000 5:22 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: 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*.
Is something like the following enough like 'portfolio*'?
  <xsl:template match="top">
    <xsl:apply-templates select="*[substring(name(),1,9)='portfolio']"/>
  </xsl:template>

> > 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
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.