0

我无法让 html:forms 与 DocBook5 一起使用。

这是一本演示书:http ://www.filedropper.com/demobooktar

重现步骤:

在 htdocs/demo/ 你会看到输出。xsltproc 将保留不匹配的表单元素,以红色显示。

请帮忙,我不知道我在那里缺少什么。感谢任何提示,接受任何中肯的答案。谢谢。

附录

错误信息是

部分中遇到命名空间“http://www.w3.org/1999/xhtml”中的元素形式,但没有模板匹配

4

1 回答 1

1

尝试将以下内容添加到您的自定义层 (online-course.xsl):

<xsl:template match="html:*" xmlns:html="http://www.w3.org/1999/xhtml">
  <xsl:element name="{local-name()}">
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>
于 2010-12-23T17:10:56.513 回答