RE: RE: [xsl] Problems with entities

Subject: RE: RE: [xsl] Problems with entities
From: "Jaime A Stuardo Bahamondes" <jstuardo@xxxxxxxxxxx>
Date: Wed, 19 Nov 2003 17:45:12 -0400
This is a piece of the doc:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="edicion">
  <html>
    <head>
      <script language="JavaScript" type="text/JavaScript">
		function eliminar_datos(sTipo, chkDel, sSingMsg, sPlurMsg)
		{

		}
      </script>
    <head>

    <body>
....
....
      <xsl:if test="ROWSET">
	  <td> 
	    <a href="JavaScript:eliminar_datos('DIR', document.frm.chkDelDir, 'una dirección', 'las direcciones');">
            <img src="../../images/bt_eliminar.gif" border="0" /> 
          </a>
        </td>
      </xsl:if>
....
....
   </body>
</html>
</xsl:template>

</xsl:stylesheet>



> -----Mensaje original-----
> De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de
> cknell@xxxxxxxxxx
> Enviado el: Miércoles, 19 de Noviembre de 2003 16:39
> Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Asunto: RE: RE: [xsl] Problems with entities
> 
> 
> What processor are you using to execute the transformation?
> 
> What is the encoding of the source document? (Perhaps you can 
> include a small, but representative, sample of your source 
> document including the encoding instruction.)
> 
> Please show us a minimal version of your stylesheet.
> -- 
> Charles Knell
> cknell@xxxxxxxxxx - email
> 
> 
> 
> -----Original Message-----
> From:     Jaime A Stuardo Bahamondes <jstuardo@xxxxxxxxxxx>
> Sent:     Wed, 19 Nov 2003 17:22:27 -0400
> To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Subject:  RE: [xsl] Problems with entities
> 
> Oh.. that doesn't solve the problem...
> 
> Either ó or ó produces the output %C3%B3. I have this placed 
> on the top of the XSL:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> If I change encoding to UTF-8, XSL document becomes invalid.
> 
> Jaime
> 
> > -----Mensaje original-----
> > De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de
> > cknell@xxxxxxxxxx
> > Enviado el: Miércoles, 19 de Noviembre de 2003 16:11
> > Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Asunto: RE: [xsl] Problems with entities
> > 
> > 
> > Here it is (space added between ampersand and the rest of the 
> > entity to insure that it will show up, remove the space for use):
> > 
> > the ampersand & amp;
> > the greater-than symbol & gt;
> > the less-than symbol & lt;
> > 
> > Somehow, I don't think that's what you expected. Things you 
> > might expect to be entities have to be defined in you DTD, 
> > or, depending on the character encoding of your document, you 
> > might find it useful to use the character references 
> > directly. If you are using the UTF-8 encoding, for examle, 
> > the ó character is represented by ó
> > -- 
> > Charles Knell
> > cknell@xxxxxxxxxx - email
> > 
> > 
> > 
> > -----Original Message-----
> > From:     Jaime A Stuardo Bahamondes <jstuardo@xxxxxxxxxxx>
> > Sent:     Wed, 19 Nov 2003 16:49:07 -0400
> > To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > Subject:  [xsl] Problems with entities
> > 
> > Hi all..
> > 
> > Inside an XSL document I have:
> > 
> > <a href="JavaScript:eliminar_datos('DIR', 
> > document.frm.chkDelDir, 'una direccion', 'las direcciones');">
> > 
> > the fact is that the sentence "una direccion" must to be 
> > written as "una dirección". When I write the ó, garbage is 
> > shown in the web page.
> > 
> > I think it's because the single quotes are interpreted by XSL 
> > parser, so I think the solution is to use the entity 
> > corresponding to ó. If I'm correct about the cause of the 
> > problem and the solution, which is the entity for ó? where 
> > can I find a complete set of entities?
> > 
> > Thanks
> > Jaime
> > 
> >  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


Current Thread