[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: select="if (subelement) then subelement else 'str
I often write select="(pages, 0)[1]" Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Kevin Rodgers [mailto:kevin.rodgers@xxxxxxx] > Sent: 03 February 2005 00:24 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: select="if (subelement) then subelement else 'string'" > > Currently I call a template with this parameter: > > <xsl:with-param name="page-count" > select="if (pages) then pages else '0'"/> > > Is there a simpler or more efficient way to provide '0' when the > pages subelement isn't present (or 0, since the template outputs > it via xsl:value-of)? > > Thanks, > -- > Kevin Rodgers
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|