Problem with translator namespace use

0 views
Skip to first unread message

Ashok Hariharan

unread,
Sep 8, 2009, 3:48:15 AM9/8/09
to akomantoso-dev
HI Luca,

I am having a namespace issue with the translator.

See the attached xslt file and the metalex file.

This translates correctly both within oxygen and if i use saxon from a
commandline on the metalex file and the ref.xsl xslt....

However the same thing fails within the translator with 'undeclared
namespace prefix' for the metalex ml: prefix...

If you notice the prefix is set in the xsl:stylesheet header of
ref.xsl ... but i noticed that the translator substitures the
namespace of the elements in between
metalex -> akn translation ... Can you explain this a bit more to me
and why you are doing this ... as the problem appears to be related to
that ?

Ashok

test_judgement_header.mlx
ref.xsl

Ashok Hariharan

unread,
Sep 8, 2009, 3:59:37 AM9/8/09
to akomantoso-dev
Okay, I found a solution for this, I set the namespace in the pipleline:

xmlns:ml="http://www.metalex.org/1.0"

(see attached pipeline file).

I am not sure if this is the right way though.

Ashok

pipeline.xsl

Luca Cervone

unread,
Sep 8, 2009, 4:13:16 AM9/8/09
to akomant...@googlegroups.com
Dear Ashok, 
Sorry for the delay into the replay.
This week I'm at the summer school in Florence. 
So I have not to much time to work :-(

I'll see into the problems that you posted as soon as possible. 

Sorry. 

ciao
Luca
 
<pipeline.xsl>

Luca Cervone
Web and XML solutions designer

e-mail:     cervo...@gmail.com

mobile phone:    0039 348 26 27 545
home   phone:  0039 051 199 82 854

skype:   cervoneluca



Reply all
Reply to author
Forward
0 new messages