This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with entities and JDOM


What parser are you using? I'm working with JDOM beta 7 and I think it use
Xalan to make the tranform of XML document.

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

----- Original Message -----
From: "Michael Kay" <mhkay@iclway.co.uk>
To: <xsl-list@lists.mulberrytech.com>
Sent: Wednesday, July 25, 2001 2:17 PM
Subject: RE: [xsl] Problem with entities and JDOM


> If I add end tags for xsl:template and xsl:stylesheet, this parses fine
for
> me. I think you're using a buggy XML parser; switch to a different one.
>
> Mike Kay
>
> > -----Original Message-----
> > From: owner-xsl-list@lists.mulberrytech.com
> > [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> > Miguel Angel
> > Medina Lopez
> > Sent: 01 July 2001 11:41
> > To: xsl-list@lists.mulberrytech.com
> > Subject: Re: [xsl] Problem with entities and JDOM
> >
> >
> > Hi:
> >
> > 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";
> > version="1.0">
> > <xsl:template match="LOGICMART">
> >
> > <html>
> > <head>
> > <title>Página Principal</title>
> > <meta http-equiv="Content-Type" content="text/html;
> > charset=iso-8859-1"/>
> > </head>
> > <body bgcolor="#FFFFFF" text="#000000">
> > <form>
> >   <table width="640" border="0" align="center">
> >     <tr>
> >       <td width="33">&nbsp;</td>
> >       <td width="563">
> >         <div align="center"><b>Página Principal</b></div>
> >       </td>
> >       <td width="30">&nbsp;</td>
> >     </tr>
> >     <tr>
> >       <td width="33">&nbsp;</td>
> >       <td width="563">Men&uacute; Principal<br/>
> > <!--        <div align="center">
> >           <table width="100%" border="0">
> >             <tr>
> >               <td width="21%"><b>Prueba</b></td>
> >               <td width="26%">Gestión de Prueba</td>
> >               <td width="53%"></td>
> >             </tr>
> >           </table>
> >         </div>
> > -->
> >       </td>
> >       <td width="30">&nbsp;</td>
> >     </tr>
> >   </table>
> >   <p>&nbsp;</p>
> >   <p>&nbsp;</p>
> > <p>&nbsp;</p>
> > <p>&nbsp;</p>
> > </form>
> > </body>
> > </html>
> >
> > The error occurs if no commets. If I comment these lines it
> > works fine. It looks a nest problem.
> >
> >
> > ----- Original Message -----
> > From: "Michael Kay" <mhkay@iclway.co.uk>
> > To: <xsl-list@lists.mulberrytech.com>
> > Sent: Tuesday, July 24, 2001 4:50 PM
> > Subject: RE: [xsl] Problem with entities and JDOM
> >
> >
> > > This looks like an XML problem and not an XSLT or JDOM problem. This
> > > particular well-formedness error is often problematic, I
> > think because
> > some
> > > XML parsers are stricter about enforcing the rule than others.
> > >
> > > Post your complete XML document, or try it on some
> > different parsers.
> > >
> > > Mike Kay
> > > Software AG
> > >
> > > > -----Original Message-----
> > > > From: owner-xsl-list@lists.mulberrytech.com
> > > > [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> > > > Miguel Angel
> > > > Medina Lopez
> > > > Sent: 30 June 2001 13:44
> > > > To: XSL List
> > > > Subject: [xsl] Problem with entities and JDOM
> > > >
> > > >
> > > > 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 exception
> > > > is thrown:
> > > >
> > > >          org.jdom.JDOMException: XSLT Transformation
> > failed: Parameter
> > > > entity references must not appear within markup declarations
> > > > in the internal
> > > > 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
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >  XSL-List info and archive:
> > http://www.mulberrytech.com/xsl/xsl-list
> > > >
> > >
> > >
> > >  XSL-List info and archive:
> > http://www.mulberrytech.com/xsl/xsl-list
> > >
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]