xslt - Exclude namespace declaration from result of XSL transform -


I am generating an XML document in parts using different conversions. Specifically, I am generating a header that contains all namespace announcements and then gets ready for the document. However, the result is not known about this and thus sticks to another declaration. This will not usually be a problem, but millions of these things have been generated and stored in a database, thus, it is temporarily annoying about unnecessary announcements.

How do I declare namespace? I have seen the excluded-result-prefix attribute, but for this state the announcements of the namespace that used to be added will be added anyway, which looks random to the option.

The output of an XSLT conversion will always create XML (well-known) XML. If you want to do something that you do not want, then you are a loser.

I will question your design. It's a bad idea, the result of which seems like you are starting to search.

Comments