I downloaded 1.0.2, I have ant 1.6.5 in my path, I have
IBM JVM 1.5.0 (64bit). First build failed with a
stack, subsequent builds just give the SystemId error.
The first build fails, the second passes - I dont have
much faith in the second result yet :)
---
First Time round:
---
[ajaxforms] SystemId Unknown; Line #470; Column #47;
xsl:if is not allowed in this position in the stylesheet!
[ajaxforms] SystemId Unknown; Line #47; Column #36;
javax.xml.transform.TransformerException:
ElemTemplateElement error: group
[ajaxforms] Init Transformation
[ajaxforms] java.lang.NullPointerException
[ajaxforms] at
net.ajaxforms.compiler.Compiler.compile(Compiler.java:120)
[ajaxforms] at
net.ajaxforms.ant.AJAXFormsTask.execute(AJAXFormsTask.java:173)
[ajaxforms] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[ajaxforms] at
org.apache.tools.ant.Task.perform(Task.java:364)
[ajaxforms] at
org.apache.tools.ant.Target.execute(Target.java:341)
[ajaxforms] at
org.apache.tools.ant.Target.performTasks(Target.java:369)
[ajaxforms] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[ajaxforms] at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[ajaxforms] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[ajaxforms] at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[ajaxforms] at
org.apache.tools.ant.Main.runBuild(Main.java:668)
[ajaxforms] at
org.apache.tools.ant.Main.startAnt(Main.java:187)
[ajaxforms] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[ajaxforms] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
BUILD FAILED
/home/axb/Desktop/xforms/ajaxforms/build.xml:41:
java.lang.NullPointerException
-------------------------------------------
Second time round:
---
Buildfile: build.xml
init:
copy:
[ajaxformsresources] Copiados 15 ficheros a
/home/axb/Desktop/xforms/ajaxforms/build/resources
build:
[ajaxforms] SystemId Unknown; Line #470; Column #47;
xsl:if is not allowed in this position in the stylesheet!
[ajaxforms] SystemId Unknown; Line #47; Column #36;
javax.xml.transform.TransformerException:
ElemTemplateElement error: group
[ajaxforms] Init Transformation
[ajaxforms] Transformed 0 archives
BUILD SUCCESSFUL
Total time: 3 seconds
Logged In: NO
Unfortunately the stylesheet contained in the ajaxforms.jar library doesn't work with other transformers than the default transformer contained in the JDK 1.5.
Therefore it is not possible to integrate this library into an application server that uses Xalan 2.6.0 or greater.
The problem is that the stylesheet differs from the XSLT specification as follows:
Line 469:
<xsl:apply-templates select="xforms:label">
<xsl:if test="$appearance = 'minimal'">
<xsl:with-param name="appearance">field-minimal</xsl:with-param>
</xsl:if>
</xsl:apply-templates>
The element <xsl:apply-templates> may only contain <xsl:sort> or <xsl:with-param> elements, but no <xsl:if> element. In accordance with the specification:
<xsl:choose>
<xsl:when test="$appearance = 'minimal'">
<xsl:apply-templates select="xforms:label">
<xsl:with-param name="appearance">field-minimal</xsl:with-param>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise >
<xsl:apply-templates select="xforms:label"/>
</xsl:otherwise>
</xsl:choose>