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

RE: xmlns="" ??

Subject: RE: xmlns="" ??
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 1 Jun 2004 08:25:37 +0100
RE:  xmlns="" ??
> 
> > By the way there's no real need to do:
> >
> > <xsl:element name="table">
> >
> > you can just as easily do
> >
> > <table>
> 
> Side tracking a bit, is there any differences in the above 
> two? 

The difference is that the literal result element <table> copies all the
namespaces declared in the stylesheet, <xsl:element> doesn't.

> Would the later be more optimised, as the XSLT processor does 
> not need to parse it and then convert it?

You can only ask a question like that in relation to a specific XSLT
implementation. In principle with an LRE more of the decisions can be made
at compile time. However, it's quite tricky for an implementation to avoid
the cost with an LRE of generating all the namespaces and then eliminating
them because they are duplicates. The only way to find out is to measure it.

Michael Kay




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.