xsl-list
[Top] [All Lists]

Re: [xsl] How do I force the XSLT processor to retain a namespace declaration despite an ancestor element having that same namespace declaration?

2011-07-25 12:13:26
On 07/25/2011 01:05 PM, Costello, Roger L. wrote:
Notice that the namespace declaration on <inner> is gone.

How do I force the XSLT processor to retain that namespace
declaration and not discard it? (I am passing the <inner> element to
other functions that don't have access to its surrounding elements,
so I need that namespace declaration retained.)

Morbo says, “Namespaces do not work that way!”

Your XSLT processor is creating a correct XML-with-namespaces document.
 Your XML processor — whatever system is passing the inner element off —
ought to understand that there are namespace declarations in scope and
pass them as well.  Otherwise, you are likely to run into bigger
problems than just this one.

~Chris
-- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
This week, the Transportation Security Administration intercepted and
searched a suspected war criminal and noted supporter of Saddam
Hussein, but permitted Donald Rumsfeld to board his flight anyway.

--~------------------------------------------------------------------
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>
--~--