This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / i have xml something like <a name="b">c</a> i want to convert it to html displaying both b and c using xsl. how the xsl code to make it? thanks.
-od2nw(cool);
2012-7-6
(#7638962@0)
-
<xsl:template match="a">
<div>
attribute name:<xsl:value-of select="@name"/>
innerText: <xsl:copy-of select="node()"/>
</div>
</xsl:template>
</xsl:stylesheet>
-c1xwy(洪兴罩俺去战斗);
2012-7-6
(#7638988@0)
-
fantastic! very apprecite it.
-od2nw(cool);
2012-7-6
(#7639204@0)
-
a bit more furhter? <a name="b">c<d>d</d></a> displaying both b and c but d? thanks.
-od2nw(cool);
2012-7-6
(#7639232@0)
-
innerText: <xsl:copy-of select="text()"/>
-c1xwy(洪兴罩俺去战斗);
2012-7-6
(#7639246@0)
-
awesome! you genius.
-od2nw(cool);
2012-7-6
(#7639265@0)