xsl-list
[Top] [All Lists]

RE: [xsl] transforming without outputting original namespace

2007-02-04 14:00:01
try

<xsl:stylesheet exclude-result-prefixes="p">

No, that won't work. So long as the <div> element is in the namespace
"urn://www.photoparata.com/events.xsd", you will always get a declaration of
that namespace. The OP didn't just want to get rid of the namespace
declaration, what they really wanted was to have the <div> element in a
different namespace.

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


Martynas

On 2/3/07, Sam Carleton <scarleton(_at_)miltonstreet(_dot_)com> wrote:
Thanks to David's help, I am now transforming xml that has a 
namespace.  My target is a piece of HTML, so I would prefer if the 
namespace was not in the output, which it is:

<div xmlns="http://www.photoparata.com/events.xsd";
xmlns:p="urn://www.photoparata.com/events.xsd" id="titlebar"/>

How do I go about getting rid of it?


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



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