2
當Docbook創建圖時,它會根據圖的標題添加標題。我有興趣去除一個數字的標題(同時留下其餘的數字標題)。從一個圖中刪除標題
<figure floatstyle="right" id="figure-name">
<title>Figure Caption</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/image-1.png" scale="70"/>
</imageobject>
</mediaobject>
</figure>
省略標題元件導致驗證錯誤:
$ ./make-book.sh
chapter-5.xml:11: element figure: validity error : Element figure content does not follow the
DTD, expecting (blockinfo? , (title , titleabbrev?) , (literallayout | programlisting |
programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis | funcsynopsis |
classsynopsis | fieldsynopsis | constructorsynopsis | destructorsynopsis | methodsynopsis |
address | blockquote | graphic | graphicco | mediaobject | mediaobjectco | informalequation |
informalexample | informalfigure | informaltable | indexterm | beginpage | link | olink |
ulink)+), got (mediaobject)
Document book.xml does not validate
DocBook的figure
元件不出現有抑制字幕的產生的屬性(見http://www.docbook.org/tdg/en/html/figure.html)。
一個人如何忽略某個特定人物的標題?
完美,謝謝。我欠你一杯冰啤酒。 – jww