eXist-db/exist — pull request #295 by WtfJoke (2014-08-12 22:20:38+00:00)
Title: Failure while building installer after 2.0 - xalan doesnt support xslt 2.0 - switch back to str:tokenizer

Hi there,

While trying to build the installer of 2.1, I experienced a build failure that the function tokenize hasnt been found (see attached screenshot). However building the installer of 2.0/1.4 worked like a charm. I was able to verifiy this on two different machines.

![screenshotofbuilderror](https://cloud.githubusercontent.com/assets/7139697/3898393/93adf0c8-226b-11e4-9c85-f77853754299.jpg)

As far as I have seen org.apache.xalan.processor.TransformerFactoryImpl is used (see build.bat transformerfactory argument).
According to https://xml.apache.org/xalan-j/ and https://en.wikipedia.org/wiki/XSL_Transformations#Processor_implementations xalan doesnt support xslt version 2.0, therefore this error occurs.
The cause of this was the change of: ffc4b68d
I assume, the person who builded the installer since this changed, used another transformer.

So basically the fix just made use of str:tokenize again and switched the version back to 1.0.
After doing that, building the installer was successful on 2.1 as well as on current develop branch.

Hope you can accept my pull request.
Thanks in advance! In case I did anything wrong, feel free to correct me :+1: