此例子有两个文件”test.xml”与”test.xsl
-------------------------------test.xml-------------------------------
<?xml version="1.0" encoding="unicode"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<cd>
 <name>
  <test>
testtest  </test>
 </name>
</cd>

-------------------------------test.xsl-------------------------------
<?xml version="1.0" encoding="unicode"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <xsl:template match="cd">
   <xsl:value-of select="name/test"/>
 </xsl:template>
</xsl:stylesheet>

相关文章:

  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-07-14
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2022-12-23
  • 2021-09-17
  • 2021-11-26
  • 2022-01-10
  • 2022-02-20
  • 2022-12-23
相关资源
相似解决方案