Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 9th, 2005, 09:43 PM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default Character Mapping

I'm having trouble with the creation of character maps.
I want to use the
<xsl:output-character string="&amp;sbreve;" character="#x0073;#x0306;"/>
but the processor sends error that says character attribute must be single XML character. I guess it is because I am trying to map one entity to two unicode values. Is there a way I can resolve this?

  #2 (permalink)  
Old November 10th, 2005, 07:47 PM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

It looks to me as if you are trying to replace a decomposed Unicode character with the composed equivalent. Try setting the xsl:output option normalization-form="NFC"


Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
  #3 (permalink)  
Old November 11th, 2005, 03:11 AM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for the undetailed question of mine, what I really want to achieve is in my source file, I have entities (declared in a dtd file) that should not be converted to its real character when stylesheet is applied including the entities that have more than one unicode values, so what I did as I have said, used the character mapping but had problems with the error that says character attribute must be single XML character. So as a solution I deleted the entities in my character mapping and used a function that replaces these entities. But then again I failed. Can't seem to work it out...
I have a question in the forum regarding my problem in the replacement function, please help me. Thanks.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Many-to-Many Relationships in O/R Mapping sarosh Classic ASP Databases 0 December 8th, 2006 05:45 AM
O/R mapping many to many relationship popoxinhxan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 August 17th, 2006 11:18 PM
Problems with mapping mauriciom Biztalk 2 August 16th, 2006 06:47 AM
O/R mapping s_sana General .NET 0 April 12th, 2005 06:34 AM
Mapping SID Anantsharma SQL Server 2000 2 February 10th, 2005 05:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.