Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
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
Old November 2nd, 2005, 11:30 AM
Authorized User
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Entities

i'm trying to write this line
<a href="SOMEVALUE">Atrás</a>

And i have this code

<xsl:element name="a">
  <xsl:attribute name="href">
    <xsl:value-of select="@value"/>

Everything works fine, except Atrás
I get an
[Fatal Error] utils.xslt:21:34: The entity "aacute" was referenced, but not declared.
ERROR: 'The entity "aacute" was referenced, but not declared.'

I also had this error in my JSP file, i fixed it with
<!DOCTYPE HTML PUBLIC "entidades" "entidades.dtd">
where entidades.dtd is where all the entities are defined

How can i do this in a XSLT file? So that all the entities are recognizes.

thank you

Old November 7th, 2005, 04:59 AM
Authorized User
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts

have you tried the character mapping? you could probably use the unicode of that character.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert entities... carlosaml XSLT 12 October 17th, 2007 03:52 AM
referenced entities bcogney XML 7 April 21st, 2006 11:04 AM
referenced entities bcogney XSLT 0 April 20th, 2006 02:37 PM
Entities as String muki XSLT 3 November 12th, 2005 12:15 PM
XSL and Referencing Entities arron_v2003 XSLT 0 March 4th, 2004 05:49 PM

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