[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSLT2 character-maps for ISO character entity names.
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|