Re: [xml-dev] Please stop writing specifications that cannot be parsed/processed by software

From
Tony Graham <>
To
Date
2023-05-26T07:26:13Z
ID
<>
Thread
Re: [xml-dev] Please stop writing specifications that cannot be parsed/processed by software
On 26/05/2023 01:03, Michael Kay wrote:
>> no-one has to invent something new to get what you are asking for
> 
> But if you're prepared to invent something new then you can probably 
> do better...
> 
> For example, the XPath function library is defined in an XML
> document that contains all the function signatures in a custom
> vocabulary reflecting the object model for XPath functions, and that
> data is extremely useful; it can be used for example to create the
> data used by a type-checker. I'm sure there are cases where an XML
> format can be standardised across a wide range of specifications (for
> example, a format for defining BNF grammars) but I'm sure that
> highly specialised custom formats also have a role to play.

focheck [1], for validating XSL-FO documents, generates both RELAX NG
and Schematron from the XML for the XSL 1.1 Recommendation.

Long before that, the xmlroff XSL formatter generated C code from the XML.

Regards,


Tony Graham.
-- 
Senior Architect
XML Division
Antenna House, Inc.
----
Skerries, Ireland



[1] https://github.com/AntennaHouse/focheck