Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Special Characters on Custom XSLT Template Causing Error when Printing PDF

Erick DiazFeb 3 2016 — edited Feb 10 2016

Hi,

Environment:

  • Application Express 4.2.5.00.08
  • Database 11g Enterprise Edition Release 11.2.0.4.0
  • WebLogic Server Version 10.3.6.0
  • Oracle REST Data Services (ORDS) 2.0.10.289.08.09
  • Altova StyleVision Enterprise Edition version 2016 sp1

I created a report layout using Altova StyleVision and XSLT version 1.0. In order to make the template work, I had to manually remove multiple special characters from the generated .xslt file; some of them added automatically by the software (i.e.   and ​) and others were part of my template (e.g. &).

After producing a working layout, I decided to put back the initial ampersand (&) I removed from my header’s template which is a plain text:

<xsl:text>A & B</xsl:text>

However, I tried many different solutions I found on the web and all of them are producing an invalid PDF. Here are some of the approaches I tried and none of them worked:

<xsl:text>A &amp; B</xsl:text>

<xsl:text>A <![CDATA[&]]> B</xsl:text>

<xsl:text disable-output-escaping="yes">A & B</xsl:text>

<xsl:text>A &#38; B</xsl:text>

Does anybody have any idea or suggestion to resolve this issue?

Thank you,

Erick

This post has been answered by Marc Sewtz-Oracle on Feb 10 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2016
Added on Feb 3 2016
3 comments
541 views