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

RE: XSLT 2.0 - No separator choice available for AVT

Subject: RE: XSLT 2.0 - No separator choice available for AVT
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 6 Apr 2005 15:30:23 +0100
xslt avt
use 

  <div a="{string-join($test, '')}">

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Andrew Welch [mailto:ajwelch@xxxxxxxxxxxxxxx] 
> Sent: 06 April 2005 15:13
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XSLT 2.0 - No separator choice available for AVT
> 
> 
> Consider the following XSLT:
> 
> <xsl:variable name="test" as="xs:string*">
> 	<xsl:value-of select="'Foo'"/>
> 	<xsl:value-of select="'Bar'"/>
> 	<xsl:value-of select="'Baz'"/>
> </xsl:variable>
> 
> <xsl:template match="/">
> 	<div a="{$test}">
> 		<xsl:value-of select="$test" separator=""/>
> 	</div>
> </xsl:template>
> 
> Produces:
> 
> <div a="Foo Bar Baz">FooBarBaz</div>
> 
> Is there any where to 'turn off' the whitespace separation of the text
> nodes in $test, or some technique to use within the AVT to mimic
> separator="" - I really don't want to use xsl:attribute :)
> 
> cheers
> andrew

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.