|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Testing if attribute node
I'm not exactly certain I understand what you are saying, but I will attempt to help you. <xsl:template match="elt"> <xsl:if test="parent::*/attribute::*"> <!--if node has attributes--> <xsl:value-of select="."/> <!--apply your processing--> </xsl:if> </xsl:template> <xsl:template match="elt/@match"> <xsl:if test="parent::*/attribute::*"> <xsl:value-of select="."/> </xsl:if> </xsl:template> </xsl:stylesheet> I hope this helps. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of David Carlisle Sent: Monday, January 19, 2004 8:35 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Testing if attribute node test="self::* " is true on element nodes but not attributes. A fuller test for all node types was posted on this list the other day, it's probably in thef aq. David -- http://www.dcarlisle.demon.co.uk/matthew XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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








