Re: [xsl] sum function and math expressions

Subject: Re: [xsl] sum function and math expressions
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 8 Apr 2005 12:24:49 +0100
> 1. namespace declarations
XSLT has full information over the namees in scope, but not where the
declarations are so it can't see redundant ones.
So given
<x xmlns="abc">
  <y xmlns="abc"/>
</x>

XSLT sees identical input from th einput

<x xmlns="abc">
  <y/>
</x>

given either if these as input you can make your styleshet generate
either th efirst form (all namespaces explict) or the second (only make
a declaration if the namespace was not on the parent) or any form in
between.

Whether you consider this to be "lossy" depends on your point of view,
the namespace rec and xslt take the view that the two forms above are
just a syntactic variation with the same information content just as
<a x="2"/> is equivalent to <a x = '2'   />

> 2. entities

Entity references (and references to a DTD) are expanded by the XML
parser before XSLT starts, XSLT does not see them and consequently can
not preserve them.

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