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

RE: use cases for d-o-e

Subject: RE: use cases for d-o-e
From: naha@xxxxxxxxxx
Date: Thu, 10 Jan 2002 13:18:23 -0500 (EST)
RE:  use cases for d-o-e
Quoting Michael Kay <michael.h.kay@xxxxxxxxxxxx>:

> > In the case of outputting nearly-but-not-quite-XML formats such as
> *SP
> > (and now, regretably, XQuery) it might be possible to
> > consider a variant
> > of the text output method that serialised element nodes as XML markup
> > rather than discarded them and processed content. That would mean
> > switching from xml output method with d-o-e to the text output method
> > would not involve explictly calling templates to serialize the node
> > structure.
> I was wondering about another approach, a serialize() method that
> returns
> the XML serialization of (say) an element node, as a character string,
> which
> you can then insert into text output.

That would be great.  There have been occasions when I've wanted to
decorate my XSLT output with an XML comment which showed the fragment
of the input tree which was responsible for that output.  It might be
a bit difficult to get this to be indented properly on output, but I
suppose that if serialize() used column zero as an indentation base
and if there were an attribute to xsl:text which gave it permission
to add the current indentation to each line (I forget, does it do
that already?  My computer's in the shop so I don't have my environment
around to test it) then the indentation would work too.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.