Re: [xsl] Generating XSLT

Subject: Re: [xsl] Generating XSLT
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 15 Nov 2004 15:56:09 GMT
  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