xsl-list
[Top] [All Lists]

RE: [xsl] Empty namespace attributes

2006-04-30 04:32:06
This has come up three or four times in the last couple of weeks.

Make sure when you generate an element that it's in the right namespace, and
the namespace declarations will look after themselves. For a literal result
element, if the LRE is in namespace N in the stylesheet then it will still
be in namespace N in the result document (even if its parent is in a
different namespace). For elements created using xsl:element, use the
namespace attribute to put them in the right namespace.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Kerry Kobashi [mailto:kkobashi(_at_)comcast(_dot_)net] 
Sent: 29 April 2006 23:55
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Empty namespace attributes

How do I get rid of empty namespace attributes generated 
after transformation by the processor?
I am using ArchiTag's XRay and my tags are getting empty xmlns="" 
attributes placed after each one like so:

<div class="company" xmlns="">
            Company name here
</div>
<div id="mainmenu" xmlns="">
            Home | About
</div>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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