Hi,
It all depends on which node is the current node.
If you are to root node then obviously it won't work.
Try :-
<xsl:if test="//table/@border">
</xsl:if>
Cheers.
Arun
From: Eldho George <georgee(_at_)ocwen(_dot_)co(_dot_)in>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] How can I checking whether any one of my inter table
contain border attribute
Date: Thu, 23 Sep 2004 17:25:31 +0530
Ihave the following xhtml
<table>
<tr>
<td>
<table border="1">
</table>
</td>
<td>
<table>
<tr>
<td>
<table border="1">
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
How can I checking whether any one of my inter table contain border
attribute and I want to retrieve that value
I tried the following template .But it is not working
<xsl:if test="ancestor::table/@border">
</xsl:if>
Please tell me how can I solve this problem
Thanks in advance
George
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar ? get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/