[Xml-compile] xsi:type woes
Mark Overmeer
mark at overmeer.net
Wed Mar 4 13:14:23 GMT 2009
* Petar Shangov (pshangov at yahoo.com) [090303 17:08]:
> Maybe for the update call you can use an 'after' hook (see how they
> work in XML::Compile::Translate::Writer) and add the xsi:type attribute
> directly on the xml node (via the XML::LibXML interface).
You also need to apply a different writer when an xsi:type is provided.
With xsi:type, you are permitted to specify any type which inherits from
the base type. There can be many of those... for instance, all types
extend xsd:anyType. The processing of each element would need an
additional big switch for the case that xsi:type is being used.
See the problem with performance and memory use?
xsi:type frustrates translators implemented as a functional compiler.
It is simple to implement in a message interpreter written in a real
OO language.
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark at Overmeer.net solutions at overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net
More information about the Xml-compile
mailing list