bdarcus / csl-next-attic

a very tentative experiment ATM ...
2 stars 0 forks source link

Conditional? #23

Closed bdarcus closed 1 year ago

bdarcus commented 1 year ago

In the v1.1 branch, we adapted a richer conditional from CSL-M.

Could maybe adapt that further for something simpler/more concise?

https://github.com/citation-style-language/schema/blob/master/schemas/styles/csl-choose.rnc

bdarcus commented 1 year ago

I ended up adding something inspired partly by this, but also by lisp (in particular clojure and scheme) and XSLT 3.0 in:

https://github.com/bdarcus/csl-next/commit/3ab2ba89ef4127bcee4f1c950b331523cd451f12

It only offers the element-based model, and has just cs:when and cs:else.

denismaier commented 1 year ago

How will that look like in practice? Do you have an example?

bdarcus commented 1 year ago

Though maybe it's not so much v1.1.

https://github.com/bdarcus/csl-next/blob/9c6f88ecd6b2e5906f47653c400722810454325f/examples/style.xml#L12-L31