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

Re: ***********Transformation of an XML document conta

Subject: Re: ***********Transformation of an XML document containing a default namespace ************
From: Mark Nahabedian <naha@xxxxxxxxxx>
Date: Wed, 24 Oct 2001 16:38:44 -0400
transform xslt stripping crlf
In my case I was trying to fore the output to use the default
namespace (the zero length prefix) though my XSLT transformation did
not use the default namespace for the elements that would be output.

I needed for the output of the XSLT to not have a prefix because the
HTML and SVG viewers I was using were not XML namespace aware.

The XSLT I had written used the default namespace for the XSLT
namespace (http://www.w3.org/1999/XSL/Transform) since XSLT elements
were the predominant content of the stylesheet and that would make it
easier to type and to read.  The literal result elements were prefixed
in accord with a declaration for the SVG namespace
(http://www.w3.org/2000/svg).  I was unable to figure out how to get
the output to not use a prefix.

The problem is that there are three different prefix->namespace
mappings:  one in the source document, one in the stylesheet, and one
for thge output document.  The first of these is controlled by
namespace delcarations in the source document and the decond by those
in the stylesheet.  There doesn't appear to be a way to control what
prefixes are used in the output.

The less practical of you will argue that it doesn't matter as long as
the prefixes which are used are declared to be mapped to the proper
namespaces.  This fails to take into account that that output might
later be processed by software which is not namespace aware.  Also,
one might want the output document to use the zero length namespace
prefix for compactness or for ease of reading by a human.



 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.