Namespace checking is disabled on a server that handles XSL transformations (because the guy who wrote XSL did not understand the namespace). I have to make changes to XSL, but I cannot verify it because there are no namespaces, that is.
Instead
<xsl:template match="ns:element[position()=1]">...
he has
<xsl:template match="element[position()=1]">...
so that it does not match any of the elements in XML, because all of them are qualified with namespaces.
I can not check on the server because I do not have access to it. Do not use fix XSL because then namespace validation must be enabled and this will ruin all other conversions.
So what I need to do is find a way to ignore namespaces during XSL conversion. I have access to MSXML, XMLSpy (I can’t find an option here), and if I really need to, I can sign something in C # or in a similar language.
As a last resort, I can code several regular expressions, but I really do not want to go this route, especially when working with XML ...
In response to a comment on more details:
This is a Windows 2003 virtual server that launches an instance of Servet Methode (www.eidosmedia.com). I do not know which method this servlet uses to perform XSL transformations. They ignore namespaces because the person who originally wrote XSL did not understand them and did not include them in XSL. So, now all XSL files (hundreds) do not have namespaces.
It can be an interesting task to fix all these files at once, but that’s not what I need right now (and the department head will never agree to this anyway due to the amount of testing). All I want to know is an accessible tool (or technique) that will allow me to use these XSL files as they are and use them to convert the corresponding XML document without considering namespaces. It seems to me that the tool must exist, because the guy who wrote the original XSL had to use something similar to test the transforms themselves.
xml xslt
ilitirit
source share