[xsl] XSLT2 character-maps for ISO character entity names.

Subject: [xsl] XSLT2 character-maps for ISO character entity names.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 12 Nov 2003 12:51:14 GMT
Experimenting with XSLT 2 character maps....

Mike Kay has implemented <xsl:character-map/> in the latest saxon (7.7)

I have produced a stylesheet to generate XSLT 2 stylesheets producing
character maps cprresponding to the ISO and MathML entity collections
available from http://www.w3.org/2003/entities.

Probably I will incorporate a distribution of these stylesheets in a
future revision of that site, but for now a test release is available
from

http://www.dcarlisle.demon.co.uk/charmap/

This includes an xsl stylesheet corresponding to each of the ISO entity
sets, one stylesheet that defines a combined character map for all of the
entity sets, and a test document and sample output. There is also an
archive of all the xsl files, so you can experiment with local copies.

If you are using Saxon 7.7 and want to produce output which makes use of
ISO entities, you may find this useful.

Currently a mapping is defined for every entity that resolves to a
single Unicode character with a code point greater than 128.
Entities that resolve to more than one character, or to ascii characters
are just represented in the mapping files by a comment.

Note that due to a feature of the current saxon implementation you need
to explictly use method="xml"  on xsl:output to use this feature
(see the charmaptest.xsl file linked from the above).

Comments welcome,

David


-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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
________________________________________________________________________

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


Current Thread