Search the web
Sign In
New User? Sign Up
struts-xsl · Struts for Transforming XML with XSL
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Select attributes: selecting all nodes EXCEPT one   Message List  
Reply | Forward Message #2657 of 2669 |
Re: [struts-xsl] Select attributes: selecting all nodes EXCEPT one

Try:

<xsl:for-each select="not(local-name(.) == 'th)">
..
</xsl:for-each>

Don

bgsisk wrote:
>
> I need to apply an <xsl:template> to all of the child tags (nodes) of
> a given tag, except for one or two. For example, let's say in a table
> <table>
>
> </table>, you wanted to output the value of every node EXCEPT one, for
> example, every <td></td>, every <tr></tr>, but not any of the
> <th></th> elements. Thus every child node of the context node except
> for one. How do you write a select that will do this (exclude one of
> the child elements but include all others).
>
> What I am looking for is: <xsl:value-of select=" "/>
> What goes inside the quotes to accomplish this?
>
> The <th></th> case is just an example--I am asking about the general
> case--not just that specific case. So if you answer, please provide an
> answer that will work at excluding any node you specify.
>
>




Mon Aug 21, 2006 5:03 pm

mrdon42
Offline Offline
Send Email Send Email

Forward
Message #2657 of 2669 |
Expand Messages Author Sort by Date

I need to apply an <xsl:template> to all of the child tags (nodes) of a given tag, except for one or two. For example, let's say in a table <table> </table>,...
bgsisk
Offline Send Email
Aug 19, 2006
10:09 pm

Try: <xsl:for-each select="not(local-name(.) == 'th)"> .. </xsl:for-each> Don...
Don Brown
mrdon42
Offline Send Email
Aug 21, 2006
5:05 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help