[xsl] using XPath axis with HTML input

Subject: [xsl] using XPath axis with HTML input
From: Rahil <qamar_rahil@xxxxxxxxxxx>
Date: Thu, 02 Jun 2005 13:21:18 +0100
Hi

I want to work with some HTML output (which is the result of some XSLT processing) and so need to access some bits of the HTML output using the XPATH axis.

So if I have an HTML file such as

-----------------------------------------------
<TABLE border="0">
<TR>
<TD width="50%"><FONT SIZE="4" COLOR="red">Checking for existence of Bolt...</FONT></TD>
<TD width="50%"><FONT SIZE="4" COLOR="#FF4040">Exists as a Restriction: <B>hasPart Bolt[10237]</B></FONT></TD>
</TR>
</TABLE>
------------------------------------------------



How can I access for e.g. the <TD> with contents 'Exists as a Restriction.....' from another .xsl file next-in-chain suing any of the 13 axes? Also how can I extract the [10237] portion - Is it by simply applying certain string manipulation functions such as substring?


Thanks for all suggestions.

Rahil

Current Thread