[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Man Page Transform and Modes

Subject: Re: Man Page Transform and Modes
From: Michael B Allen <mba2000@xxxxxxxxxx>
Date: Wed, 5 Apr 2006 18:15:49 -0400
michael allen missouri
On Wed, 5 Apr 2006 17:03:06 -0500
"Jon Gorman" <jonathan.gorman@xxxxxxxxx> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.