On 08/29/2011 11:54 PM, Stefan Seefeld wrote: > On 08/29/2011 05:36 PM, Hussein Shafie wrote: > >> There is no base URL or ``pwd'' in this case. You need to specify an >> absolute URL. >> >> Fortunately, some of the macro-variables described here >> >> http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process_variables.html >> >> >> should help you in specifying this absolute path. >> >> For example: >> >> <parameter >> name="target.database.document">%p/sitemap.fo.xml</parameter> >> >> %p is the URL of the folder containing the document being edited (that >> is, the directory containing your DB sources). > > Ah, thanks, that's great to know. > > I have managed to get rid of the original error, using an absolute path. > However, I now get an error about > > Error: unresolved olink: targetdoc/targetptr = ... > > Invoking a build manually (using the same sitemap file, of course) > doesn't show this error, and links are correctly resolved. > > Any idea what I could be doing wrong ?
I've tried to reproduce the problem using one of our own, up-to-date, sitemaps. [1] I've opened our "XMLmind XML Editor - Commands" document. [2] Using menu item "Options → Customize Configuration → Change Document Conversion Parameters", I've added the following document conversion parameters: current.docid = commands target.database.document = %p/../common/doc_html.sitemap to the "Convert to single-page HTML" group of parameters. (See http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.kit.part.ConversionParametersEditor.html ) [3] I converted "XMLmind XML Editor - Commands" to a single-page HTML file. Everything worked OK and I got no error messages whatsoever. Also, the links in the generated HTML file are just fine. Therefore, I have no idea why you get this error. FYI, our doc_html.sitemap looks like this: ---- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE targetset SYSTEM "../../addon/config/docbook/xsl/common/targetdatabase.dtd" [ <!ENTITY xhtml SYSTEM "xhtml_html.targets"> <!ENTITY docbook SYSTEM "docbook_html.targets"> <!ENTITY commands SYSTEM "commands_html.targets"> <!ENTITY configure SYSTEM "configure_html.targets"> <!ENTITY dev SYSTEM "dev_html.targets"> <!ENTITY help SYSTEM "help_html.targets"> <!ENTITY gui SYSTEM "gui_html.targets"> <!ENTITY csssupport SYSTEM "csssupport_html.targets"> <!ENTITY spreadsheet SYSTEM "spreadsheet_html.targets"> <!ENTITY rngsupport SYSTEM "rngsupport_html.targets"> ]> <targetset> <sitemap> <dir name="doc"> <dir name="xhtml"> <document targetdoc="xhtml"> &xhtml; </document> </dir> <dir name="docbook"> <document targetdoc="docbook"> &docbook; </document> </dir> ... ---- while our .targets files[*] look like this: ---- <div element="article" href="index.html" number="" targetptr="xhtml"><ttl>XMLmind XML Editor - XHTML Support</ttl><xreftext>XMLmind XML Editor - XHTML Support</xreftext><div element="section" href="xhtml_dtds.html" number="1" targetptr="xhtml_dtds"><ttl>Supported DTDs</ttl><xreftext>Section 1, “Supported DTDs”</xreftext><obj element="programlisting" href="xhtml_dtds.html#strict_doctype" number="" targetptr="strict_doctype"><ttl>???TITLE???</ttl><xreftext>???</xreftext></obj>... ---- --- [*] Automatically generated separately using command-line utility convertdoc, that is, XXE without its GUI. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convertdoc.html -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

