# Test for specific jurisdiction

**URL:** <https://discourse.citationstyles.org/t/test-for-specific-jurisdiction/1602>\
**Category:** CSL Usage\
**Created:** [February 29, 2020, 3:55pm UTC](https://discourse.citationstyles.org/t/test-for-specific-jurisdiction/1602 "2020-02-29T15:55:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philipp\_Zumstein](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Philipp\_Zumstein](https://discourse.citationstyles.org/u/Philipp_Zumstein)\
**Post date:** [February 29, 2020, 3:55pm UTC](https://discourse.citationstyles.org/t/test-for-specific-jurisdiction/1602/1 "2020-02-29T15:55:45Z")

</div>

The field jurisdiction is a CSL variable which can be rendered. However, for a legal style I want to distinguish the rendering for cases based on the value of the jurisdiction variable, since the European cases have to be rendered differently than the German cases.

I have seen such tests in Juris-M styles, e.g. the following form

```auto
<choose>
   <if jurisdiction="de">
      <text value="5"/>
   </if>
</choose>

```

Are such constructs working also as part of common CSL styles in combination with Zotero? Any drawback when I try to do that? (I see some warning about not valid style, but otherwise my first tests seem to work.)

---

<div class="post-metadata">

**Author:** ![Denis\_Maier](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@Denis\_Maier](https://discourse.citationstyles.org/u/Denis_Maier)\
**Post date:** [February 29, 2020, 4:12pm UTC](https://discourse.citationstyles.org/t/test-for-specific-jurisdiction/1602/2 "2020-02-29T16:12:59Z")

</div>

CSL-M can be used with Zotero as well. Usually, you use `version="1.1mlz1"` on `cs:style` to start `citeproc-js` in CSL-M mode. I am not sure if CSL-M extensions work properly if you use `version="1.0"`. The only drawback I am aware of is that you won’t be able to upload your style to the official style repository.
