[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: handling tags and PIs within a macro

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.