[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Implementing Conditional Text

Subject: Re: [xsl] Implementing Conditional Text
From: Graydon <graydon@xxxxxxxxx>
Date: Tue, 12 Jun 2012 18:16:56 -0400

On Tue, Jun 12, 2012 at 08:39:28PM +0000, Craig Sampson scripsit:
> We, our publications XML support group, are being asked to support
> conditional text in our source documents.

As a general rule, conditional text such as you are describing is a
property of an output format, rather than a property of the content.
(When it's a property of the content, you start getting into concepts
like audience-specific processing and so on.)

Try to keep the conditional text out of the content and in the output
processing; there's nothing that says you can't have a list of
conditional text and positions to put it that gets processed for a
specific output type.

-- Graydon

Current Thread