<xsl:variable> doesn't work on RHEL4
jangid opened this issue · 3 comments
Below are the contents of files test.py and test.xsl. The script (test.py) works with python 2.6 installed on RHEL5 but it doesn't work on RHEL4 with python 2.6.
######### test.py
from amara.xslt import transform
html = '
Hello World
'html = transform(html, "test.xsl")
print html
##### test.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:fn="http://www.w3.org/2005/xpath-functions">
<xsl:output omit-xml-declaration="yes" indent="yes"
encoding="ISO-8859-1"/>
<xsl:template name="decode">
<xsl:variable name="c1" select="string('Hello Pankaj')"/>
<xsl:value-of select="$c1"/>
/xsl:template
<xsl:template match="p">
xsl:copy
<xsl:call-template name="decode"/>
/xsl:copy
/xsl:template
<xsl:template match="@|node()">
xsl:copy
<xsl:apply-templates select="@|node()"/>
/xsl:copy
/xsl:template
/xsl:stylesheet
Oops the xml tags are interpreted by the editor. How to escape here?
How to escape?
You have to use GitHub Flavored Markdown: http://github.github.com/github-flavored-markdown/