[Home] [By Thread] [By Date] [Recent Entries]
I have a structure where I need to match values between w element
attributes. These elements are in different parst of the document. Problem
I'm trying to solve is when there is a typo in one of the attributes and
there is no match. I thought this would do it, but it's not
<xsl:when test="ancestor::ipb/figure/subfig/graphic[@boardno=$sht_num]/@boardno"> same with this <xsl:when test="ancestor::ipb/figure/subfig/graphic[@boardno=$sht_num]/@boardno = ''"> Any suggestions? Here is the doc structure: <ipb>
<figure>
<subfig>
<graphic boardno='a'/>
</subfig>
</figure>
<table>
<row>
<entry><ipbilus><xref shtref='b'/></ipbilus>
</entry>
</row>
</table>
</ipb>$sht_num is set to xref/@shtref so b never finds a on graphic ..dan --------------------------------------------------------------------------- Danny Vint Specializing in Panoramic Images of California and the West http://www.dvint.com
|

Cart



