xml - How can I exclude elements with xsi:nil="true" from a transformation? -


I have some XML files that have been recently changed so that in some nodes Extra xsi: nil = "true" . I've got an XSLT style sheet that provides XML for HTML for quick-eye statistics. In order to make things easier for myself in the present time, I take the names out of XML before applying a style sheet. It worked fine till our last update. Now I am getting an error because XSL does not know how to handle XSL: Niil = "True".

I can easily update the code so that all of my XSL: "true" matches in XML before zero, but I was thinking that it is possible to hide the XSLT style sheet, so that the XSIL is ignored Given / can not be the reason for failures of change, even if there is no name space XML I like to work like this because now I can make changes on the server, where I have to release a new web build, I have to jump through some internal hoops to deploy it.

After I'm working on things (either XSL: by removing Neil before or after the transcutter) I will look back to the circle and find out why I removed the original names and it was ok Done

Thanks for any help, please give it to me.

Why did you remove the name space from the first place? XSLT lets you control why the prefixes will not be placed in the output, and you can leave them in the xsi: nil stylesheet well.

If there is no namespace prefix declaration xsi prefix, XML is not valid, so either you are working with invalid XML or you have some XSI namespace announcement anywhere , And you can change XSLT to drop those entries.

If you substitute a search on the XML source, then inevitably, fix it later (soon!), Because such things are going to break your neck.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -