Antti Karanta | 2 Jan 2008 09:37
Picon
Favicon

Re: Re: Table rendered badly with docbook xsl + xsl-fo


On Mon, 31 Dec 2007 17:07:31 +0200, Mauritz Jeanson <mj <at> zzzz.xxx> wrote:

> The value of the 'cols' attribute on <tgroup> is 3, which is wrong.  
> Change the value to 5, and the rendered table will look nicer.

   Thanks, now it renders beautiful.

        -Antti-
Johnson, Eric | 3 Jan 2008 00:02
Favicon

Getting Saxon XHTML to work

I'm trying to get Saxon to output XHTML. Following the instructions in
Bob's book I added the Saxon extensions to my customization layer:
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon"
xmlns="http://www.w3.org/1999/xhtml"
version="1.0">

<xsl:import href="../lib/docbook-xsl/xhtml/chunk.xsl"/>

<xsl:import href="ziona_all.xsl"/>

<xsl:import href="ziona_html_all.xsl"/>

<xsl:import href="ziona_html_multipart.xsl"/>

<xsl:import href="ziona_html_break_on_section.xsl"/>

<xsl:import href="ziona_html_wholebook.xsl"/>

<xsl:import href="ziona_html_chunker.xsl"/>

<xsl:import href="fuse_html_user_head_content.xsl"/>

<xsl:import href="ziona_html_olinks_use.xsl"/>

<xsl:import href="ziona_html_callouts_use.xsl"/>

(Continue reading)

Warren Young | 3 Jan 2008 15:29
Favicon

Page title formatting error with 1.69.1 stylesheets

