T
Trygve
I'm trying to convert a XML-document using XSLT. Depending on the source
file (the XML-document)
the conversion is either correct or incorrect. If the first tag in the
document contains an non
empty xmlns attribute:
<Meldekorttype xmlns="http://myhost.com/mk_print_meldekort.xsd">
<tag1>Value1</tag1>
<tag2>Value2</tag2>
</Meldekorttype>
the conversion is incorrect, i.e. only the values of each tag (Value1,
Value2) are printed to the output.
If I remove the xmlns attribute of the first tag:
<Meldekorttype xmlns="">
<tag1>Value1</tag1>
<tag2>Value2</tag2>
</Meldekorttype>
the conversion is correct.
In my application I'm not allowed to remove the xmlns attribute, so I'm
stuck. Does anyone
know what causes the problem, or how I can solve it?
Thanks in advance.
Trygve
file (the XML-document)
the conversion is either correct or incorrect. If the first tag in the
document contains an non
empty xmlns attribute:
<Meldekorttype xmlns="http://myhost.com/mk_print_meldekort.xsd">
<tag1>Value1</tag1>
<tag2>Value2</tag2>
</Meldekorttype>
the conversion is incorrect, i.e. only the values of each tag (Value1,
Value2) are printed to the output.
If I remove the xmlns attribute of the first tag:
<Meldekorttype xmlns="">
<tag1>Value1</tag1>
<tag2>Value2</tag2>
</Meldekorttype>
the conversion is correct.
In my application I'm not allowed to remove the xmlns attribute, so I'm
stuck. Does anyone
know what causes the problem, or how I can solve it?
Thanks in advance.
Trygve