DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12114>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12114 Redirect does not output xmlns declaration ------- Additional Comments From [EMAIL PROTECTED] 2002-08-28 08:27 ------- WORKAROUND Possible workaround, from David Marston: > One way that works for XSLT 1.0 is to add > a junk attribute that is qualified to a namespace: > <xsl:attribute name="prefix:junk" namespace="whatever.URI.com"> > This attribute is just here to associate the prefix and URI. > </xsl:attribute> > Place the above within an element that is broad enough in > scope, so that > the namespace declaration will be in effect where you need > it. My comments: this works only if it is OK to change the prefix on the root of the new file. In the above example, it would mean having an output file like this: <?xml ...> <prefix:test xmlns:prefix="foo"/> I cannot do that in my case (because the output file must also validate against a DTD), but this can be a workaround for other people.
