[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Apache needs help
Yes, but No. The underlying root cause was XSD 1.0 was simply not up to the job. It keys typing off the element name, which makes it useless for the large class of documents that require generic schemas (where the type is determined by something else as well as the element name.) Having been sold that it is all whizbang, adoptors in that situation then find it is no more expressive than DTDs, as far as this kind of structure is concerned. The design flaw in this is actually in their plugin system, I think. It should have a validation function that allows the XML branches to be validated by the relevant plugin. Or to supply the schema fragment for the plugin, which would be assembled into the effective schema dynamically to support the validation. I don't think the idea of the XSD is wrong, at all. Having a schema is good. But someone could fruitfully go through it and the code and add more specific elements to the XSD, instead of the generic ones. They added one specific Appender in this regard recently (for Console). Ok, so I put up a little post that might be a good start for anyone wanting to look at this: http://schematron.com/2018/05/sorting-out-log4j-2-0s-strict-schemas/ Regards Rick On Tue, May 8, 2018 at 6:19 PM, Michael Kay <mike@saxonica.com> wrote:
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|