[tei-council] Guidelines Building

Martin Holmes mholmes at uvic.ca
Thu Dec 19 08:51:53 EST 2013


Coincidentally, I'm just building a brand-new desktop at home, and I 
used the opportunity to work through the Jenkins script and flag some 
things that would need to be changed. I did get a working environment 
with some tweaking (TEI packages have changed, for one thing, since 
2012), and I was able to successfully execute:

make test
make html-web

If I try a default make with no targets, though, the process errors out 
with lots of these:

 >                  [Test: @degree] Location: 
/TEI[1]/text[1]/body[1]/div[21]/div[2]/p[5]/egXML[namespace-uri()='http://www.tei-c.org/ns/Examples'][1]/precision[namespace-uri()='http://www.tei-c.org/ns/Examples'][2]</WARNING>
 >    <WARNING>Schematron warning: WARNING: use of deprecated attribute 
— The TEI-C may drop support for @degree of the precision element as 
early as 2015-11-12.
 >                  [Test: @degree] Location: 
/TEI[1]/text[1]/body[1]/div[21]/div[2]/p[6]/egXML[namespace-uri()='http://www.tei-c.org/ns/Examples'][1]/residence[namespace-uri()='http://www.tei-c.org/ns/Examples'][1]/precision[namespace-uri()='http://www.tei-c.org/ns/Examples'][1]</WARNING>
 >    <WARNING>Schematron warning: WARNING: use of deprecated attribute 
— The TEI-C may drop support for @degree of the precision element as 
early as 2015-11-12.
 >                  [Test: @degree] Location: 
/TEI[1]/text[1]/body[1]/div[21]/div[2]/p[7]/egXML[namespace-uri()='http://www.tei-c.org/ns/Examples'][1]/precision[namespace-uri()='http://www.tei-c.org/ns/Examples'][1]</WARNING>
 > </Messages>
make: *** [valid] Error 1

I think the problem (correct me if I'm wrong) is the coupling of the 
stylesheet build with the P5 build. Jenkins always looks to the latest 
successful build of the Stylesheets project for its XSL, but if you 
build locally, by default you're using the Stylesheets in the installed 
TEI Debian packages. Stylesheet development goes hand-in-hand with P5 
development, so unless you check out the latest Stylesheets code from 
github and build that, then point your make at the results, there's a 
strong possibility things will fail.

This means that if we're going to develop a script for creating working 
local build environments for Council members, it will have to include 
checking out the Stylesheets from github and building them. This would 
have been slightly easier when the Stylesheets were together with P5, 
because the Makefile would know where to find them.

Another possibility is to have the local build process point at the 
lastSuccessfulBuild of the Stylesheets on one of the Jinks machines. 
That would presumably work for anyone working only on the trunk in SVN 
(i.e. not also simultaneously working on the Stylesheet project).

Cheers,
Martin

On 13-12-19 05:42 AM, Sebastian Rahtz wrote:
>
> On 19 Dec 2013, at 13:38, Hugh Cayless <philomousos at gmail.com> wrote:
>
>> I will. If I’m on my personal machine, OS X, if on the server, some flavor of Linux. I’ve got successful builds of the schemas and web version of the guidelines going, which was my main goal. The big thing is trang, for which Ubuntu has a wrapper script. I can make minor mods to execute the jar file using java -jar and it works.
>
> that should be fixed now, the P5 source comes with a copy of trang jar, and uses that
>
> (fi you have found that not to be true somewhere, tell me…)
>
> sebastian
>


More information about the tei-council mailing list