This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Namespace problem
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Namespace problem
- From: Mike Brown <mike at skew dot org>
- Date: Wed, 24 Oct 2001 17:56:15 -0600 (MDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <xsl:if
> test="string-length(/VisioDocument/Pages/Page/Shapes/Shape[@NameU='URL']
> /Text) = 0">
This can be shortened to
<xsl:if test="string(/VisioDocument/Pages/Page/Shapes/Shape[@NameU='URL'])">
A string, when coerced to a boolean, becomes false if its length is 0.
- Mike
____________________________________________________________________________
mike j. brown, fourthought.com | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | personal: http://hyperreal.org/~mike/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list