如何使用 XSLT 添加 cxml 文档类型
How to add cxml doctype using XSLT
我正在生成正确的 cxml,但开头缺少文档类型。
如何在 <?xml version="1.0" encoding="utf-8"?>
之后添加以下文档类型并使用 XSLT 映射复制剩余的 xml。
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd">
期望的输出应该像
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd">
<xml>
<field>.... (followed by remaining xml structure)
谢谢,
瓦伦
尝试
<xsl:output method="xml"
doctype-system="http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd"
/>
我正在生成正确的 cxml,但开头缺少文档类型。
如何在 <?xml version="1.0" encoding="utf-8"?>
之后添加以下文档类型并使用 XSLT 映射复制剩余的 xml。
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd">
期望的输出应该像
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd">
<xml>
<field>.... (followed by remaining xml structure)
谢谢, 瓦伦
尝试
<xsl:output method="xml"
doctype-system="http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd"
/>