470,836 Members | 1,801 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,836 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:xsl="http://www.w3.org/1999/XSL/Transform" 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(Template.java:
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 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:

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 2526

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
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.