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

exclude-result-prefixes problem

Subject: exclude-result-prefixes problem
From: cknell@xxxxxxxxxx
Date: Fri, 30 Jan 2004 13:00:11 -0500
exclude result prefixes not working
I am getting unwanted namespace declarations in my output. Here is my opening xsl:stylesheet tag:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:pmml="http://kiloNovember.com/ProjectManagementMarkupLanguage"
xmlns:date="http://exslt.org/dates-and-times"
exclude-result-prefixes="date">

As you can see, it declares the namespace "date" and then instructs the processor to exclude it in the output. At least that's what I think it does. Nonetheless the namespace declaration (and a second on that I have no clue as to where it originates) appears in each element that is placed into the output via <xsl:copy-of>.

Here is an example of one element from the output:

<pmml:name xmlns:date="http://exslt.org/dates-and-times" xmlns:func="http://exslt.org/functions">Task 1</pmml:name>

As you can see both the "date" and "func" namespace declarations are added. I didn't declare the "func" namespace in my stylesheet and it isn't declared in the included (via <xsl:include>) stylesheet, nor does the included stylesheet include a third stylesheet that might be the source of "func".

What am I missing?

-- 
Charles Knell
cknell@xxxxxxxxxx - email

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.