[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Elements with explicit behavior versus elements thatcontain data used to produce behavior
- From: Roger L Costello <costello@mitre.org>
- To: XML Developers List <xml-dev@lists.xml.org>
- Date: Wed, 8 Feb 2023 11:43:31 +0000
Michael Kay wrote:
----------------------------------------------
Consider three English sentences:
(a) There are tomatoes in the fridge.
(b) Go to the shop and buy more tomatoes.
(c) How many tomatoes are there in the fridge?
English is flexible: A sentence can provide information, give instructions, or ask questions.
XML is equally flexible.
----------------------------------------------
That is excellent.
My <airport> use case is an example of (a). The <airport> element provides information. An aircraft flight management system (FMS) uses that information to fly the airplane.
My <xsl:value-of ...> use case is an example of (b). The <value-of> element is an instruction. An XSLT processor reacts to the presence of that element with a certain specific defined behavior.
What is an example of (c)? What XML asks a question?
/Roger
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]