This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] 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 checked in a fix to CVS earlier today.
> Fixed in CVS; stupid bug (my fault) introduced by merging patches.

I README.CVS lacks instruction on using CVS, and I could not get it to
work:

$ make
make -C xhtml
make[1]: Entering directory `/usr/local/src/docbook/xsl/xhtml'
for f in *.xsl; do if [ ! -f ../html/$f -a "$f" != "html2xhtml.xsl" ]; then rm $f; fi; done
for f in ../html/*.xsl; do if [ ! -f `basename $f` ]; then \
          echo $f; \
          cp $f .; \
          touch -t 197001010000 `basename $f`; fi; done
for f in *.xsl; do if [ ../html/$f -nt $f ]; then /sourceforge/docbook/cvstools/xslt ../html/$f html2xhtml.xsl $f; fi; done
/bin/sh: line 1: /sourceforge/docbook/cvstools/xslt: No such file or directory
/bin/sh: line 1: /sourceforge/docbook/cvstools/xslt: No such file or directory
/bin/sh: line 1: /sourceforge/docbook/cvstools/xslt: No such file or directory
/bin/sh: line 1: /sourceforge/docbook/cvstools/xslt: No such file or directory
/bin/sh: line 1: /sourceforge/docbook/cvstools/xslt: No such file or directory
..................................

$ make XSLT=/usr/local/src/docbook/cvstools/xslt
make -C xhtml
make[1]: Entering directory `/usr/local/src/docbook/xsl/xhtml'
for f in *.xsl; do if [ ! -f ../html/$f -a "$f" != "html2xhtml.xsl" ]; then rm $f; fi; done
for f in ../html/*.xsl; do if [ ! -f `basename $f` ]; then \
          echo $f; \
          cp $f .; \
          touch -t 197001010000 `basename $f`; fi; done
for f in *.xsl; do if [ ../html/$f -nt $f ]; then /usr/local/src/docbook/cvstools/xslt ../html/$f html2xhtml.xsl $f; fi; done
/usr/local/src/docbook/cvstools/saxon ../html/admon.xsl html2xhtml.xsl admon.xsl use.extensions="1"
DocBook XSL dir '' doesn't exist
  Try using the '-X <dir>' argument
/usr/local/src/docbook/cvstools/saxon ../html/autoidx.xsl html2xhtml.xsl autoidx.xsl use.extensions="1"
DocBook XSL dir '' doesn't exist
  Try using the '-X <dir>' argument
/usr/local/src/docbook/cvstools/saxon ../html/autotoc.xsl html2xhtml.xsl autotoc.xsl use.extensions="1"
..................................

when is the new release coming out?

> Using substring-before and a recursive template.

could you please be more specific?
Something like

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

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 '
.\""'

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

yuk.  O hate groff.

> YMMV though, and you get to choose where you put your comments. :-)

not really.  my comments are <!-- #ifdef UNIX --> &c, so they delineate
platform-specific parts.

My idea is that I want to generate HTML and groff man pages form the
same source.
the result must be specific for the target platform.
I cannot require that the user has an XSL tool.
So I will include a generated HTML&groff man pages into the
distribution, and the user will generate the final platform-specific
HTML&groff pages (using a C compiler).

thanks!

-- 
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>
Live Lisp and prosper.


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]