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

RE: Writing a stylesheet to create a stylesheet, with

Subject: RE: Writing a stylesheet to create a stylesheet, with XSLT in the XML
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Tue, 18 Jun 2002 11:47:49 +0100
stylesheet from stylesheet

I wrote:
> To me thats just asking for trouble, and once you realise the correct
> way to create a stylesheet from stylesheet by using namespace-alias, 

David wrote:
>But that part must already have been working in the stylesheet as it
was
>generating an XSL stylesheet into which these xsl fragments are being
>dropped. So that stylesheet must already be using namespace alias or
>equivalently using xsl:element to generate xsl namespaced output.

Really? Since he was using d-o-e to output an xslt element (the
value-of), couldnt he already be using it  to produce the stylesheet
element?

For example:  

<node>&lt;xsl:stylesheet
	xmlns:xslt="http://www.w3.org/1999/XSL/Transform"
	version="1.0"&gt;</node>

With:

<xsl:value-of select="//node" disable-output-escaping="yes"/>

Produces the stylesheet element perfectly well in the output.

We all know its possible to write an entire stylesheet using d-o-e, and
how its a trap that people new to xslt can fall into all to easily.  

I would hazard a guess that he originally hadn't tried (or tried and
failed) using namespace-alias for a 2-pass setup, and instead tried to
implement it by emebedding the second-phase xslt in the xml.  Why else
would you bother?  What situation is there for that kind of setup?

Either way, using d-o-e to create xslt sounds fishy to me

cheers
andrew

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
 

 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.