【发布时间】:2014-04-13 13:15:08
【问题描述】:
我正在使用 python-Django as 处理它,
sheet=<pathtoxsltfile>
style = libxml2.parseFile(sheet)
style = libxslt.parseStylesheetDoc(style)
result = style.applyStylesheet(xml, None)
markup = style.saveResultToString(result)
想要在 xslt 中的锚标记处添加 locationID 的值。
<locationID>94</locationID> 在第 66 行的 xml 中
还有
<a href="">see me!</a> 标记位于XSLT 的第 223 行。
我试过了,但是没用,
<a href="<xsl:value-of disable-output-escaping="yes" select="locationID"/>">see me!</a>
【问题讨论】:
标签: python xml django xslt xml-parsing