[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: transforming without outputting original namespace

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.