[publican-list] Organization issue and multiple docs

Mike McGrath mmcgrath at redhat.com
Thu Oct 9 20:57:42 UTC 2008


On Thu, 9 Oct 2008, Paul W. Frields wrote:

> 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.
>

yeah, I think this is exactly what I want, now I just have to figure out
how to get it to work with publican.

	-Mike




More information about the publican-list mailing list