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

Re: How to transform to a stylesheet?

Subject: Re: How to transform to a stylesheet?
From: crism@xxxxxxxxxxxxx (Christopher R. Maden)
Date: Thu, 28 Oct 1999 21:01:46 -0700
Re: How to transform to a stylesheet?
[Jeremy Richman]
>But there seems to be an impasse when it comes to having an xsl:template
>whose content
>instantiates an xsl:stylesheet element with appropriate attributes (e.g.
>xmlns:xsl="...").

Ah - that's *not* an attribute.  Yes, it looks like one, but it's not -
it's a namespace declaration.  That's what the section you quoted from
§7.1.3 of XSLT means.

The namespace declaration is an integral part of an element; you can't
<xsl:copy> it and then alter the namespace declaration.  You need to create
a new and different element with its own namespace - that's the whole point
of namespaces, that <oldxsl:stylesheet> and <xsl:stylesheet> are completely
different things despite the similarity of their names.  You need to match
old XSL elements and create new ones.  (BTW, the URI you're using for the
result is out of date; take a look at the Proposed Recommendation at
<URL:http://www.w3.org/TR/xslt>.)

-Chris

--
Christopher R. Maden, Solutions Architect
Exemplary Technologies
One Embarcadero Center, Ste. 2405
San Francisco, CA 94111



 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.