Hi Olivier,
I have tried using the header you provided in my sample and it works for me.
Can you please attach a complete faling sample?

Thanks!

Yash Talwar
XSLT Development / Xalan
IBM Toronto Lab
EMail: [EMAIL PROTECTED]
Phone #:  905-413-5920



"Olivier Guillet" <[EMAIL PROTECTED]>

12/02/2005 09:58 AM

To
<[email protected]>
cc
Subject
Problem with namespace syntax





Hello,

I am trying to make my stylesheet work with Xalan (I used Saxon until now) and encountered following problem:

Xalan (2.7.0) does not accept 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 think it's because of the "//" as everything works fine if a remove them (from the stylesheet and the XML input file).

Here is the complete stylesheet header:
<xsl:stylesheet
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:UML="//org.omg/UML/1.3"
version="1.0" >

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?
2) Is there a workaround I could use?

Thanks for any help!

Regards
Olivier Guillet











Reply via email to