This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: XSL customization
- From: Sam Steingold <sds at gnu dot org>
- To: docbook-apps at lists dot oasis-open dot org
- Date: 27 Apr 2003 02:08:39 -0400
- Subject: [docbook-apps] Re: XSL customization
- Organization: disorganization
- References: <m3bryunf71.fsf@loiso.podval.org> <20030425203938.A15096@sco.com>
- Reply-to: sds at gnu dot org
> * In message <20030425203938 dot A15096 at sco dot com>
> * On the subject of "Re: XSL customization"
> * Sent on Fri, 25 Apr 2003 20:39:39 -0700
> * Honorable Bob Stayton <bobs at sco dot com> writes:
>
> See this doc:
> http://www.sagehill.net/xml/docbookxsl/CustomMethods.html
thanks, this was quite useful!
more questions in the order of increasing complexity:
1. how do I append to a parameter? I don't want to list all the stuff
in generate.toc all other again, so I tried
<xsl:param name="generate.toc">
refentry toc
$generate.toc
</xsl:param>
with no success.
2. I want <literal role="foo">...</literal> to transform to
<tt role="foo">...</tt>.
<xsl:template match="literal[ at role = 'type' or @role = 'sexp']">
<tt role="@role"><xsl:apply-templates/></tt>
</xsl:template>
does not work
3. I want <emphasis role="strong">...<emphasis> to transform to
<strong>...</strong>
<xsl:template match="emphasis[ at role = 'strong']">
<strong><xsl:apply-templates/></strong>
</xsl:template>
does not work either
4. if a varlistentry has several term elements, I want them to be
separated by a line break, not ", ". DSSSL:
(element (varlistentry term)
(make sequence
(process-children-trim)
(if (not (last-sibling?))
(make empty-element gi: "BR")
(literal ""))))
XSL??
5. Is there a way to insert comments into the __output__ files?
Ideally, I want to preserve comments in the input file, but, IIUC,
they are not available to the XSLT processor.
So, I would need to find an element which may occur at any place
(like a comment can!) and create a template to translate it into a
comment (for further non-XSLT processing).
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>
I don't want to be young again, I just don't want to get any older.
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org