Next in thread → Next in month →

RE: [docbook-apps] xsl2 and xsl parameters

From
Mauritz Jeanson <>
Date
2006-10-26T17:18:48+00:00
ID
000001c6f922$ad9d0170$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] xsl2 and xsl parameters
> -----Original Message-----
> From: Paul Warren 

> 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*.


You could use a fake element:

 <xsl:param name="autolabel.elements">
   <db:bogus/>
 </xsl:param>


/MJ
Next in thread → Next in month →