[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
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><xsl:stylesheet xmlns:xslt="http://www.w3.org/1999/XSL/Transform" version="1.0"></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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|