Hi Lars,
In general, only xsl:import statements need to appear at the beginning, and everything else can be in any order.
In this case, you need to create the two new attribute-sets in your customization file, as mentioned in step 4 of the procedure you referenced. 8^)
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net ----- Original Message -----
From: Lars Vogel
To: Bob Stayton
Cc: DocBook Apps
Sent: Monday, October 10, 2011 9:37 AM
Subject: Re: [docbook-apps] Customizing Chapter Titel
Hi Bob,
thanks. In general my stylesheet customization works file.
Only once I put the part from below into the the copied component.xsl it fails.
I get the following errors:
[xslt] C:\Users\vogella\workspace\docu\de.vogella.publishing\mystylesheets\fo\component.xsl:22: Error! No attribute-set exists named chap.label.properties
[xslt] C:\Users\vogella\workspace\docu\de.vogella.publishing\mystylesheets\fo\component.xsl:34: Error! No attribute-set exists named chap.title.properties
[xslt] Failed to process null
I placed it at the beginning of the file. Does the order of the entries matter?
Best regards, Lars
2011/10/10 Bob Stayton <
bobs@sagehill.net>
Hi Lars,
Can you be more specific about how you are setting up your customization? Are you following the guidelines described here:
http://www.sagehill.net/docbookxsl/CustomMethods.html#CustomizationLayer Also, your message says that 2 errors were detected, but did not give the error messages.
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net ----- Original Message -----
From: Lars Vogel
To: DocBook Apps
Sent: Monday, October 10, 2011 8:01 AM
Subject: [docbook-apps] Customizing Chapter Titel
Hi,
I'm trying to follow to customizing of a chaper:
http://www.sagehill.net/docbookxsl/TitleFontSizes.html I did incluce my new component.xsl in my customizing layer and without modification it works. Once I copy the example template into my co,mponent.xsl I receive:
C:\Users\vogella\workspace\docu\de.vogella.publishing\buildpdf.xml:190: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 2 errors detected.
I copy the following:
<xsl:template name="chapappendix.title">
<xsl:param name="node" select="."/>
<fo:block xsl:use-attribute-sets="chap.label.properties">
<xsl:call-template name="gentext">
<xsl:with-param name="key">
<xsl:choose>
<xsl:when test="$node/self::chapter">chapter</xsl:when>
<xsl:when test="$node/self::appendix">appendix</xsl:when>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:apply-templates select="$node" mode="label.markup"/>
</fo:block>
<fo:block xsl:use-attribute-sets="chap.title.properties">
<xsl:apply-templates select="$node" mode="title.markup"/>
</fo:block>
</xsl:template>
Any advice?
Best regards, Lars
--
Lars
http://www.vogella.de - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter
--
Lars
http://www.vogella.de - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter