|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Correct way to test for no match
I've used this approach myself to help determine when a new element
has been added or someone starts using an element I've not seen used.
In this case I was in a when clause and I was trying to capture various combinations of markup errors. <xsl:when test="ancestor::ipb/figure/subfig/graphic[@boardno=$sht_num]/@boardno"> So I was trying to understand what value this particular test would return so I could trap it. In this case it was originally used like this and the function was indicating an empty or null value was being returned, so I was trying to match on that empty value. unparsed-entity-uri(ancestor::ipb/figure/subfig/graphic[@boardno=$sht_num]/@boardno) In this case I probably should have rearranged the when and otherwise tests and matched the good value and let the otherwise handled everything else. ultimately I also realized there was no value in doing this elaborate matching as the result is the same as the $sht_num. thanks everyone ..dan At 01:13 PM 10/4/2009, you wrote: At 2009-10-04 09:09 -0400, Dan Vint wrote:One other thought on this. The reason it is important to know if I don't have a match is that there should always be a match and it is important to report this state.
Panoramic Photography http://www.dvint.com voice: 502-749-6179
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






