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=""
xmlns:xsl="" version="1.0">
<xsl:output method="xml" version="1.0" encoding="ISO-8859-1"
<!-- rename ims datetime tags to IEEE dateTime tags -->
<xsl:template match="ims:datetime">
<xsl:element name="dateTime">

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
at org.apache.xalan.xsltc.compiler.XslElement.parseCo ntents(XslElement.j
at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.par seChildren(SyntaxTr
at org.apache.xalan.xsltc.compiler.Template.parseCont ents(
at org.apache.xalan.xsltc.compiler.Stylesheet.parseOw nChildren(Styleshee
at org.apache.xalan.xsltc.compiler.Stylesheet.parseCo ntents(Stylesheet.j
at org.apache.xalan.xsltc.compiler.Parser.createAST(P
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLT
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLT
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLT
at org.apache.xalan.xsltc.cmdline.Compile.main(Compil
Compiler errors:

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******

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.