Re: [xsl] xmlns attr for element nodes creating problem with xslt

Subject: Re: [xsl] xmlns attr for element nodes creating problem with xslt
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 23 Apr 2007 12:54:22 +0100
Your posted input file was not well formed (last two lines in wrong
order) that's always worrying as it means that your actual problem was
presumably in a different file. Cutting down the posted input is good,
but please check that the posting does show the problem.

If I make your posted input well formed and run the stylesheet you
posted, I get the result that I assume you wanted.


$ saxon rowset.xml rowset.xsl
<?xml version="1.0" encoding="utf-8"?><INDEX version="1.0">
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX><INDEX xmlns:doc="http://xmlns.oracle.com/ku"; version="1.0">
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>

Your subject line indicated a problem with an xmlns default namespace
declaration, but your posted input did not have any such declaration.
If your real input does, then see the FAQ entry
http://www.dpawson.co.uk/xsl/sect2/N5536.html#d7594e655

David

Current Thread