,这是我的XML片状我想从我的XML文件中提取数据,并把它作为链接
<ErrorLog_list>
<error><download_list>/home/fes/logs/ErrorLog-20111109.gz</download_list></error>
<error><download_list>/home/fes/logs/ErrorLog-20111110.gz</download_list></error>
<error><download_list>/home/fes/logs/ErrorLog-20111114.gz</download_list></error>
</ErrorLog_list>
我想要做的就是创建一个指向error/download_list
,所以我有一个链接使用该标签
<a href="{ErrorLog_list/error/download_list}"><xsl:value-of select="Title"/></a><br/>
,但它不工作...
我意识到,问题可能出因为它被声明为 - xmlns attributes are not interpreted as attribute value templates
我的问题是,如何更改我的命名空间以使用上述方法?任何帮助,将不胜感激。
请忽略我的疏忽。 谢谢
感谢编辑 – jayant
我看不出有任何的xmlns,但在这里,我的回答可以帮助:http://stackoverflow.com/questions/7920450/xhtml-to-xml-xslt-conversion/7920612# 7920612 –
xmlns:xsl =“http://www.w3.org/1999/XSL/Transform” – jayant