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

Removing namespaces

Subject: Removing namespaces
From: Marcus Andersson <marcus@xxxxxxxxxx>
Date: Thu, 06 May 2004 22:00:14 +0200
removing namespaces
(Sorry for my previous mail. Sent it before it was complete)

For some reason I get two namespaces in my output that isn't wanted at all (since they cause the result not to validate). The namespaces are:

xmlns:db="urn:#MyHelperToGetData"
xmlns:msxsl="urn:schemas-microsoft-com:xslt

I am using these two namespaces for node-set() and some other stuff. But they are only used in the XSLT context and shouldn't be outputted to the result.

I have the following stylesheet element in my xslt:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:db="urn:#MyHelperToGetData"
xmlns:msxsl="urn:schemas-microsoft-com:xslt">


and the following output element:

<xsl:output method="xml" encoding="iso-8859-1" omit-xml-declaration="no" indent="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN/"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>


The root element of the result is declared (in the stylesheet) simply as:
<html>

And still I get the following root element in the output:
<html xmlns:db="urn:#MyHelperToGetData" xmlns:msxsl="urn:schemas-microsoft-com:xslt">


How do I make those two namespace declarations disappear?

I am using MSXML3

/Marcus

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-2013 All Rights Reserved.