[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] generating numerical character entities in html output


Subject: Re: [xsl] generating numerical character entities in html output
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Jan 2005 12:36:48 GMT

> hem, I'm not sure what "linearising" means. :-[

making into a line:-)

In particular the output from an XSLT engine is a tree of nodes with
parent/child relationships etc. The file system on current computers
doesn't really allow such a beasty to be stored so it has to be written
out as a stream of bytes. it's getting from the tree to a stream of
characters that is referred to as linearisation (or serialistaion,
which is the same thing here) in either case it is the opposite of
parsing which is going from the markup in the file to a tree structure.
The fact is that in XSLT the model is that you shouldn't really care
_how_ the tree is serialised (ie what markup tagging is added)
you are just guaranteed that any XML parser that processes teh result
will generate (within defined limits) the same tree that you generated
in the XSL. So if your output is written out using some strange encoding
or with ' instead of " around attribute values or with character
references instead of character data, you shouldn't care so long as
an XML parser generates the correct tree when it reads the stuff back
in.




> so maybe d-o-e doesn't work in msxml, 

It does work if you output directly from the xslt engine but msxml also
allows you to generate an MSXML DOM node as a result, if you do that and
the use DOM commands to output that to a file d-o-e does not work.

I don't use msxml these days but if you show us your calling sequence,
someone will tell you which kind of output you are generating.


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread
Keywords