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 ...