You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: