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

RE: <a class="..." href="..." problem

Subject: RE: <a class="..." href="..." problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 30 Jan 2006 00:36:04 -0000
RE:  <a class="..." href="..." problem
> Alternatively you can try encoding your output xml/xhtml tags.
> &lt;a class="navigation" id="selected" href="<xsl:value-of 
> select="url" />"
> &gt;
> 	<xsl:value-of select="title" />
> &lt;/a&gt;
> 
> The second method can is a good way to go if you are using 
> the XSLT on the
> client in Mozilla based browsers as it tends to be much faster.
> 

It's disappointing to see such bad advice offered on this list. The person
who offered it hasn't grasped that XSLT is a language for transforming
trees, not for twiddling lexical markup. There might be some environments
where the above works (though it surprises me that it should work anywhere)
but it's certainly an abuse of the language and the effects will be very
dependent on how the stylesheet is run. There are a few cases where you need
to take desperate measures such as this to achieve a required effect, but
this certainly isn't one of them.

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.