Re: XML parsing error: A node test that matches either NCName:* or QName was expected.

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Wednesday, July 23, 2008, 12:53:31 AM, Denis Bredelet wrote:

> What does this error mean?
[snip]
> javax.xml.transform.TransformerException: A node test that matches
> either NCName:* or QName was expected.
> The problematic instruction:
> ----------
==>> ${.node.@@close_tag} [on line 11, column 1 in template.ftl]
> ----------

Following the XML official terminology, it's not called @@close_tag,
but @@end_tag (and there is also @@start_tag, not @@open_tag). (The
cryptic error message was generated by not FreeMarker, but Xalan,
because when FreeMarker's XML wrapped doesn't understand the
expression, it forwards it to Xalan. Or to Jaxen... BTW, Jaxen is
better for FreeMarker.)

-- 
Best regards,
 Daniel Dekany


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.