xsl-list
[Top] [All Lists]

RE: pesky xmlns attributes

2003-10-02 01:47:58
Yeah I've noticed this as well, basically it's caused by redundant namespace
declarations...


---------------------- Example A -------------------
<xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        xmlns="http://www.w3.org/TR/REC-html40";>
-----------------------------------------------------

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

Using the namespace declaration in example 'A' you will get those pesky
xmlns attributes. The solution is to only use a single namespace declaration
as in example 'B'


Rgds.


-----Original Message-----
From: Mattison [mailto:peacock(_at_)panix(_dot_)com] 
Sent: 01 October 2003 16:44
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] pesky xmlns attributes


I've noticed occassionally when I look at generated html I see an xmlns
attributes in odd tags.  I've seen it everywhere from table, select, to br
tags.  It isn't a huge problem as the tag doesn't affect how the html
displays.  But anytime I have an attribute somewhere I don't intend it to be
it makes me a bit nervous that there is something more fundamental under the
surface I'm missing.

Anyone have any clues they can share with this odd behavior.  I'm using
MSXML2.DOMDocument.4.0 to do my transformations.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+      Mattison Narramore                  peacock(_at_)panix(_dot_)com      +
+-----------------------------------------------------------------+
+ The most likely way for the world to be destroyed, most experts + 
+ agree, is by accident. That's where we come in; we're computer  +
+ professionals. We cause accidents.                              +
+                   -Nathaniel Borenstein                         +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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

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



<Prev in Thread] Current Thread [Next in Thread>