Hi.
I have this XML and XSL:
SALDO.XML
<?xml-stylesheet type="text/xsl" href="saldo.xsl"
encoding="iso-8859-1" ?>
<Operacion tipo="Saldo Tarjetas" res="ERROR">
<Datos/>
<CodError>2</CodError>
<Descripcion>El número de dígitos de la tarjeta ha de ser 4</Descripcion> </Operacion>
SALDO.XSL
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl
utput method="xml" /> <xsl:template match="/"> <CiscoIPPhoneText> <Text> <xsl:choose> <xsl:when test="Datos == ''"> <xsl:value-of select="Descripcion"/> </xsl:when>
<xsl
therwise>
<xsl:value-of select="Datos"/>
</xsl
therwise>
</xsl:choose>
</Text>
</CiscoIPPhoneText>
</xsl:template>
</xsl:stylesheet>
My problem is that when I´ve tried to open SALDO.XML in Internet Explorer, all I have is a parser error in "<Descripcion>El nú"
How can I do for making the transformation? I´ve tried different encoding but I hadn´t have any result
thanks
I have this XML and XSL:
SALDO.XML
<?xml-stylesheet type="text/xsl" href="saldo.xsl"
encoding="iso-8859-1" ?>
<Operacion tipo="Saldo Tarjetas" res="ERROR">
<Datos/>
<CodError>2</CodError>
<Descripcion>El número de dígitos de la tarjeta ha de ser 4</Descripcion> </Operacion>
SALDO.XSL
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl
<xsl
<xsl:value-of select="Datos"/>
</xsl
</xsl:choose>
</Text>
</CiscoIPPhoneText>
</xsl:template>
</xsl:stylesheet>
My problem is that when I´ve tried to open SALDO.XML in Internet Explorer, all I have is a parser error in "<Descripcion>El nú"
How can I do for making the transformation? I´ve tried different encoding but I hadn´t have any result
thanks