This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Namespace problem


> <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]