python - xslt with django template variables -
i processing using python-django ,
sheet=<pathtoxsltfile> style = libxml2.parsefile(sheet) style = libxslt.parsestylesheetdoc(style) result = style.applystylesheet(xml, none) markup = style.saveresulttostring(result)
want add value of locationid @ anchor tag in xslt .
<locationid>94</locationid>
in xml @ line no.66
and
<a href="">see me!</a>
tag @ line 223 of xslt.
i have tried not working ,
<a href="<xsl:value-of disable-output-escaping="yes" select="locationid"/>">see me!</a>
you can do:
{{ locations.0.locationid }}
Comments
Post a Comment