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 customization

> * In message <20030425203938.A15096@sco.com>
> * On the subject of "Re: XSL customization"
> * Sent on Fri, 25 Apr 2003 20:39:39 -0700
> * Honorable Bob Stayton <bobs@sco.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

   with no success.

2. I want <literal role="foo">...</literal> to transform to
   <tt role="foo">...</tt>.

<xsl:template match="literal[@role = 'type' or @role = 'sexp']">
 <tt role="@role"><xsl:apply-templates/></tt>

   does not work

3. I want <emphasis role="strong">...<emphasis> to transform to

<xsl:template match="emphasis[@role = 'strong']">

   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
    (if (not (last-sibling?))
	(make empty-element gi: "BR")
	(literal ""))))


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


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.

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