Dominique Devienne writes:
>...I transform a dependencies.xml file into several
>Ant build.xml files using a stylesheet...
>Adding xsi-related attributes ensured proper validation of the document
>...all elements of my source document which are copied as-is to
>the generated build.xml files now include an extraneous
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" declarations in
>them...
>How can I get rid of these xmlns:xsi declarations showing up every
>time I use <xsl:copy-of>???
>I tried using exclude-result-prefixes as shown below to no avail...
That's usually a sign that the namespace declaration was needed,
because exclude-result-prefixes only takes effect for namespace
declarations that were safe to omit, and it's really for use with
literal result elements (LREs). Part 2 of my developerWorks article
on namespaces at
http://www-106.ibm.com/developerworks/library/x-nmspace2.html
steps through the different ways to rename elements while "copying"
them from source to result, and may give you additional ideas.
.................David Marston