| From | Sent On | Attachments |
|---|---|---|
| Jens Porup | Feb 17, 2005 9:26 pm | |
| Bob Stayton | Feb 18, 2005 10:44 am | |
| Jens Porup | Feb 22, 2005 7:25 pm | |
| John L. Clark | Feb 22, 2005 7:56 pm | .pgp |
| Jens Porup | Feb 22, 2005 8:09 pm | |
| John L. Clark | Feb 22, 2005 8:39 pm | .pgp |
| Jens Porup | Feb 22, 2005 8:42 pm | |
| Jens Porup | Feb 22, 2005 9:08 pm | |
| Bob Stayton | Feb 22, 2005 11:27 pm | |
| Jens Porup | Feb 23, 2005 5:49 pm | |
| Bob Stayton | Feb 23, 2005 6:12 pm | |
| Jens Porup | Feb 23, 2005 10:01 pm | |
| Bob Stayton | Feb 23, 2005 11:18 pm | |
| Jens Porup | Feb 24, 2005 6:03 pm | |
| Bob Stayton | Feb 25, 2005 12:51 pm |
| Subject: | Re: [docbook-apps] olinksdb.xml profile/conditional conflicts | |
|---|---|---|
| From: | Bob Stayton (bo...@sagehill.net) | |
| Date: | Feb 23, 2005 11:18:54 pm | |
| List: | org.oasis-open.lists.docbook-apps | |
Hi Jens,
You are close, but you can't put both sets of target data under the same <document> element. It creates duplicate targetptr's for your elements.
In general, a separate target database document is required for each profile, and for HTML vs. PDF. In your case, the two profiles coincide with the two output formats. So you need to create two separate target database documents, one for HTML and one for PDF, and put one of those entities in each <document targetdoc="TechSpec">. Then you specify the appropriate target database document as a parameter on the command line when you process each document. Then each version has the right collection of targets to work with, and there is no ambiguity.
Bob Stayton Sagehill Enterprises DocBook Consulting bo...@sagehill.net
----- Original Message ----- From: "Jens Porup" <je...@porup.com> To: <docb...@lists.oasis-open.org> Sent: Wednesday, February 23, 2005 10:01 PM Subject: Re: [docbook-apps] olinksdb.xml profile/conditional conflicts
Well, OK, so I've got this basically worked out, but...
When I try and throw my pdf conditional into the mix, things go foobar.
Here is my olinksdb.xml:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE targetset SYSTEM "/usr/share/xml/docbook/stylesheet/nwalsh/common/targetdatabase.dtd" [ <!ENTITY tech_spec_html SYSTEM "tech_spec/html.profile.db"> <!ENTITY tech_spec_pdf SYSTEM "tech_spec/pdf.profile.db"> ]> <targetset> <sitemap> <dir name="doc"> <document targetdoc="TechSpec"> &tech_spec_html; &tech_spec_pdf; <!--this makes things break --> </document> </dir> </sitemap> </targetset>
This works if I remove the &tech_spec_pdf line, but not with both in. It seems to be expecting both in the document.
Basically what I'm trying to do is only Xinclude an extra section for the Web, and exclude this in the PDF, which will get a separate build (for reasons not pertinent here.)
So... in the HTML conditional case, the document DOES include both. But in the PDF conditional case, it only includes one.
How do I get this to work?
Thanks,
Jens






.pgp