RE: [xsl] transforming without outputting original namespace

Subject: RE: [xsl] transforming without outputting original namespace
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 4 Feb 2007 20:59:36 -0000
> 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@xxxxxxxxxxxxxxxx> 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?

Current Thread