Re: [xsl] handling tags and PIs within a macro

Subject: Re: [xsl] handling tags and PIs within a macro
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 24 Oct 2007 16:30:54 +0100
> <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. 
________________________________________________________________________

Current Thread