You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by hb...@ca.ibm.com on 2001/09/11 15:58:34 UTC

help writing special characters

Hi there,

does anyone know why doing the following

 <outout:apply-templates select="root/{&#123;&#36;idName;&#125}" />
would cause this exception:
javax.xml.transform.TransformerConfigurationException: Illegal decimal
character reference.

What I was expecting was the following line to be output:
<outout:apply-templates select="root/{$idName}"/>

I also tried adding a semicolon after &#125 and that didn't cause an
exception but gave:
<outout:apply-templates select="root/{$idName;}"/>

I don't want to have the extra semicolon after idName. (is this a bug?)

any help would be greatly appreciated, thanks.

Hanaa Barakat


RE: help writing special characters

Posted by Bernard D'Have <bd...@SpiritSystems.be>.
you need ; after 125

<output:apply-templates select="root/{&#123;&#36;idName;&#125;}" />
bernard
> -----Original Message-----
> From: hbarakat@ca.ibm.com [mailto:hbarakat@ca.ibm.com]
> Sent: 11 September, 2001 15:59
> To: xalan-dev@xml.apache.org
> Subject: help writing special characters
> 
> 
> Hi there,
> 
> does anyone know why doing the following
> 
> would cause this exception:
> javax.xml.transform.TransformerConfigurationException: Illegal decimal
> character reference.
> 
> What I was expecting was the following line to be output:
> <outout:apply-templates select="root/{$idName}"/>
> 
> I also tried adding a semicolon after &#125 and that didn't cause an
> exception but gave:
> <outout:apply-templates select="root/{$idName;}"/>
> 
> I don't want to have the extra semicolon after idName. (is this a bug?)
> 
> any help would be greatly appreciated, thanks.
> 
> Hanaa Barakat
> 
>