xsl-list
[Top] [All Lists]

Re: [xsl] An XPath expression that avoids writing special casecode?

2021-06-18 08:12:45

Am 18.06.2021 um 14:35 schrieb Roger L Costello costello(_at_)mitre(_dot_)org:


I tried your suggestion. For this XML document:



<Document>

     <Row>

         <Cell>

             <Data>aviation</Data>

         </Cell>

         <Cell/>

     </Row>

</Document>



I used Oxygen XML to evaluate this XPath expression on the XML document:



/Document/Row[Cell[1]/Data eq 'aviation'][Cell[2]/Data = '']



Oxygen XML reported:



        The XPath query returned no results.



Thoughts?




Don't know where I went wrong, will look later. Perhaps go with Mukul's
suggestions.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--


<Prev in Thread] Current Thread [Next in Thread>