[jdom-interest] Problem with XSL Trasnformation

Miguel Angel Medina Lopez mamedina at logic-factory.com
Sun Jul 1 00:50:09 PDT 2001


I send the complete document to show the stange behavior of the XSL
transformer.Here is the XSL document whre the error occurs:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet[
  <!ENTITY nbsp "&#160;">
  <!ENTITY copy "&#169;">
  <!ENTITY aacute "&#225;">
  <!ENTITY eacute "&#233;">
  <!ENTITY iacute "&#237;">
  <!ENTITY oacute "&#243;">
  <!ENTITY uacute "&#250;">
  <!ENTITY ntilde "&#241;">

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
<xsl:template match="LOGICMART">

<title>Página Principal</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<body bgcolor="#FFFFFF" text="#000000">
  <table width="640" border="0" align="center">
      <td width="33">&nbsp;</td>
      <td width="563">
        <div align="center"><b>Página Principal</b></div>
      <td width="30">&nbsp;</td>
      <td width="33">&nbsp;</td>
      <td width="563">Men&uacute; Principal<br/>
<!--        <div align="center">
          <table width="100%" border="0">
              <td width="21%"><b>Prueba</b></td>
              <td width="26%">Gestión de Prueba</td>
              <td width="53%"></td>
      <td width="30">&nbsp;</td>

The error occurs if no commets the lines, without comments the exception is
thrown. If I comment these lines it
works fine. It looks a nest problem.

Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España

----- Original Message -----
From: "Miguel Angel Medina Lopez" <mamedina at logic-factory.com>
To: "JDOM Interest Group" <jdom-interest at jdom.org>
Sent: Saturday, June 30, 2001 12:28 PM
Subject: [jdom-interest] Problem with XSL Trasnformation

> Hi:
> I'm working with JDOM beta7 and use it to transform my XML documents. The
> problem is that if I define entities in the XSL document the next
> is thrown:
>          org.jdom.JDOMException: XSLT Transformation failed: Parameter
> entity references must not appear within markup declarations in the
> DTD  subset.
> An I define the entities with the next code:
> <!DOCTYPE xsl:stylesheet[
>   <!ENTITY nbsp "&#160;">
>   <!ENTITY copy "&#169;">
>   <!ENTITY aacute "&#225;">
>   <!ENTITY eacute "&#233;">
>   <!ENTITY iacute "&#237;">
>   <!ENTITY oacute "&#243;">
>   <!ENTITY aacute "&#250;">
>  ]>
> The error is very strange because if I delete some lines form the XSL
> document the entities works fine.
> Can somebody help me.
> -------------------------------------------------------------
> Miguel Ángel Medina López
> Logic Factory: www.logic-factory.com
> Granada - España
> _______________________________________________
> To control your jdom-interest membership:

More information about the jdom-interest mailing list