RE: [docbook-apps] Re: xsl-stylesheets/manpages

From
Jeff Beal <>
Date
2003-05-23T15:52:03+00:00
ID
Thread
RE: [docbook-apps] Re: xsl-stylesheets/manpages
You need to put single quotes around anything you want to treat as a string
in an XPath expression, in your case, &#10;.  Use select="'&#10;'" instead
of select="&#10;".  The latter attempts to find an element named &#10;,
which is an invalid element name anyway, hence the somewhat cryptic error
message.

> -----Original Message-----
> From: Sam Steingold [mailto:]
> Sent: Friday, May 23, 2003 11:27 AM
> To: 
> Subject: [docbook-apps] Re: xsl-stylesheets/manpages
> 
> 
> > * In message <>
> > * On the subject of "Re: Re: xsl-stylesheets/manpages"
> > * Sent on Thu, 15 May 2003 23:29:09 +0100
> > * Honorable Tim Waugh <> writes:
> >
> > > i.e., every option is printed twice!
> > Fixed in CVS; stupid bug (my fault) introduced by merging patches.
> 
> indeed, fixed in 1.61.2
> 
> > > > Of course you can split them into lines in the template.
> > > how?
> > 
> > Using substring-before and a recursive template.  But I imagine that
> > there will be situations where you might want a comment in 
> the XML but
> > where a forced line break in the output would cause bad 
> effects.  YMMV
> > though, and you get to choose where you put your comments. :-)
> 
> I tried this:
> 
> <xsl:template match="comment()">
>  <xsl:text>&#10;.\""</xsl:text>
>  <xsl:call-template name="string.subst">
>   <xsl:with-param name="string"><xsl:value-of 
> select="."/></xsl:with-param>
>   <xsl:with-param name="target" select="&#10;"/>
>   <xsl:with-param name="replacement" select='&#10;.\""'/>
>  <xsl:text>&#10;</xsl:text></xsl:call-template>
> </xsl:template>
> 
> errors:
> 
> XPath error Invalid expression
> 
> ^
> XPath error Invalid expression
> .\""
>  ^
> compilation error: file man.xsl line 21 element with-param
> xsl:param : could not compile select expression '
> .\""'
> 
> help!
> 
> 
> -- 
> Sam Steingold (http://www.podval.org/~sds) running RedHat9 GNU/Linux
> <http://www.camera.org> <http://www.iris.org.il> 
<http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
Bus error -- driver executed.


---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: