Subject: RE: Unrecognised namespace beginning with '//'
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 13 Apr 2005 12:35:05 +0100
|
At first sight this looks like a Xalan bug, but one can't be sure without
seeing the full stylesheet, especially line 135.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Jan Rihak [mailto:jrihak@xxxxxxx]
> Sent: 13 April 2005 11:06
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Unrecognised namespace beginning with '//'
>
> Hi list,
>
> I'm working on transformations on XMI files generated by Borland
> Together 6.2. This modeling and code generation tool
> generates XMI files
> with the following namespace declarations:
>
> <XMI xmi.version = '1.1' xmlns:UML = '//org.omg/UML/1.3'>
>
> My XSLT transformation file starts with:
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:UML='//org.omg/UML/1.3'
> xmlns:uml='omg.org/UML/1.4'
> xmlns:xalan="org.apache.xalan.xslt.extensions.Redirect"
> extension-element-prefixes="xalan"
> exclude-result-prefixes="UML"
> version="1.0">
>
> The 'uml'-namespace is used for the output document. Further,
> I use the
> xalan XSLT processor to process the transformation. Now, xalan outputs
> the following error message, when processing the input file
> with my XSLT
> transformation file:
>
> SystemId Unknown; Line #135; Column #43; XSLT Error
> (javax.xml.transform.TransformerConfigurationException):
> javax.xml.transform.TransformerException:
> javax.xml.transform.TransformerException: A location step was expected
> following the '/' or '//' token.
>
> When I omit the double slash in the namespace declarations of
> the input
> XMI document and the transformation file, e.g.
> xmlns:UML='org.omg/UML/1.3' the transformation works fine, no error is
> output.
>
> Are there any ideas how I could get the transformation to work without
> modifying the XMI file generated by Borland Together 6.2?
>
> Thank you in advance, best regards,
> Jan
>
>
> --
> Jan Rihak
> email: jrihak@xxxxxxx
> phone: 0041 (0)79 315 35 26
|