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

RE: A beef with XSLT Sometimes too complicated

Subject: RE: A beef with XSLT Sometimes too complicated
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 14 Jul 2006 12:31:56 +0100
RE:  A beef with XSLT Sometimes too complicated
> I am personally fond of using lookup tables. It does not 
> result in a one liner, but might make things clearer. 
> Besides, you can put these lookup tables in separate 
> documents as xml config files..
> 
> <xsl:variable name="lookup-data">
>   <item id="">background_bright</item>
>   <item id="*">background_faded</item>
> </xsl:variable>
> 
> <xsl:variable name="lookup-ref"
> select="document('')/xsl:stylesheet/xsl:variable[@name = 
> 'lookup-data']/item" />

I like lookup tables too, but I hate this kind of run-time reference to the
source stylesheet. Put it in a separate document in 1.0, or use the variable
directly in 2.0.

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

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.