You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Matthew Richardson <ma...@oceanlake.com> on 2002/10/22 20:18:41 UTC

inside of an

Im getting html that basically looks like this <a href='bla'>Another link<a
href='blabla">stuff</a></a>

my question is when im going through this , how do i pick out the inner <a
href>  ??
I'm going to be throwing it in a <xsI:choose><xsl:when> structure. I know i
might need to used child(node()) but im new at this so any help would be
great.


Matt




Re: inside of an

Posted by Joseph Kesselman <ke...@us.ibm.com>.
>how do i pick out the inner <a href>  ?? 

I haven't tested this, but something like "a[@href and parent::a[@href]]" 
ought to do it... in other words, any <a> which has an href attribute and 
whose parent is also an <a> with an href.

Of course if there might be still more layers and you only want the 
innermost, you also need to check that...


______________________________________
Joe Kesselman  / IBM Research