I'm using the DocBook style sheets to format a user manual for MySQL++. 
  (http://tangentsoft.net/mysql++)

For the previous release of MySQL++, I prepared the manual on a 
different machine which came with v1.65.1 of the style sheets, and it 
worked correctly.  Since moving to a newer machine with a newer OS and 
thus newer DocBook style sheets (v1.69.1), the title at the top of each 
page now has line breaks that didn't appear before.

You can view the last release's user manual here, for comparison:

	http://tangentsoft.net/mysql++/doc/pdf/userman.pdf

To reformat the current manual yourself, grab a copy of the manual 
sources with:

	svn co http://svn.gna.org/svn/mysqlpp/trunk/doc/userman

Then cd into 'userman', check the FOP path at the top of Makefile (or 
uncomment one of the other processors' lines to switch to that one), and 
say 'make pdf'.  Just ignore the XInclude warnings.

The title is supposed to be "MySQL++ User Manual", centered at the top 
of the page.  With FOP, what I actually get is something like this:

MySQL
+
+
Us-
er
(Continue reading)

Antti Karanta | 3 Jan 2008 15:08
Picon
Favicon

docbook to wordml problems


                                    Hi!

   I tested the docbook -> wordml xsl stylesheets in the docbook  
stylesheets distribution and they produced wordml that does not validate  
against the wordml schema.

   I transformed the docbook document telling what docbook elements are  
supported in the wordml transformation to wordml.
   Here's details of what I did:

C:\downloaded\docbook>C:\programs\Java\jdk1.6.0_03\bin\java -Xss1m -cp 

C:\programs\Java\saxon655\saxon.jar;C:\work\napa\jnapa\commons\lib\batik\xercesImpl.jar;C:\downloaded\docbook\docbook-xsl-1.73.2\extensions\saxon65.jar

-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl

-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl  
com.icl.saxon.StyleSheet -o \temp\supported.doc  
docbook-xsl-1.73.2\roundtrip\supported_test.xml   
\downloaded\docbook\docbook-xsl-1.73.2\roundtrip\docbook.xsl  
wordml.template=file:///c:/downloaded/docbook/docbook-xsl-1.73.2/roundtrip/template.xml
Recoverable error
Ambiguous rule match for /article[1]/articleinfo[1]/author[1]
Matches both "author|editor|othercredit" on line 267 of  
file:/C:/downloaded/docbook/docbook-xsl-1.73.2/roundtrip/docbook
.xsl
and "*[contains(name(),  
"info")]/*[not(self::title|self::subtitle|self::titleabbrev)]" on line 265  
of file:/C:/downloade
(Continue reading)

Ken Morse | 3 Jan 2008 19:47
Picon

First title in chunked output

Hello,

Anyone know of a way to treat the first <div class="titlepage"> on a chunked XHTML output page differently? Bob Stayton's book has a nice example covering Styling section headings with CSS (page 72 in the Fourth Edition) but the CSS example will style other divs on the same page that have class="titlepage" too -- I want to style just the first one.

Any ideas on how I could do this?

Thanks,
Ken

Ken Morse | 3 Jan 2008 19:33
Picon

Customizing chapter.titlepage

Hello,

I'd like to change the output generated by chapter.titlepage (in html/titlepage.templates.xsl) but when I include a copy of it in my customization layer, I get the following errors from xsltproc:

xsltproc --output title.html html.xsl title.xml
runtime error: file html.xsl line 17 element choose
function-available() : prefix exsl is not bound
runtime error: file html.xsl line 32 element choose
function-available() : prefix exsl is not bound
error: file title.xml
xsltRunStylesheet : run failed

I've attached the test document and customization stylesheet -- is there something else I need to do to successfully customize chapter.titlepage?

Thanks,
Ken

Attachment (title.xml): text/xml, 433 bytes
Attachment (html.xsl): text/xml, 2192 bytes
Attachment (catalog.xml): text/xml, 748 bytes
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe <at> lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help <at> lists.oasis-open.org
Thomas Schraitle | 3 Jan 2008 19:54
Picon

Re: Customizing chapter.titlepage

Hi Ken,

On Donnerstag, 3. Januar 2008, Ken Morse wrote:
>
> I'd like to change the output generated by chapter.titlepage (in
> html/titlepage.templates.xsl) but when I include a copy of it in my
> customization layer, I get the following errors from xsltproc:
>
> xsltproc --output title.html html.xsl title.xml
> runtime error: file html.xsl line 17 element choose
> function-available() : prefix exsl is not bound
> runtime error: file html.xsl line 32 element choose
> function-available() : prefix exsl is not bound
> error: file title.xml
> xsltRunStylesheet : run failed
>
> I've attached the test document and customization stylesheet -- is
> there something else I need to do to successfully customize
> chapter.titlepage?

You forgot the namespace declaration for the exsl prefix. Try the 
following modification in your customization layer:

<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:exsl="http://exslt.org/common"
 exclude-result-prefixes="exsl">
  ...
</xsl:stylesheet>

Hope that helps,
Tom

--

-- 
Thomas Schraitle
Bob Stayton | 3 Jan 2008 19:57

Re: Getting Saxon XHTML to work

The difference shows up in how empty HTML elements are output:

<br/>  vs.  <br/ >
<img/> vs.  <img/ >

The saxon:xhtml method adds the space after the closing "/" in empty tags. 
It is the HTML compatibility feature that some browsers need to understand 
XHTML.

Bob Stayton
Sagehill Enterprises
bobs <at> sagehill.net

----- Original Message ----- 
From: "Johnson, Eric" <Eric.Johnson <at> iona.com>
To: "docbook-apps" <docbook-apps <at> lists.oasis-open.org>
Sent: Wednesday, January 02, 2008 3:02 PM
Subject: [docbook-apps] Getting Saxon XHTML to work

I'm trying to get Saxon to output XHTML. Following the instructions in
Bob's book I added the Saxon extensions to my customization layer:
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon"
xmlns="http://www.w3.org/1999/xhtml"
version="1.0">

<xsl:import href="../lib/docbook-xsl/xhtml/chunk.xsl"/>

<xsl:import href="ziona_all.xsl"/>

<xsl:import href="ziona_html_all.xsl"/>

<xsl:import href="ziona_html_multipart.xsl"/>

<xsl:import href="ziona_html_break_on_section.xsl"/>

<xsl:import href="ziona_html_wholebook.xsl"/>

<xsl:import href="ziona_html_chunker.xsl"/>

<xsl:import href="fuse_html_user_head_content.xsl"/>

<xsl:import href="ziona_html_olinks_use.xsl"/>

<xsl:import href="ziona_html_callouts_use.xsl"/>

<xsl:import href="ziona_html_titlepage.xsl" />

<xsl:import href="ziona_html_override_abstract.xsl" />

<xsl:import href="fuse_footer_content.xsl"/>

<xsl:output method="saxon:xhtml" />

</xsl:stylesheet>

However, it does not seem to have any effect at all on the output. What
am I missing?

Thanks,
Eric J.

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe <at> lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help <at> lists.oasis-open.org
Jere Käpyaho | 3 Jan 2008 20:49
Picon

Re: First title in chunked output

Hi Ken,

this is really more of an idea than a solution, but CSS3 has  
structural pseudoclasses (http://www.w3.org/TR/css3-selectors/ 
#structural-pseudos), some of which might fit the bill. As for  
implementations... well, have a look at http://www.css3.info, there's  
even a selector test suite.

HTH,
Jere

Ken Morse kirjoitti 3.1.2008 kello 20.47:

> Hello,
>
> Anyone know of a way to treat the first <div class="titlepage"> on  
> a chunked XHTML output page differently? Bob Stayton's book has a  
> nice example covering Styling section headings with CSS (page 72 in  
> the Fourth Edition) but the CSS example will style other divs on  
> the same page that have class="titlepage" too -- I want to style  
> just the first one.
>
> Any ideas on how I could do this?
>
> Thanks,
> Ken
>
Bob Stayton | 3 Jan 2008 23:00

Re: First title in chunked output

You can make a CSS selector more specific by including the div that contains 
the div with class="titlepage".

div.chapter div.titlepage {
}

Bob Stayton
Sagehill Enterprises
bobs <at> sagehill.net

----- Original Message ----- 
From: "Jere Käpyaho" <jere.kapyaho <at> gmail.com>
To: "Ken Morse" <kenneth.morse <at> gmail.com>
Cc: "DocBook Apps" <docbook-apps <at> lists.oasis-open.org>
Sent: Thursday, January 03, 2008 11:49 AM
Subject: Re: [docbook-apps] First title in chunked output

> Hi Ken,
>
> this is really more of an idea than a solution, but CSS3 has  structural 
> pseudoclasses (http://www.w3.org/TR/css3-selectors/ #structural-pseudos), 
> some of which might fit the bill. As for  implementations... well, have a 
> look at http://www.css3.info, there's  even a selector test suite.
>
> HTH,
> Jere
>
>
> Ken Morse kirjoitti 3.1.2008 kello 20.47:
>
>> Hello,
>>
>> Anyone know of a way to treat the first <div class="titlepage"> on  a 
>> chunked XHTML output page differently? Bob Stayton's book has a  nice 
>> example covering Styling section headings with CSS (page 72 in  the 
>> Fourth Edition) but the CSS example will style other divs on  the same 
>> page that have class="titlepage" too -- I want to style  just the first 
>> one.
>>
>> Any ideas on how I could do this?
>>
>> Thanks,
>> Ken
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe <at> lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help <at> lists.oasis-open.org
>
>
> 

Gmane