Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] xmlns="" ??

From: "Daniel Joshua" <daniel.joshua@------------>
To:
Date: 6/1/2004 11:59:00 PM
> The difference is that the literal result element <table> copies all the
> namespaces declared in the stylesheet, <xsl:element> doesn't.

Woah, that's a big difference.

I just went through my XSL and change all my <element> tags into Literal
Result Elements (LRE). This namespace thing is tricky. Thanks!


Regards,
Daniel


-----Original Message-----
From: Michael Kay [mailto:mhk@xxxxxxxxx]
Sent: Tuesday, 01 June, 2004 3:26 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent