468,117 Members | 1,848 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,117 developers. It's quick & easy.

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

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
0 2388

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by ted | last post: by
reply views Thread by Mike | last post: by
5 posts views Thread by shauldar | last post: by
4 posts views Thread by Anders Borum | last post: by
4 posts views Thread by Moogy | last post: by
7 posts views Thread by Harolds | last post: by
1 post views Thread by Sergey Dubinets | last post: by
3 posts views Thread by shaun roe | last post: by
10 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.