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 <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, &#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.

thanks a lot!

<xsl:template match="comment()">
 <xsl:text>&#10;.&#92;&#34;</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="'&#10;'"/>
  <xsl:with-param name="replacement" select="'&#10;.&#92;&#34;'"/>
 <xsl:text>&#10;</xsl:text></xsl:call-template>
 <xsl:text>&#10;</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


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