Re: HELP! XT is putting namespaces in output tag attributes ...

Subject: Re: HELP! XT is putting namespaces in output tag attributes ...
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 28 Jan 2000 18:06:54 GMT
> My understanding is as follows:

> ...
> - if the processor waited until it came to a bunch of elements that 
> needed a namespace declaration

also there is no other way to put a namespace declaration into the
output except for this rule. You can not just rely on the serializer to
put out namespace declarations when needed as it doesn't know when they
are needed, due to this xslt inspired habit of languages using qnames
in attribute values. 

If my stylesheet puts out a literal result element of 
<foo x="a:test.xsl"/> then does it need a namespace declaration for a:
answer is yes or no, depending on the semantics of the x attribute in
the target language. Probably the above example th eanswer is no, but if
`foo' was xsl:value-of and `x' was `select' then the answer is yes.

So the only safe thing is to put all possible namespace declarations 
into the output.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread