[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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 " "> <!ENTITY copy "©"> <!ENTITY aacute "á"> <!ENTITY eacute "é"> <!ENTITY iacute "í"> <!ENTITY oacute "ó"> <!ENTITY uacute "ú"> <!ENTITY ntilde "ñ"> ]> <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"> </td> <td width="563"> <div align="center"><b>Página Principal</b></div> </td> <td width="30"> </td> </tr> <tr> <td width="33"> </td> <td width="563">Menú 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"> </td> </tr> </table> <p> </p> <p> </p> <p> </p> <p> </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@xxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, July 24, 2001 4:50 PM Subject: RE: 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@xxxxxxxxxxxxxxxxxxxxxx > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of > > Miguel Angel > > Medina Lopez > > Sent: 30 June 2001 13:44 > > To: XSL List > > Subject: 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 " "> > > <!ENTITY copy "©"> > > <!ENTITY aacute "á"> > > <!ENTITY eacute "é"> > > <!ENTITY iacute "í"> > > <!ENTITY oacute "ó"> > > <!ENTITY aacute "ú"> > > ]> > > > > 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|