|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: The Goals of XML at 25, and the one thing that XMLnow
On Wed, Jul 21, 2021 at 9:19 PM Rick Jelliffe <rjelliffe@allette.com.au> 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] |
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
|
|||||||||

Cart








