[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]