| 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] XOR conditionals | |
|---|---|---|
| From: | Bob Stayton (bo...@sagehill.net) | |
| Date: | Feb 18, 2005 10:44:55 am | |
| List: | org.oasis-open.lists.docbook-apps | |
Jirka can correct me if I am wrong, but I don't think you can do this with profiling. Once you have deselected the parent, all of its children are not even considered.
I see three solutions:
a. Use the rootid parameter to select the section for processing. But that requires knowing its id attribute.
b. Customize the stylesheet to select the section in a manner similar to how the rootid parameter works, but using a select statement with your own parameters.
c. Put the section in a separate file and use XInclude to include it in the main document. Then it is not redundant, and can be processed on its own as needed.
Bob Stayton Sagehill Enterprises DocBook Consulting bo...@sagehill.net
----- Original Message ----- From: "Jens Porup" <je...@porup.com> To: <docb...@lists.oasis-open.org> Sent: Thursday, February 17, 2005 9:27 PM Subject: [docbook-apps] XOR conditionals
G'day,
Is it possible to do XOR conditionals in docbook (xsltproc)?
I have a subsection of a document that I want to do this:
if condition=html publish it
if conditional=pdf DONT publish it
if condition=FOO ONLY publish the subsection, and not the rest of the document
I have the first two working fine, and I could just spin off the subsection into a redundant, separate document, but I'd rather not have to maintain two docs that way.
Any thoughts?
Thanks,
Jens






.pgp