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

RE: (newby) define an attribute based on an attribute

Subject: RE: (newby) define an attribute based on an attribute value
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 1 Apr 2005 10:14:22 +0100
define processor
> Thanks for the suggestion!
> I didn't know I could use such a syntax...

It's surprising how many XSLT users don't.
> What do the curly braces exactly mean? Do they reppresent just a
> simple XPath match and substitution in a more readable form?

It's called an "attribute value template". You can write any XPath
expression inside the curlies, and the result of the expression is converted
to a string and included in the attribute value.
> (I use xsltproc to process my XSL transformation... is it a 
> good choice?)

You can't expect me to give an objective answer on that one...

I would say, however, it's worth having more than one XSLT processor in your
kitbag. There will always be times when you're convinced you've found a bug
in your XSLT processor, and running the same transformation on a different
processor will often disabuse you of that theory. If you write something
that has chronically bad performance, running on a different processor will
tell you whether the problem is in your code or in the processor that you're
using. Also, if you don't understand the error messages from one processor,
a different processor may express it in terms that make more sense in your
situation. Finally, it will prevent you from using vendor extensions unless
you have a really good reason to do so, which is generally good practice.

For many people now the big decision is not which XSLT processor to use, but
whether and when to start taking advantage of XSLT 2.0. See recent threads
on that topic.

Michael Kay

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.