[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: storing the result of a transformation in a param

Subject: Re: storing the result of a transformation in a param and evaluating the content
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 23 Nov 2004 10:16:08 GMT
node set mozilla
  String-length only works if $content is a text node, on a result tree
  fragment, it returns false every time.

or more exactly if it has any text nodes anywhere in its descendants.
(You needn't use string-length you ca just use test="string($foo)" which
is the same thing. But if teh variable only consists of elements with no
text content this will test empty.

  I found that I can use an extension function like so:
  <xsl:param name="nodeSet" select="exsl:node-set($content)"/>

almost every processor has a node-set extension (mozilla's transformix
being an exception unfortunately) although not always in the
exsltnamespace. It's more or less considered standard, and in xslt2
variables will automatically produce node-sets and no function will be


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.