Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] xmlns="" ??

From: "Daniel Joshua" <daniel.joshua@------------>
To:
Date: 6/1/2004 7:29:00 PM
> 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? If so, when
do we use the former?

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

Or is the difference purely cosmetic?


Regards,
Daniel


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Friday, 30 April, 2004 7:01 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] xmlns="" ??




You want all literal result elements in the stylesheet to be in the
xhtml namespace not no-namespace so mobe
xmlns="http://www.w3.org/1999/xhtml"

from here
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

to
here

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

so it looks like

<xsl:stylesheet
 xmlns="http://www.w3.org/1999/xhtml"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

You will need similar declarations in the stylesheets
../xsl/libTemporal.xsl etc that you are including if thise stylesheets
also have literal elements that you want to be xhtml.

By the way there's no real need to do:

<xsl:element name="table">

you can just as easily do

<table>

David


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