docbook: Alternative to tag in Docbook
Subject:
Re: Alternative to tag in Docbook
From:
"John R. Daily" ####@####.####
Date:
6 Aug 2002 01:50:19 -0000
Message-Id: <200208060150.g761oA610812@clmboh1-smtp3.columbus.rr.com>
At (time_t)1028579860 odc wrote:
> Hmm, where would I put a style sheet declaration ? The document I'm working o
> n
>
> is an LDP-style guide.
>
> Or is that something I have to do post-parsing ?
Well, if you're using DocBook/XML and XSL, the customized
stylesheet below (with the proper path to your local LDP
stylesheet in the xsl:import statement) should work.
If you're using SGML, you'll have to use DSSSL, and my functional
programming skills aren't up to the task to help much with that,
other than to point to the DocBook Wiki:
http://docbook.org/wiki/moin.cgi/DocBookDssslStylesheetDocs
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
<xsl:import href="/usr/share/sgml/docbook/stylesheet/xsl/ldp/ldp-html.xsl"/>
<xsl:template match="listitem/para">
<p style="display: inline">
<xsl:apply-templates/>
</p>
</xsl:template>
</xsl:stylesheet>
--
John R. Daily
<email><mailbox>john</mailbox><domain>geekhavoc.com</domain></email>