# Update.xsl

**URL:** https://discourse.citationstyles.org/t/update-xsl/719
**Category:** CSL Development
**Created:** [August 9, 2009, 10:31pm UTC](https://discourse.citationstyles.org/t/update-xsl/719 "2009-08-09T22:31:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Bruce\_D\_Arcus1](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bruce\_D\_Arcus1](https://discourse.citationstyles.org/u/Bruce_D_Arcus1)
#### Post date: [August 9, 2009, 10:31pm UTC](https://discourse.citationstyles.org/t/update-xsl/719/1 "2009-08-09T22:31:42Z")

</div>

So to get a feel for the changes with 1.0, you can run update.xsl,  
which is in the scripts dir. I still need to tweak the dates stuff to  
match what rintze proposed earlier today, but it only converts dates  
to the new localized version if the style is a base style (as  
indicated in the metadata).

Bruce

---

<div class="post-metadata">

### Author: ![Rintze\_Zelle](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/rintze_zelle/32/175_2.png) [@Rintze\_Zelle](https://discourse.citationstyles.org/u/Rintze_Zelle)
#### Post date: [August 10, 2009, 5:17am UTC](https://discourse.citationstyles.org/t/update-xsl/719/2 "2009-08-10T05:17:47Z")

</div>

> So to get a feel for the changes with 1.0, you can run update.xsl,  
> which is in the scripts dir.

I hope to submit a (rough) patch for schema soon. Curious: what software do  
you use to apply the update.xsl to a style?

> I still need to tweak the dates stuff to  
> match what rintze proposed earlier today, but it only converts dates  
> to the new localized version if the style is a base style (as  
> indicated in the metadata).

I just checked, and 63 styles specify themselves as “generic-base”,  
including some journal-specific styles.

Rintze

---

<div class="post-metadata">

### Author: ![Bruce\_D\_Arcus1](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bruce\_D\_Arcus1](https://discourse.citationstyles.org/u/Bruce_D_Arcus1)
#### Post date: [August 10, 2009, 10:53am UTC](https://discourse.citationstyles.org/t/update-xsl/719/3 "2009-08-10T10:53:16Z")

</div>

> So to get a feel for the changes with 1.0, you can run update.xsl,  
> which is in the scripts dir.
> 
> I hope to submit a (rough) patch for schema soon. Curious: what  
> software do you use to apply the update.xsl to a style?

Saxon or xsltproc.

> I still need to tweak the dates stuff to  
> match what rintze proposed earlier today, but it only converts dates  
> to the new localized version if the style is a base style (as  
> indicated in the metadata).
> 
> I just checked, and 63 styles specify themselves as “generic-base”,  
> including some journal-specific styles.

So they should be fixed to remove that category.

Bruce

---

<div class="post-metadata">

### Author: ![Rintze\_Zelle](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/rintze_zelle/32/175_2.png) [@Rintze\_Zelle](https://discourse.citationstyles.org/u/Rintze_Zelle)
#### Post date: [August 12, 2009, 8:41pm UTC](https://discourse.citationstyles.org/t/update-xsl/719/4 "2009-08-12T20:41:38Z")

</div>

The generic default styles hosted at the style repository are stored  
separately (changing the styles in the SVN has no direct impact on them). Am  
I correct in assuming the updating of the styles will follow the  
introduction of citeproc-js in Zotero? If so, the steps should probably be:

- The Zotero team updates the generic default styles (if applicable)
- update.xls strips generic-base from all styles in the SVN
- update.xls replaces occurrences of cs:date with the localized variants in  
the updated generic default styles.

BTW, Nature is both a default (and thus generic-base?) style, as a  
journal-specific style.

Rintze
