This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] segmentedlists
- From: Bob Stayton <bobs at sco dot com>
- To: Paul Slezak <slezakp at billmax dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 6 Nov 2003 09:58:57 -0800
- Subject: Re: [docbook-apps] segmentedlists
- References: <3FA951C3.1030208@billmax.com>
On Wed, Nov 05, 2003 at 01:38:43PM -0600, Paul Slezak wrote:
> Do anyone have any XSLs trick for segmentedlists? I would like each
> group to be delimited by a horizontal rule or some kind of separation.
>
> i.e. I get
>
> Attribute: cginewfrmok
> Value:
> Constraint:
> Explanation: Message to be displayed on a separate page whenever an
> operation was successful. Used
> whenever cgirefreshform is NO.
> Attribute: cgirefreshok
> Value:
> Constraint:
> Explanation: Message to be displayed on an input form when an update is
> successful. Used whenever
> cgirefreshform is YES.
> Attribute: cgirefresherr
> Value:
> Constraint:
> Explanation: Message to be displayed on an input form whenever a user
> supplied value is invalid. Used
> whenever cgirefreshform is YES.
> Attribute: emailalerts
> Value: YES
> Constraint: ^YES$|^NO$
> Explanation: Send email alerts when system errors occur to the virtual
> company system admin
>
> where I would like
>
> Attribute: cginewfrmok
> Value:
> Constraint:
> Explanation: Message to be displayed on a separate page whenever an
> operation was successful. Used
> whenever cgirefreshform is NO.
>
> Attribute: cgirefreshok
> Value:
> Constraint:
> Explanation: Message to be displayed on an input form when an update is
> successful. Used whenever
> cgirefreshform is YES.
>
> Attribute: cgirefresherr
> Value:
> Constraint:
> Explanation: Message to be displayed on an input form whenever a user
> supplied value is invalid. Used
> whenever cgirefreshform is YES.
>
> Attribute: emailalerts
> Value: YES
> Constraint: ^YES$|^NO$
> Explanation: Send email alerts when system errors occur to the virtual
> company system admin
>
> or maybe
>
> -------------------------------------------------------------------------------------------------------
> Attribute: cginewfrmok
> Value:
> Constraint:
> Explanation: Message to be displayed on a separate page whenever an
> operation was successful. Used
> whenever cgirefreshform is NO.
> -------------------------------------------------------------------------------------------------------
> Attribute: cgirefreshok
> Value:
> Constraint:
> Explanation: Message to be displayed on an input form when an update is
> successful. Used whenever
> cgirefreshform is YES.
> -------------------------------------------------------------------------------------------------------
> Attribute: cgirefresherr
> Value:
> Constraint:
> Explanation: Message to be displayed on an input form whenever a user
> supplied value is invalid. Used
> whenever cgirefreshform is YES.
> -------------------------------------------------------------------------------------------------------
> Attribute: emailalerts
> Value: YES
> Constraint: ^YES$|^NO$
> Explanation: Send email alerts when system errors occur to the virtual
> company system admin
> -------------------------------------------------------------------------------------------------------
You want to customize this template in lists.xsl:
<xsl:template match="seglistitem">
<xsl:apply-templates/>
</xsl:template>
For HTML output, it could be:
<xsl:template match="seglistitem">
<!-- rule above for first one only -->
<xsl:if test="not(preceding-sibling::seglistitem)">
<hr/>
</xsl:if>
<xsl:apply-templates/>
<hr/>
</xsl:template>
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.