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

Re: Conditional indentation?

Subject: Re: Conditional indentation?
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Mon, 8 Apr 2002 09:41:50 +0100
Re:  Conditional indentation?
Chris Maden wrote:
> At 15:02 7/4/02, Ned Batchelder wrote:
>>I tried setting a parameter to the stylesheet and then using:
>>
>><xsl:output method='html' indent='{$indent}' />
>>
>>but the indent attribute is not an attribute value template. First
>>question: why not?
>
> Variables may be set by other top-level elements, and that would
> require that the XSLT engine evaluate all of those variables
> (potentially deeply investigating the source XML) before setting up
> its output environment.

Note that this changes in XSLT 2.0 (and in the XSLT 1.1 Working
Draft), in which all the attributes on xsl:output (aside from the
name) are attribute value templates. In these versions, the "output
environment" can change during the course of the stylesheet, as you
generate different documents, so it's less important to get everything
set up in advance. One possible solution is therefore switching to a
processor that supports XSLT 1.1/2.0 (e.g. Saxon or jd.xslt).

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.