|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Looping through attributes..
> Okay, I'm looping through attributes. Now I need to determine if the name > of an attribute starts with a particular text expression. I have the > following (and it doesn't work): > > <xsl:for-each select="@*"> > <xsl:if test="starts-with(@,'S')"> > ... > </xsl:if> > </xsl:for-each> > > Am I close??? Yes: <xsl:for-each select="@*"> <xsl:if test="starts-with(.,'S')"> ... </xsl:if> </xsl:for-each> or even: <xsl:for-each select="@*[starts-with(.,'S')]"> ... </xsl:for-each> if you're just going to ignore the attributes which don't start with 'S'. Hope that helps. Dave 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








