[Home] [By Thread] [By Date] [Recent Entries]
On Wed, Jul 21, 2021 at 9:19 PM Rick Jelliffe <rjelliffe@a...> wrote:
Round-tripping with XML, JSON, or anything else is explicitly a non-goal, though it is not an anti-goal in the sense that the FtanML designers were forbidden to do so.
Actually it isn't. The value types null, boolean, string, and list are shared (and can be round-tripped through XML using xsi:null and xsi:type). However, there is no JSON equivalent to a FtanML rich-text value (it is not the same as a list of strings-and-elements). Furthermore, although a FtanML element can emulate a JSON object, it extends one in three ways:
The last two points greatly simplify the RELAX NG style schema language, FtanGram, making it look more like Examplotron, as well as the XSLT analogue, FtanSkrit. For example, here is part of the FtanGram schema for a FtanML version of the infamous purchase-order example: <element form=<purchaseOrder
shipTo=<addressType>
billTo=<addressType>
comment=<nullable<text elements=<inlineType>>>
items=<occurs=[1,] <itemType>>
>
This declares the constraints on an element named purchaseOrder, namely that:
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



