2010-12-23 62 views
0

我無法獲取html:表單與DocBook5一起使用。DocBook5和html表格

這裏是一個演示書:http://www.filedropper.com/demobooktar

重現步驟:

在htdocs中/演示/你會看到輸出。 xsltproc會將不匹配的表單元素留在原位,並以紅色着色。

請幫助,我不知道我在那裏失蹤。任何提示都表示讚賞,任何答案都可以接受。謝謝。

附錄

錯誤消息

在命名空間

元素形式 'http://www.w3.org/1999/xhtml' 部分中遇到的,但沒有模板相匹配

回答

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>