xsl-list
[Top] [All Lists]

Re: [xsl] Man Page Transform and Modes

2006-04-05 15:17:43
On Wed, 5 Apr 2006 17:03:06 -0500
"Jon Gorman" <jonathan(_dot_)gorman(_at_)gmail(_dot_)com> wrote:

Or would you use a completely different approach? If so, what?

It's been a long, long time since I've looked at the troff macros. 
But if most the elements are generic, then using modes might be
overkill.  I tend to use modes where there are sections with
similarily named elements  (or identically named ones) that are
semantically different.  In this case I might just do something like:

<xsl:template match="section">
<xsl:choose>
<xsl:when test="@name='description'"><xsl:text>DE. </xsl:text>

But having tags called 'section' or attributes named 'description' suggests
the XML source is largely specific to man page generation which is not the case.

Mike

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>