Not signed in (Sign In)
Quick Links
Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.
-
- CommentAuthorantonh
- CommentTimeNov 22nd 2008
I've just added a modified version of the Bluebook style to suit Australian legal formatting conventions to the repository (install link: http://www.zotero.org/styles/australian-legal/dev?install=1).
It's similar to, but not identical to the Australian Guide to Legal Citation 2 style, which is just too finicky for me. If enough people are interested, it could be developed towards this goal.
I'll be using it for my PhD thesis, and have tested it on my library - it seems consistent so far. Please feel free to try it out, and if you have any problems, or want to give any feedback, either do so here, or send me an email to anton dot hughes at utas dot edu dot au.
Note I did find an issue with volume number handling (see http://forums.zotero.org/discussion/4831/bug-with-csl-matchnone-handling/) but for an interim fix just delete and re-type the volume number. -
-
CommentAuthorRintze
- CommentTimeNov 23rd 2008 edited
Your style is invalid CSL: the first macro ('name-macro') is missing an if-conditional. You can find some info on validating CSL styles at http://www.zotero.org/support/dev/creating_citation_styles -
-
- CommentAuthorantonh
- CommentTimeNov 23rd 2008
Fixed. Thanks for the tip.
I found the stuff on validating CSL a bit too brief for someone with no understanding of RelaxNG. I'm on OSX, and I like TextMate, so didn't really want another editor to buy/install. I installed an XML plugin for textmate, but it doesn't support the compact syntax unfortunately. So after mucking around with rnc2rng converters with no luck, I eventually settled on jing as a command line validator, which you just use like this:
java -jar jing.jar -c csl.rnc australian-legal.csl -
- CommentAuthorDan Stillman
- CommentTimeNov 23rd 2008
For what it's worth, Trang generally works for converting from .rnc to .rng:java -jar trang.jar -I rnc -O rng csl.rnc csl.rng -
- CommentAuthorbdarcus
- CommentTimeNov 23rd 2008 edited
I found the stuff on validating CSL a bit too brief for someone with no understanding of RelaxNG. I'm on OSX, and I like TextMate, so didn't really want another editor to buy/install. I installed an XML plugin for textmate, but it doesn't support the compact syntax unfortunately.
Aqua Emacs is Mac native, and includes the excellent NXML mode (which supports the compact syntax) out-of-box. I realize you're happy with TextMate, but you might find emacs/nxml the better solution for XML in general, and CSL in particular.
It's really painful to treat validation as a separate step, compared to what you get with realtime validation. -
- CommentAuthorantonh
- CommentTimeNov 23rd 2008
@Dan: I did try converting the RNC to RNG with Trang, but it didn't seem to work when I tried to use it with the validator. Will try again with the command as you've set it out.
@bdarcus: I like the sound of real time validation. Will give Aqua Emacs a go. -
- CommentAuthorbdarcus
- CommentTimeNov 23rd 2008
I should add that there's one annoyance with real-time validation and how the zotero repository handles CSL files: your document will never be 100% valid since the repo expects the updated element to be empty. I'd still like to see this changed, as it's both annoying, and unnecessary. -
- CommentAuthorDan Stillman
- CommentTimeNov 23rd 2008
Bruce: That's not the case. A post-commit script just updates the timestamp when generating the repo version regardless of whether or not there's a timestamp in the committed file, which is why I've suggested that leaving the timestamp empty when committing is fine. But leaving in any arbitrary timestamp so as to pass validation is also fine—there's just no reason to bother updating it manually. -
- CommentAuthorbdarcus
- CommentTimeNov 24th 2008
Ah, great. But has that always been the case? I could have sworn I previously ran into problems when committing files with valid (non-empty) timestamps. -
- CommentAuthorDan Stillman
- CommentTimeNov 24th 2008
I could have sworn I previously ran into problems when committing files with valid (non-empty) timestamps.
It's entirely possible. That part of the post-commit code has been buggy in the past.
1 to 10 of 10