XSLT-C problems. Can't get to compile.

J

Jordan Willms

My xsl stylesheet is as simple as follows:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:ims="http://www.imsglobal.org/xsd/imsmd_v1p2"
xmlns="http://ltsc.ieee.org/xsd/LOMv1p0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:eek:utput method="xml" version="1.0" encoding="ISO-8859-1"
indent="yes"/>
<!-- rename ims datetime tags to IEEE dateTime tags -->
<xsl:template match="ims:datetime">
<xsl:element name="dateTime">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

However, I get the following error when trying to compile with XSLT-C:

C:\xalan\bin>java org.apache.xalan.xsltc.cmdline.Compile -x -j
ims2ieee.jar ims2
ieee.xsl
java.lang.NoSuchMethodError:
org.apache.xml.utils.XMLChar.isValidQName(Ljava/lan
g/String;)Z
at org.apache.xalan.xsltc.compiler.XslElement.parseContents(XslElement.j
ava:88)
at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.parseChildren(SyntaxTr
eeNode.java:409)
at org.apache.xalan.xsltc.compiler.Template.parseContents(Template.java:
247)
at org.apache.xalan.xsltc.compiler.Stylesheet.parseOwnChildren(Styleshee
t.java:555)
at org.apache.xalan.xsltc.compiler.Stylesheet.parseContents(Stylesheet.j
ava:527)
at org.apache.xalan.xsltc.compiler.Parser.createAST(Parser.java:380)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:325)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:234)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:370)
at org.apache.xalan.xsltc.cmdline.Compile.main(Compile.java:140)
Compiler errors:
org.apache.xml.utils.XMLChar.isValidQName(Ljava/lang/String;)Z

I believe this to be caused by the fact that I am trying to target a
specific namespace (<xsl:template match="ims:datetime">). I believe
this because I took out the "ims:" prefix and it compiled. However...
the ims: prefix is essential.

Anyone know what I am doing wrong? Can anyone make a suggestion so
that this will work? Please email me if you can help ([email protected])

Thank you greatly!

Jordan Willms
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top