Subject: Re: [xsl] Testing for Missing or Empty Tags From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 8 Jan 2004 15:30:52 GMT |
XSLT has no access to the tags in the document. the test <xsl:if test="not(Tag)" would test if there are any Tag element node children of the current node, <xsl:if test="not(Tag[1]) or Tag ='' "> is the same as <xsl:if test="not(Tag) or Tag ='' "> and tests if there is no Tag element or if some empty Tag element has empty string value, so it would be true on <x><Tag><y/></Tag></x> David -- http://www.dcarlisle.demon.co.uk/matthew ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Testing for Missing or Empty , Schwartz, Rechell R, | Thread | Re: [xsl] Testing for Missing or Em, Wendell Piez |
RE: [xsl] mixture of XML and HTML i, Andrew Welch | Date | Re: [xsl] mixture of XML and HTML i, David Carlisle |
Month |