Re: [xsl] special characters

Subject: Re: [xsl] special characters
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 27 May 2003 11:50:30 +0100
Hi Wendell,

>>I thought I'd take this opportunity to describe one of the new
>>features in XSLT 2.0 -- the ability to map characters in text nodes
>>and attribute values during output onto arbitrary strings. This is
>>done through a "character map".
> Yayy!
> Are there any other cool ways we get to drive the serializer?
> (Like more control over output indenting, say, or that kind of thing?)

You don't currently get any more control over output indenting
(although there's nothing stopping individual processors giving that
to you). There are some additional attributes on <xsl:output>, though,

  - escape-uri-attributes determines whether HTML URI attributes
    (e.g. a/@href and img/@src) are escaped automatically or not with
    the html and xhtml output methods. You can turn off escaping and
    then use the new escape-uri() function to get greater control over
    the escaping of these attributes.

  - include-content-type determines whether the <meta> element gets
    added with the html/xhtml output methods.

  - normalize-unicode determines whether the result gets normalized to
    Unicode Normalization Form C.

  - undeclare-namespaces determines whether namespaces should be
    undeclared or not -- this is to support XML Namespaces 1.1 in
    which namespaces can be undeclared.

Also note that the serialisation spec is now separate from XSLT: you
can find it at
Hopefully that means that it can be used elsewhere (in particular by

If there are other things that you want to have control over regarding
serialisation, I recommend asking for them on


Jeni Tennison

 XSL-List info and archive:

Current Thread