Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/11/2005, 20:55
ojota
 
Fecha de Ingreso: julio-2003
Ubicación: Buenos Aires
Mensajes: 96
Antigüedad: 21 años, 8 meses
Puntos: 0
xsl super basico

Tengo el siguiente archivo xml:

=====================================
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="di.xsl"?>

<dvd>
<precio moneda="peso">44</precio>
</dvd>
=====================================

y di.xsl es:

=====================================
<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="dvd">
<HTML><BODY><H1>Resultados:</H1>
<PRE>
<xsl:apply-templates select="/dvd/precio + 100"/>
</PRE>
</BODY></HTML>
</xsl:template>

</xsl:stylesheet>
=====================================

la idea es sumar el numero 100 al precio y cuando quiero realizar la transformacion –estoy usando xml writer- me dice:

Expected token 'EOF' found '+'. /dvd/precio -->+<-- 100


¿es un error en la sintaxis? Gracias por sus respuestas ...