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

Re: Re: RE: Postional predicates de-mystified

Subject: Re: Re: RE: Postional predicates de-mystified
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 4 Jan 2002 17:11:03 +0000
Re:  Re: RE: Postional predicates de-mystified
On XSL-List, Mike Kay wrote:
> No. The attribute value is used directly as the separator. It's a
> string, not an expression. If you want to compute it, use an
> attribute value template. We decided to optimize for the common case
> of a constant string.

On this topic, I think that it might be worth adding a note in the
definition of xsl:value-of to state what focus is used to evaluate an
attribute value template in the separator attribute.

The section on the 'effective value' of attribute value templates does
not describe this (which is understandable, given that it doesn't
really apply in "normal" attribute value templates). It is made more
explicit in other places, for example the AVTs on xsl:sort.

Otherwise, it's not completely clear whether something peculiar like:

<xsl:template match="/">
  <xsl:value-of select="(a, b, c)" separator="[{position()}]" />
</xsl:template>

generates:

  a[1]b[2]c[3]

or:

  a[1]b[1]c[1]

I think the intention is the latter?

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.