Hallo Henry,
Thanks a lot for the information!
I will take a look at XSLTC.
Best regards
Olivier
-----Original Message-----
From: Henry Zongaro [mailto:[EMAIL PROTECTED]]
Sent: Mon 12/12/2005 3:01 PM
To: Olivier Guillet
Cc: [email protected]
Subject: Re: Error when using XMI Namespace
Hi, Olivier.
"Olivier Guillet" <[EMAIL PROTECTED]> wrote on 2005-12-12
05:04:22 AM:
> I am trying to make my stylesheet work with Xalan (I used Saxon
> until now and everything is working well) and encountered following
> problem: Xalan (2.7.0) seems to have a problem with following
> namespace declaration: xmlns:UML = "//org.omg/UML/1.3".
> I get the error message "A node test that matches either NCName:* or
> QName was expected".
>
> I have no influence on the UML namespace as it is generated from a
> tool (XMI export function from Borland Together).
>
> Here are my questions:
> 1) Is the syntax "//" correct for a namespace i.e. should Xalan
> support it? Or does Together use a wrong syntax?
That UML URI reference is a relative URI. The W3C has deprecated the
use of relative URIs in namespaces - see [1,2] - but Xalan-J Interpretive
ought to handle them correctly. However, the interpretive processor
should be processing them correctly. This is a known problem; see Jira
issue XALANJ-2100.[3]
> 2) Is there a workaround I could use?
XSLTC doesn't have this problem, so the easiest work-around might be
to use that processor instead. Another work-around would be to rewrite
your name tests from the form "UML:foo" to "*[local-name()='foo' and
namespace-uri='//org.omg/UML/1.3']" which is, admittedly, not very pretty.
Thanks,
Henry
[1] http://www.w3.org/XML/xml-names-19990114-errata#NE09
[2] http://www.w3.org/2000/09/xppa
[3] http://issues.apache.org/jira/browse/XALANJ-2100
------------------------------------------------------------------
Henry Zongaro Xalan development
IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]
Title: RE: Error when using XMI Namespace
- Error when using XMI Namespace Olivier Guillet
- Re: Error when using XMI Namespace Henry Zongaro
- RE: Error when using XMI Namespace Olivier Guillet
