python - xslt with django template variables -


here xslt file , , xml

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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -