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

Re: Generating XSLT

Subject: Re: Generating XSLT
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 15 Nov 2004 15:56:09 GMT
xslt use prefix
  It sure is, but still quite silly that only the namespace is renamed and not the prefixes as well. 
  In other words, just renaming the prefixes _instead_ of the namespaces would have been nicer...

 

you clearly have to use another namespace in the stylesheet, otherwise
the elements would be taken as xslt instructions and avoiding that is
the whole point of the exercise, so I'm not sure I understand your
suggestion to "just rename the prefixes".

The XSLT spec leaves it up to the system which prefix to use for (any)
namespace. The system isn't obliged to use _either_ prefix in its final
output. In practice most use either the prefix specified on
stylesheet-prefix="out" or the prefix specified on result-prefix="xsl"
but some use one and some the other.

XSLT2 draft retains the flexibility that systems can use any prefix they
want but do ensure that at least a namespace declaration for the
result-prefix is in the final result, so XSLT 2 engines will in practice
all use the prefix specified on result-prefix rather than the prefix
used in the stylesheet.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.