This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] Re: xsl-stylesheets/manpages
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: "'sds at gnu dot org'" <sds at gnu dot org>, docbook-apps at lists dot oasis-open dot org
- Date: Fri, 23 May 2003 13:25:59 -0400
- Subject: RE: [docbook-apps] Re: xsl-stylesheets/manpages
Your second-to-the-last <xsl:text> element is invalid. <xsl:call-template>
can only contain (IIRC) <xsl:with-param/> elements. Try to delete that one
and see if that gives you what you want.
> -----Original Message-----
> From: Sam Steingold [mailto:sds@gnu.org]
> Sent: Friday, May 23, 2003 12:58 PM
> To: docbook-apps@lists.oasis-open.org
> Subject: [docbook-apps] Re: xsl-stylesheets/manpages
>
>
> > * In message
> <E08C8F26F6901D42B1201763D125853801A5CC48@ntdevexc.win.ansys.com>
> > * On the subject of "RE: Re: xsl-stylesheets/manpages"
> > * Sent on Fri, 23 May 2003 12:04:08 -0400
> > * Honorable Jeff Beal <jeff.beal@ansys.com> writes:
> >
> > You need to put single quotes around anything you want to treat as a
> > string in an XPath expression, in your case, . Use
> > select="' '" instead of select=" ". The latter attempts to
> > find an element named , which is an invalid element
> name anyway,
> > hence the somewhat cryptic error message.
>
> thanks a lot!
>
> <xsl:template match="comment()">
> <xsl:text> .\"</xsl:text> <!-- #\Newline . \ " -->
> <xsl:call-template name="string.subst">
> <xsl:with-param name="string"><xsl:value-of
> select="."/></xsl:with-param>
> <xsl:with-param name="target" select="' '"/>
> <xsl:with-param name="replacement" select="' .\"'"/>
> <xsl:text> </xsl:text></xsl:call-template>
> <xsl:text> </xsl:text>
> </xsl:template>
>
> I now get
>
> .....
> xsl:call-template: misplaced text element
> xsl:call-template: misplaced text element
> xsl:call-template: misplaced text element
> xsl:call-template: misplaced text element
> .....
>
> and the output is broken:
>
> 1. I get spurious blank lines which is significant to groff:
>
> <!-- #ifndef NO_SP_MALLOC -->
> <arg><option><link linkend="opt-stack">-s
> <replaceable>stack-size</replaceable></link></option></arg>
> <!-- #endif -->
> <!-- #ifdef MULTIMAP_MEMORY_VIA_FILE -->
> <arg><option><link linkend="opt-tempdir">-t
> <replaceable>temp-dir</replaceable></link></option></arg>
> <!-- #endif -->
>
> --->
> .\" #ifndef NO_SP_MALLOC
> [\fB\-s\ \fIstack\-size\fR\fR]
> .\" #endif
>
> .\" #ifdef MULTIMAP_MEMORY_VIA_FILE
> [\fB\-t\ \fItemp\-dir\fR\fR]
> .\" #endif
>
> which should be
>
> .\" #ifndef NO_SP_MALLOC
> [\fB\-s\ \fIstack\-size\fR\fR]
> .\" #endif
> .\" #ifdef MULTIMAP_MEMORY_VIA_FILE
> [\fB\-t\ \fItemp\-dir\fR\fR]
> .\" #endif
>
> 2. some comments are converted incorrectly:
>
> <varlistentry id="opt-libdir"><term><option>-B</option>
> <replaceable>lisp-lib-dir</replaceable></term>
> <listitem><simpara>Specifies the installation directory.
> This is the directory containing the linking sets and
> other data files.
> <!-- #ifdef UNIX -->
> This option is normally not necessary, because the
> installation directory
> is already built-in in the <command>clisp</command> executable.
> <!-- #endif -->
> Directory <replaceable>lisp-lib-dir</replaceable> can be changed
> dynamically using the symbol-macro
> <varname>*lib-directory*</varname>.
> </simpara></listitem></varlistentry>
>
> --->
>
> .TP
> \fB\-B\fR \fIlisp\-lib\-dir\fR
> Specifies the installation directory\&. This is the directory
> containing the linking sets and other data files\&. .\"
> #ifdef UNIX This option is normally not necessary, because
> the installation directory is already built\-in in the
> \fBclisp\fR executable\&. .\" #endif Directory
> \fIlisp\-lib\-dir\fR can be changed dynamically using the
> symbol\-macro \fI*lib\-directory*\fR\&.
>
> Thanks a lot for your 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>
> main(a){a="main(a){a=%c%s%c;printf(a,34,a,34);}";printf(a,34,a,34);}
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-help@lists.oasis-open.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org