Am busy, but worked a little more on the XSLT (nothing on the schema
yet). Here’s what you wanted Johan?
<cs:citation cs:delimiter=";" text:prefix="(" text:suffix=")">
<cs:multiple-authors cs:position="first" cs:min-authors="6"
cs:use-first=“6”>et al.</cs:multiple-authors>
<cs:multiple-authors cs:position=“subsequent"
cs:min-authors=“6” cs:use-first=“1”>et al.</cs:multiple-authors>
<cs:layout cs:position=“first”>
cs:creator
cs:names-short/
</cs:creator>
cs:year/
<cs:point text:prefix=”: "/>
</cs:layout>
</cs:citation>
I still need to make sure this doesn’t cause other problems if I make
this change.
Any thoughts on how to handle customization of the shorten attribute
here?
Right now the “———.” is hard-coded, and that needs to change.
Bruce
Actually, in this approach, the layout would be different. The
position attribute should be “all” since layout is not affected by
position in this case.
<cs:citation cs:delimiter=";" text:prefix="(" text:suffix=")">
<cs:multiple-authors cs:position="first" cs:min-authors="6"
cs:use-first=“6”>et al.</cs:multiple-authors>
<cs:multiple-authors cs:position=“subsequent"
cs:min-authors=“6” cs:use-first=“1”>et al.</cs:multiple-authors>
<cs:layout cs:position=“all”>
cs:creator
cs:names-short/
</cs:creator>
cs:year/
<cs:point text:prefix=”: "/>
</cs:layout>
</cs:citation>
Bruce
One thing, though, that you should understand:
One of the reasons for using elements for this sort of content is that
it is easier to validate. If I go down this road of moving content to
attributes (first/subsequent, etc.), it probably means this will always
be a RELAX NG-only schema. XML Schema is dumb about attributes (and
about order, which is already a problem).
I’m fine with that myself, but is a trade-off.
Bruce