Hello, I've run into a problem with processing ready-made XML documents. Namely, I have to modify some data contained in SVG images produced by Corel Draw.
The issue is that the input document does not have any namespace declaration and has a DOCTYPE present. With this data on input I cannot match any element with its tagname. The only catch that matches anything is node(), but it is not the best way to program XSL... If I remove the DOCTYPE declaration from the source document - then everything is ok, and any element is matched with its tagname without any namespace prefix. If I do not remove DOCTYPE - nothing helps, and I could not find a combination of namespace declaration in the stylesheet that would work. There is a strange thing about the resulting document - it has a namespace declaration inside, but a weird one: <svg xmlns="%SVGNamespace;" ... > Another strange thing is that if I make a dump of input data using match="node()" and then examining name(), local-name() and namespace-uri() - namespace-uri is shown as empty. And still matching by tagname does not work. Any ideas? What is wrong - me, Corel or Xalan ? :) Is it a case for studying XSL programming or filing a Xalan bug? :) Sample SVG file is attached. Regards, Sergey
<<attachment: sample.svg>>
