Subject: Re: [xsl] Correct way to test for no match From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 01 Oct 2009 17:43:43 -0400 |
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?
Good luck, Wendell
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
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Correct way to test for no ma, Dan Vint | Thread | Re: [xsl] Correct way to test for n, Dan Vint |
[xsl] Correct way to test for no ma, Dan Vint | Date | RE: [xsl] Create a web interface to, Michael Kay |
Month |