【问题标题】:How to add cxml doctype using XSLT如何使用 XSLT 添加 cxml 文档类型
【发布时间】:2016-12-02 08:03:48
【问题描述】:

我正在生成正确的 cxml,但开头缺少 doctype。

如何在<?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)

谢谢, 瓦伦

【问题讨论】:

    标签: xslt doctype cxml


    【解决方案1】:

    试试

    <xsl:output method="xml"
      doctype-system="http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd"
    />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多