title: XSLT: Can not find Java class exception
body: <p>It works fine if remove reference to Java class from xslt.<br/>
  <strong>XSLT</strong></p>
  
  <pre><code>&lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="xs" xmlns:uuid="java:java.util.UUID"&gt;
      &lt;xsl:template match="/"&gt;
              &lt;xsl:for-each select="Client"&gt;
              &lt;xsl:variable name="uid" select="uuid:randomUUID()"/&gt;
  </code></pre>
  
  <p>Groovy</p>
  
  <pre><code>import java.util.UUID
  
  TransformerFactory.newInstance()
                    .newTransformer( new StreamSource( new StringReader( xslt ) ) )
                    .transform( new StreamSource( new StringReader( xmlAsString ) ),
                                new StreamResult( w ) )
  </code></pre>
  
  <p><strong>Exception</strong></p>
  
  <pre><code>ERROR:  'Cannot find class 'java:java.util.UUID'.'
  FATAL ERROR:  'Could not compile stylesheet'
  Caught: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
  </code></pre>