[docbook-apps] Problem with multiple articleinfo/subtitle and translation to html

2008-05-21 Thread Emil Karlén
Hi, I have an article with an articleinfo. This articleinfo contains TWO subtitle elements. The problem is when I translate it to html: The FIRST subtitle is shown twice, the second is never shown. When I translate to pdf there is no problem. Also, there is no problem like the above one when I

Re: [docbook-apps] Page Break after ToC in atricle

2008-05-21 Thread Andrew McFarland
2008/5/19 Mauritz Jeanson [EMAIL PROTECTED]: Customize the component.toc.separator template (see autotoc.xsl): xsl:template name=component.toc.separator fo:block break-after=page/ /xsl:template Excellent, this worked perfectly. Thanks! Andrew

Re: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Michael(tm) Smith
Dick Hamilton [EMAIL PROTECTED], 2008-05-20 17:32 -0600: [...] I would want the instance to be valid DocBook at all times, but would use Schematron to check for things like the presence of required sections, the sequence of sections, the presence of required metadata, and so forth. Has

RE: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Dick Hamilton
I am working on similar project ( creating DB5 template with customized sections etc.) where the instance needs to be a valid DB5 document. I do not know Schematron; however, I have been using RelaxNG schema (customized per requirements) and it's good so far. I think either approach

RE: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Dick Hamilton
Dick Hamilton wrote: I'm working on a DocBook template for a documentation project plan, and it occurred to me that once I have a template defined, I could create a set of Schematron assertions to check that an instance conforms to the template. How do you define 'conforms to the

RE: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Dick Hamilton
Michael, Thanks for the pointers. I like to work from examples, so they should be useful. Dick -Original Message- From: Michael(tm) Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2008 6:26 AM To: Dick Hamilton Cc: docbook-apps@lists.oasis-open.org Subject: Re:

Re: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Keith Fahlgren
On Wed, May 21, 2008 at 8:14 AM, Dick Hamilton [EMAIL PROTECTED] wrote: Michael, Thanks for the pointers. I like to work from examples, so they should be useful. We're planning on spinning up Schematron (with XPath 2.0) for exactly the same sort of stuff. Here's a very minimal example: ?xml

Re: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Jirka Kosek
Keith Fahlgren wrote: report test='[EMAIL PROTECTED]web]/[EMAIL PROTECTED](.=PNG) and not(.=JPG) and not(.=GIF)]]'[EMAIL PROTECTED]web]/imagedata must be @format=PNG|GIF|JPG/report Just quick note, in XPath 2.0 there are sequences as a new datatype and you can write: not(. = ('PNG',

RE: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Dick Hamilton
Keith, Thanks, this is just what I need. Looks more and more like Schematron is going work very well for this application. Dick -Original Message- From: Keith Fahlgren [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2008 9:27 AM To: Dick Hamilton Cc: Michael(tm) Smith;

RE: [docbook-apps] How to insert placeholder in my documentation

2008-05-21 Thread Mauritz Jeanson
-Original Message- From: Pat70 However, one chapter has a xincluded section. The xincluded section itself has a %product_name; and it causes an error The entity product_name was referenced, but not declared. to be thrown. If you have an entity reference in an included file,

RE: [docbook-apps] Adapting chapter titles for HTML output

2008-05-21 Thread Mauritz Jeanson
-Original Message- From: Boris For example a chapter title is converted to Chapter 1. Bla by default. However I really need something like span class='chapter'Chapter 1:/span Bla (please also note the colon). I went through the DocBook XSL Stylesheets User Reference but

Re: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread George Cristian Bina
Hi Dick, The DocBook Relax NG schema already contains some embedded Schematron rules. The Schematron rules are available also separately in a Schematron schema in the DocBook distribution and there is also an NVDL script that performs a validation against both the Relax NG and against the