Jason King wrote:
> I am using XXE Standard Edition V2.9p1...
>
> I have a docbook file that boils down to this:
>
> =-=-=-=-=-=-
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE section PUBLIC "-//OASIS/DTD DocBook XML V4.3//EN"
>
> "http://www.docbook.org/xml/4.4/docbookx.dtd">
>
> <section>
>
> ...
>
> <section>
>
> ...
>
> <section>
>
> <title>Example</title>
>
> <programlisting><textobject>
>
> <textdata fileref="SingletonClient.h" format="linespecific" />
>
> </textobject></programlisting>
>
> </section>
>
> ...
>
> =-=-=-=-=-=-
>
> When I use XXE/DocBook/Convert Document/Convert to HTML... I get the
> following error:
>
>
>
> I would understand this error if the element represented an image, but
> it doesn't... It's referencing an external text file. Is this supposed
> to work on the standard edition? Am I doing it wrong?
You did absolutely nothing wrong. The DocBook configuration simply does
not contain ``rules'' to properly deal with <textdata fileref="xxx"/>.
I've added such rule:
---
<copyDocument to="__doc.xml">
.
.
.
<resources match="(https|http|ftp)://.*" />
<resources match=".+\.(png|jpg|jpeg|gif)"
copyTo="resources" />
<resources match="(?:.+/)?(.+)\.(\w+)"
copyTo="raw" referenceAs="resources/$1.png" />
<resources match=".+"
copyTo="resources" />
</copyDocument>
---
becomes:
---
<copyDocument to="__doc.xml">
.
.
.
<resources match="(https|http|ftp)://.*" />
<!-- ADD MORE FILE EXTENSIONS HERE IF NEEDED -->
<resources match=".+\.(txt|h|c|hpp|cpp)" copyTo="resources" />
<resources match=".+\.(png|jpg|jpeg|gif)"
copyTo="resources" />
<resources match="(?:.+/)?(.+)\.(\w+)"
copyTo="raw" referenceAs="resources/$1.png" />
<resources match=".+"
copyTo="resources" />
</copyDocument>
---
See http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch05s01s02.html
Find attached to this message "xslMenu.incl". Please replace
<XXE_install_dir>/config/docbook/xslMenu.incl by attached file, restart
XXE and it should work fine.
===
PS: The right place for asking this sort of questions is
xmleditor-support at xmlmind.com
===
PS2: Unless you have modified <XXE_install_dir>/config/catalog.xml
accordingly
---
<!DOCTYPE section PUBLIC "-//OASIS/DTD DocBook XML V4.3//EN"
"http://www.docbook.org/xml/4.4/docbookx.dtd">
---
is useless. That is, XXE will anyway use
"<XXE_install_dir>/config/docbook/dtd/V4.3/docbookx.dtd".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xslMenu.incl
Type: text/xml
Size: 14999 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20050527/b7d2e27c/attachment.xml