OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: titlepage custom need help


Hello folks,

I have a little trouble.

I made several books with a working custom titlepage.

I wrote a new book and try do use the same titlepage, but it does not
work. To find what's wrong I made a small Docbook xml file, a custom
stylesheet and a small custom titlepage. And it does not work...

In fact I don't have a recto page my title/subtile/author's name...
Without calling myCustom.xsl the result have a recto page with those
element.

I can figure where is the trouble.

Here is my test files:

First myBook.xml

<?xml version="1.0" encoding="utf-8"?>
<?oxygen RNGSchema="http://www.docbook.org/xml/5.0/rng/docbook.rng";
type="xml"?>
<book xmlns="http://docbook.org/ns/docbook"; xml:lang="fr"
xmlns:svg="http://www.w3.org/2000/svg";
xmlns:xi="http://www.w3.org/2001/XInclude"; version="5.0" >
	<info>
		<title>This is the title</title>
		<subtitle>This is the subtitle</subtitle>
		<authorgroup>
			<author>
				<personname>
					<surname>Foucry</surname>
					<firstname>Jacques</firstname>
				</personname>
			</author>
		</authorgroup>
		<publisher>
			<publishername>Jacques Foucry</publishername>
			<address><city>Paris</city></address>
		</publisher>
		<pubdate>2012</pubdate>
		<copyright>
			<year>2012</year>
			<holder>Jacques Foucry. All right reserved</holder>
		</copyright>
		<releaseinfo>
			Test Custom titlepage
		</releaseinfo>
		<editor>
			<personname>
				<firstname>Jacques</firstname>
				<surname>Foucry</surname>
			</personname>
		</editor>
		<revhistory >
			<revision>
				<date>2012 January</date>
				<revremark>Thrid edition</revremark>
			</revision>
		</revhistory>
	</info>
	<chapter>
		<info>
			<title>Chapter 1</title>
		</info>
		<para>
			This is a very short chapter.
		</para>
	</chapter>
</book>

myStyleSheet.xsl:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0"
	xmlns:d="http://docbook.org/ns/docbook";
	xmlns:exsl="http://exslt.org/common";
	xmlns:fo="http://www.w3.org/1999/XSL/Format";
	exclude-result-prefixes="exsl d">
	<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/fo/profile-docbook.xsl"/>
	<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/fo/autoidx-kosek.xsl"/>
   	<xsl:import href="myCustom.xsl"/>

    <xsl:param name="title.color">#334D89</xsl:param>
</xsl:stylesheet>

myCustom.xml, use to generate myCustom.xsl:

<!DOCTYPE t:templates [
<!ENTITY hsize0 "10pt">
<!ENTITY hsize1 "12pt">
<!ENTITY hsize2 "14.4pt">
<!ENTITY hsize3 "17.28pt">
<!ENTITY hsize4 "20.736pt">
<!ENTITY hsize5 "24.8832pt">
<!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 -->
<!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 -->
<!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 -->
<!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 -->
<!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 -->
<!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 -->
]>
<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0";
	     xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param";
         xmlns:fo="http://www.w3.org/1999/XSL/Format";
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
	<t:titlepage t:element="book" t:wrapper="fo:block">
		<t:titlepage-content t:side="recto">
			<title/>
			<subtitle/>
			<authorgroup/>
			<author/>
			<othercredit/>
			<releaseinfo/>
		</t:titlepage-content>
		<t:title-content t:side="verso">
			<title/>
			<subtitle/>
			<author/>
			<relaseinfo/>
			<edition/>
			<revhistory/>
			<othercredit/>
		</t:title-content>
		<t:titlepage-separator>
		</t:titlepage-separator>
		<t:titlepage-before t:side="recto">
		</t:titlepage-before>
		<t:titlepage-before t:side="verso">
		</t:titlepage-before>
	</t:titlepage>
	<xsl:template
match="d:info/d:authorgroup/d:author/d:personname/d:surname"
mode="book.titlepage.recto.mode">
		<xsl:attribute name="font-size">24pt</xsl:attribute>
		<xsl:apply-templates mode="titlepage.mode"/>
	</xsl:template>
</t:templates>

Thanks in advance for those who can help me.

Jacques


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]