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

Parameter-Controlled Selection of Attribute Sets

Subject: Parameter-Controlled Selection of Attribute Sets
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Mon, 11 Mar 2002 14:42:15 -0600
attribute sets parameter
I'm trying to create an FO style sheet that will work with both XSL
Formatter and RenderX' XEP product. Unfortunately, these two products
are incompatible in at least two places:

- RenderX does not allow start-indent for region-body and XSL Formatter
expects margin-left
- RenderX does not allow border-width.conditionality and XSL Formatter
does not allow the fully-specified border-*-width.conditionality
attributes.

Thus some elements need to use one set of attributes or the other
depending on which product will be processing the FO document.
Unfortunately, it does not appear that XSLT gives me a way to do this.

First tried putting xsl:choose inside xsl:attribute-set, but of course
this is not allowed (probably for good reason).

Second, I tried having two different attribute sets and then using a
variable to hold the attribute set name to specified on the
xsl:use-attribute-sets= attribute. Unfortunately, use-attribute-sets
does not appear to resolve variables, either specified bare or as an
attribute value template.

In the case of tables, it is not sufficient to simply have two versions
of the start tag, as I can with fo:region-body, because it would mean
duplicating the whole table. I suppose I could put the table's innards
into a named template, but that's pretty ugly template structure.

Have I missed another way to get dynamically-selectable attribute sets?

Of course, it would be nice if both of these products interpreted XSL-FO
in exactly the same way....

Thanks,

Eliot
--
W. Eliot Kimber, eliot@xxxxxxxxxx
Consultant, ISOGEN International

1016 La Posada Dr., Suite 240
Austin, TX  78752 Phone: 512.656.4139

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.