Subject: Re: handling tags and PIs within a macro
From: Nancy Brandt <nancy_brndt@xxxxxxxxx>
Date: Wed, 24 Oct 2007 08:54:10 -0700 (PDT)
|
is it possible to state in the template that when
there is no <fid> element, the corresponding
formalpara has no ID?
Best regards,
Nancy
--- David Carlisle <davidc@xxxxxxxxx> wrote:
>
> > <formalpara id="admin/user/fullname">
> I'm pretty sure that id in docbook is of type ID so
> it is not valid to
> have a / in the id string.
>
>
> > <formalpara id="">
> or for the id to be empty.
>
> Note these are docbook language issues nothing to do
> with XSLT.
>
>
>
>
> > in which FOP spots a problem for some reason:
> FOP never saw the file you posted (which was
> docbook) it needs to see an
> XSL-FO file (that will start off <fo:root>... and
> have elements like
> <fo:block, The stylesheet generates an FO file from
> the docbook file and
> FOP converts the FO file to pdf.
>
> I have't looked at how the docbook stylesheets
> expand %t and friends but
> it is quite likely that they need to see the full
> docbook markup with
> all the id's in place.
>
> That is you need to expand your private docbook
> extensions before
> calling the docbook styleheet, so you need three
> stages
>
> 1) your own stylesheet that is an "identity
> transform" with additional
> templates that expands j_enty out to a
> <formalpara and any other
> similar local elements that you need to remove
>
> The output from that stylesheet should then be a
> valid docbook file with
> no local additions which you can then process using
> teh docbook
> stylesheets, so
>
> 2) process with the docbook stylesheet to get an FO
> file
>
> 3) process with FOP to get PDF.
>
> David
>
>
________________________________________________________________________
> The Numerical Algorithms Group Ltd is a company
> registered in England
> and Wales with company number 1249803. The
> registered office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR,
> United Kingdom.
>
> This e-mail has been scanned for all viruses by
> Star. The service is
> powered by MessageLabs.
>
________________________________________________________________________
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| Current Thread |
|
cknell - 24 Oct 2007 16:13:53 -0000
|
|