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

Re: sum function and math expressions

Subject: Re: sum function and math expressions
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 8 Apr 2005 12:24:49 +0100
xsl make sum
> 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

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.