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: Re: [docbook-apps] xsl2 and xsl parameters


Mauritz Jeanson wrote:
>> -----Original Message-----
>> From: Paul Warren 
>>
>> <xsl:param name="toc.max.depth" select="0" />
>> <xsl:param name="chapter.autolabel" select="0" />
>> <xsl:param name="section.autolabel" select="0" />
> 
> 
> There are no parameters called "chapter.autolabel" or "section.autolabel"
> defined for DocBook XSL2. Instead, there is a parameter called
> "autolabel.elements" (see param.xsl). It contains a list of elements that
> should be auto-labelled. Customize by removing relevant elements.

Ah, that works up to a point, but it doesn't let you have no elements 
autolabelled:

<xsl:param name="autolabel.elements">
   <!-- nop -->
</xsl:param>

doesn't work, gives:

Error at xsl:choose on line 42 of 
file:/opt/docbook-xsl2-snapshot/common/gentext.xsl:
   XPTY0019: Required item type of first operand of '/' is node(); 
supplied value has item
   type xs:string
Transformation failed: Run-time errors were reported

Leaving the <!-- nop --> out produces the same error.

For now I've stuck the <db:example /> element in there, as I think we 
are unlikely to need be using examples, but I'd like a more elegant 
solution. *goes off to peruse params.xsl*.

>> for the ToC I've also tried
>>
>> <xsl:param name="generate.toc" select="''" />
> 
> 
> This parameter is defined differently in XSL2 and the above will not work.
> Put the following in your customization layer to get rid of all TOCs:
>   
>  <xsl:param name="generate.toc" as="element()*">
>  </xsl:param>

This one has done the trick!


Thanks for the help!
-- 
Paul Warren                    |   UIN: 10374690
u3292467 at anu dot edu dot au |   MSN: qvack4@hotmail.com
pwarren.homelinux.org          | SKYPE: p.a.warren


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