This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: your mail
- To: xsl-list at mulberrytech dot com
- Subject: Re: your mail
- From: Mike Brown <mike at skew dot org>
- Date: Thu, 29 Jun 2000 13:28:03 -0600 (MDT)
- Reply-To: xsl-list at mulberrytech dot com
> Is it possible to output a byte i.e. any ASCII-character
> by using a function as "char(187)"?
No. XSLT operates on abstract trees. You can put Unicode (actually,
ISO/IEC 10646-1:1993 plus amendments) characters into the result tree via
literal specification or character references like » in the
stylesheet tree, or by putting instructions or functions in the stylesheet
tree that accomplish the same thing ... however this is completely
independent from the output/serialization/linearization process, whatever
you want to call it.
The xsl:output instruction can provide a hint to the XSLT processor as to
how to carry out the serialization of the result tree, and the spec
dictates behavior for html, xml and text output methods, if the processor
chooses to implement them. The actual character-to-byte-sequence encoding
process is not something you have much control over, beyond specifying an
IANA-registered charset in the encoding attribute of xsl:output.
As mentioned in my other email, you're limited in what Unicode characters
you can put into an XML document, so this situation makes it nigh on
impossible to output arbitrary byte sequences.
> Saw this in a posting:
> <xsl:output method="html" version="4.0"/>
> If version not is stated what is Saxon uotputting?
See http://www.w3.org/TR/xslt#output
The default value is 4.0. I prefer to put it in my stylesheets even though
it is the default.
- Mike
____________________________________________________________________
Mike J. Brown, software engineer at My XML/XSL resources:
webb.net in Denver, Colorado, USA http://www.skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list