[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: Kamal Bhatt <kbhatt@xxxxxxxxx>
Date: Fri, 14 Jul 2006 15:42:04 +1000
Re:  A beef with XSLT Sometimes too complicated
In this case, you can do without the xsl:text:

<xsl:variable name="bg_img">
<xsl:when test="normalize-space($all_vars)=''">background_bright</xsl:when>

I too am annoyed by the syntax. My pet peev is that xsl:attribute has to be the first element. This is really annoying if you want to optionally add an attribute.

<xsl:variable name="bg_img">
<xsl:when test="normalize-space($all_vars)=''">

Is there a cleaner / simpler way to do this?  Any chance you can do
this in one line?


Kamal Bhatt

-- Disclaimer: This email is confidential and may contain privileged information for the sole use of the person or business to which it is addressed. If you are not the intended recipient, please notify the sender by return e-mail or phone as you must not view, disseminate, distribute or copy this email without our consent. We do not accept any liability in connection with any computer virus, data corruption, incompleteness, or unauthorised amendment of this email. It is the sole responsibility of the receiver to scan for viruses before opening.

Current Thread


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