[publican-list] Organization issue and multiple docs

Paul W. Frields stickster at gmail.com
Thu Oct 9 17:02:38 UTC 2008


On Thu, 2008-10-09 at 12:46 -0400, Jared Smith wrote:
> On Thu, 2008-10-09 at 11:40 -0500, Mike McGrath wrote:
> > Ok, thats freaking awesome.  Is there a way to build a book where
> > "role==users" ?
> 
> Absolutely... I'm not sure what the proper way to do this in Publican
> is, but my own toolchains have always just had a setting in the Makefile
> that generates the document based on a particular role.  If you're using
> xsltproc to process your XML, you can simply set "--stringparam
> profile.condition users" to have it only process nodes that have no role
> set or the role == users.

Jared makes a great point I stupidly left out, which is that by leaving
the @role out entirely, you more-or-less guarantee that an XML element
will be in all the versions of the document.  You only need to put the
@role in where it's needed.

-- 
Paul W. Frields
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
  http://paul.frields.org/   -  -   http://pfrields.fedorapeople.org/
  irc.freenode.net: stickster @ #fedora-docs, #fedora-devel, #fredlug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/publican-list/attachments/20081009/7adc6d56/attachment.sig>


More information about the publican-list mailing list