Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何插入特殊标签
<?xml-stylesheet type="text/xsl" href="XYZ.xslt"?>
在文档中,就在<?xml version="1.0" ... ?>Doc 根元素之后和之前 ?? 我目前使用 libxml2 版本 2.7.8
<?xml version="1.0" ... ?>
此致
知道这个“标签”实际上是一个处理指令会有所帮助,您可以使用 XSLT 指令创建处理指令
<xsl:processing-instruction name="xml-stylesheet"> <xsl:text>type="text/xsl" href="XYZ.xslt"</xsl:text> </xsl:processing-instruction>