[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT2 character-maps for ISO character entity names.

  • To: xml-dev@l...
  • Subject: XSLT2 character-maps for ISO character entity names.
  • From: David Carlisle <davidc@n...>
  • Date: Wed, 12 Nov 2003 13:22:15 GMT

character maps

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

David



Date: 12 Nov 2003 12:51:14 +0000
From: David Carlisle <davidc@n...>
To: xsl-list@l...
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
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
________________________________________________________________________

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.