By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,312 Members | 1,877 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,312 IT Pros & Developers. It's quick & easy.

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

P: n/a
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:output 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.parseCo ntents(XslElement.j
ava:88)
at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.par seChildren(SyntaxTr
eeNode.java:409)
at org.apache.xalan.xsltc.compiler.Template.parseCont ents(Template.java:
247)
at org.apache.xalan.xsltc.compiler.Stylesheet.parseOw nChildren(Styleshee
t.java:555)
at org.apache.xalan.xsltc.compiler.Stylesheet.parseCo ntents(Stylesheet.j
ava:527)
at org.apache.xalan.xsltc.compiler.Parser.createAST(P arser.java:380)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLT C.java:325)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLT C.java:234)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLT C.java:370)
at org.apache.xalan.xsltc.cmdline.Compile.main(Compil e.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 (jp******@sfu.ca)

Thank you greatly!

Jordan Willms
Jul 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.