OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   XSLT2 character-maps for ISO character entity names.

[ Lists Home | Date Index | Thread Index ]

In view of the recent discussion of "character entities", perhaps the
following might be of interest to people here.


Date: 12 Nov 2003 12:51:14 +0000
From: David Carlisle <davidc@nag.co.uk>
To: xsl-list@lists.mulberrytech.com
Subject: XSLT2 character-maps for ISO character entity names.

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 corresponding 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


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,



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:


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS