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

RE: generate XHTML header without causing xmlns attrib

Subject: RE: generate XHTML header without causing xmlns attributes in e.g. <table>?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 17 Oct 2003 14:13:55 -0400
xalan generate xhtml
At 08:46 AM 10/17/2003, Mike wrote:
This means either:
* I haven't spotted your error, or
* There is something odd in a part of the stylesheet you haven't shown
us, or
* you are using a buggy XSLT processor (unlikely if you are using one of
the widely-used ones, but I don't think you told us which one it was).

I think it was mentioned the processor is Xalan.


And I have seen Xalan generate redundant and unwanted namespace declarations in the past.

When it happened to me (actually I was troubleshooting for someone else), the declaration was placed on an element that was generated by a named template. When the call to the named template was replaced by literal results, the extra namespace declaration went away. If this is the way the OP's code is, it could account for why one table gets the declaration, another doesn't. I wonder whether this isn't a case of the same oddness.

While I found this disconcerting, the problem was not, at the time, sufficiently acute for me to make a real solution a priority.

The next thing I would do is to run it against a different processor and
see if the results are the same.

In my case, they weren't. Xalan included the redundant (and DTD-invalid) declaration, but Saxon did not.


Cheers,
Wendell




====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.