|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Identifying empty elements
I have a need to identify empty text-only elements and ignore them. The input document might contain an element in one or more of the following forms <SOME_TAG/> <SOME_TAG SOME_ATTRIBUTE="some_value"/> <SOME_TAG> </SOME_TAG> <SOME_TAG>some_text_here</SOME_TAG> For my purpose all but the last one above are empty elements and need to be ignored. Is there a simple mechanism for identifying such elements. The simple xpath expression //SOME_TAG[. !=''] ignores just the first two cases, but selects the third one containing the white-space . thanks in advance for you help. rgds Sridhar XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








