xsl-list
[Top] [All Lists]

configuring a conditional

2005-05-22 18:27:40
In my XSLT, I need to configure formatting for so-called "et al." handling in citations; e.g. (Smith et al. 1999). Sometimes this gets quite complicated, such that I've settled on this sort of config markup:

      <multi-name-replace>
<rule when-more-than="2" and-less-than="6" and-position="subsequent" use-first="1"/>
        <rule when-more-than="6" and-position="first" use-first="1"/>
        <renderas font-style="italic">et al.</renderas>
      </multi-name-replace>

Now my question is, how would I actually implement this in the XSLT? I can't rely on the and-less-than attribute to present, nor even the entire multi-name element.

Or is there a better way to make the markup suitable for transformation (it's my schema, so I can make it whatever I want!)?

Bruce


--~------------------------------------------------------------------
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>