# validate please

**URL:** <https://discourse.citationstyles.org/t/validate-please/209>\
**Category:** CSL Development\
**Created:** [September 4, 2006, 6:57pm UTC](https://discourse.citationstyles.org/t/validate-please/209 "2006-09-04T18:57:58Z")\
**Posts on this page:** 3\
**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:** [September 4, 2006, 6:57pm UTC](https://discourse.citationstyles.org/t/validate-please/209/1 "2006-09-04T18:57:58Z")

</div>

Just a reminder: make sure you validate style files against the schema  
before checking them in. There are a lot of errors.

If there are problems you can’t fix, just post here.

Bruce

---

<div class="post-metadata">

**Author:** ![Johan\_Kool2](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@Johan\_Kool2](https://discourse.citationstyles.org/u/Johan_Kool2)\
**Post date:** [September 4, 2006, 8:15pm UTC](https://discourse.citationstyles.org/t/validate-please/209/2 "2006-09-04T20:15:13Z")

</div>

Hello Bruce,

Your remarks about validating make sense. However, it seems to be  
quite a challenge to validate anything against Relax NG Compact. XML  
Nanny barks at it, xmllint doesn’t understand the compact version,  
and Jing spits out this:

[Johan-Kools-PowerBook:~] jkool% java -jar /Users/jkool/Downloads/  
jing-20030619/bin/jing.jar /Users/jkool/Developer/Biblio/csl/schema/  
trunk/csl.rnc /Users/jkool/Developer/Biblio/csl/styles/apa.csl  
/Users/jkool/Developer/Biblio/csl/schema/trunk/csl.rnc:1:1: fatal:  
Content is not allowed in prolog.

Is there an easy way to validate? I know you use Oxygen, but I don’t  
quite feel like buying it just to validate xml files. I hope I am not  
missing something obvious here…

Johan

---

<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:** [September 4, 2006, 8:45pm UTC](https://discourse.citationstyles.org/t/validate-please/209/3 "2006-09-04T20:45:05Z")

</div>

I think the easiest, best option is to install this:

[http://www.davidashen.net/rnv.html](http://www.davidashen.net/rnv.html)

If you don’t have the time for that (it’s easy to compile, but you do  
have to compile it), you can convert to the XML syntax using Trang. Am  
attaching a version just in case.

Also, the excellent nXML mode (bundled with the equally excellent Aqua  
emacs) gives you real-time RNC valdiation and completion (though IIRC  
correctly, you’re not an emacs user).

Bruce

[csl.rng](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/8437cb23303b3a5dd99d6f5d5b030be6e69d5d60.rng) (49.5 KB)
