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

Namespace attribute passed to root element

Subject: Namespace attribute passed to root element
From: "Gene Oswald" <goswald@xxxxxxxxxxxxx>
Date: Thu, 11 May 2000 08:15:37 -0400
gene oswald
Having a problem!

Here's my stylesheet:

<?xml version="1.0"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns:go="http:/go"
               version="1.0">
<xsl:template match="whatever">
  <foo>
     ...
  </foo>
</xsl:template>

The XML result document looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<foo xmlns:go="http:/go">
  ...
</foo>

Why is this namespace attribute automatically passed to the root element of
my result document? How can I stop this from happening? The input document
requires this namespace, but the prefix is not used in the output document,
and the foo element does not have a xmlns:go attribute, so the parse fails.

I'm using xalan 1.0.1

Thanks,
Gene Oswald
e-Commerce Developer
Everybook, Inc.
(717) 703-1010 x117


 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.