This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xpath - check for no content
- From: "sascha" <sascha at assbach dot de>
- To: "XSL-List" <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 29 Jul 2002 17:43:38 +0200
- Subject: [xsl] xpath - check for no content
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
simple question i guess:
How do i check if the <run> element or one of it's childsren does not have
any content?
Meaning that there is no output text or so inbetween.
example:
<run>
<font size="17pt" style="bold" name="Arial" color="red"/>
<break/>
</run>
I tried
<xsl:if test="not(child::*/text())"><fo:block
space-before="1.2345cm"/></xsl:if>
but that didn't work. Problem is i need to create an additional linebreak
here...
Thanks,
Sascha
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list