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: xsl-stylesheets/manpages


> * In message <20030515222909.GF1098@redhat.com>
> * On the subject of "Re: Re: xsl-stylesheets/manpages"
> * Sent on Thu, 15 May 2003 23:29:09 +0100
> * Honorable Tim Waugh <twaugh@redhat.com> 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.



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