- From: Rick Jelliffe <rjelliffe@a...>
- To: "Costello, Roger L." <costello@m...>
- Date: Tue, 21 Nov 2017 10:24:01 +1100
No.
But what makes entities offensive? Seems like the appropriate technology to use.
In Schematron, you can put the text portions into variables and combine them. But it is ultimately still just text substitution (macros). XSD doesn't provide simple macros, but it doesn't need to, because XML does with entities. The class-based programming movement in the 80s said that it would be better to figure out all the cool things that macros (ccp, m4, etc) were used for should be elaborated into first-class language constructs for better clarity, power etc. Hence C++ and OOP. XSD is the last gasp of this movement. The trouble is that there are uncountable things people can do with even simple macros: it severely restricts the expressivity (though not the power) of the language to not have any macro mechanism. (Schematron has 3 kinds of macros, if anyone is interested: simple macros with XPath variables and abstract rules, and parameterized macros with abstract patterns. You might say Schematron itself is a macro, actually...) Regards Rick
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
|