473,396 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2605

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ted | last post by:
Was wondering if XSLT alone is appropriate for the following situation. From XML, I'm creating a small website (around 50 pages) with pages that link to each other through a nav menu and a...
1
by: Mohit | last post by:
Hi Friends I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by...
0
by: Mike | last post by:
I'm generating an XSLT document programatically in VB.Net. I'm then trying to apply that XSLT against a cXML document to generate my own internally developed XML document. I'm using RichTextBox...
6
by: RC | last post by:
Hello World, I am try do call a JavaScript function from XSLT, but I got function not avaible error. See "????" below. Would someone out there tell me how? Thank Q! <xsl:stylesheet...
5
by: shauldar | last post by:
Is there a way (tool, hack...) to create an XSL:FO from an XSLT + XML files? My motivation is that we want to use a tool to design reports, and from that "design" generate both HTML (via XSLT)...
4
by: Anders Borum | last post by:
Hello! With XSLT 2.0 in the pipeline at the W3 consortium, I'm wondering if Microsoft is planning to support it with the next release of the .NET framework? It sure looks like a promising set of...
4
by: Moogy | last post by:
I'm pulling my hair out here. First, I'm new to XML, so that doesn't help, but none of this makes any sense to me. All I'm trying to do is take a simple source XML file and translate it with an...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
1
by: Sergey Dubinets | last post by:
In effort to prioritize our goals we composed the list of random features each of them may add value to set of XSLT tools offered from Microsoft. 1. XSLTc (Compiler for XSLT...
3
by: shaun roe | last post by:
mild rant follows Working now for a couple of years with xslt and now xslt 2.0, does anyone else get the impression that xslt 2.0 somehow missed the point? Yes its got a fancy new data model...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.