[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [higgins-dev] Improving Higgins XDI syntax
|
On Fri, Aug 6, 2010 at 7:06 AM, Paul Trevithick
<ptrevithick@xxxxxxxxx> wrote:
Thanks very much Drummond!
But I think you missed your name on this section (see red below):
On Aug 6, 2010, at 1:16 AM, Drummond Reed wrote:
Similarly, since in every case above there is only a single value for a literal, every section that looks like this:
<xdi:xdi>
<xdi:s xri="$value$hash$sha$256!0a38e8a3c328b1616ac3c34720d0ceb578bd3f5e8bfff9841bb0804dd4d2b5eb">
<xdi:p xri="$value">
<xdi:data><![CDATA[55555-1234]]></xdi:data>
</xdi:p>
</xdi:s>
</xdi:xdi>
</xdi:p>
...should look like this:
<xdi:data><![CDATA[55555-1234]]></xdi:data> <-- Drummond/Markus please verify
</xdi:p>
Paul, sorry I missed this. Yes, the <xdi:data> tags are correct XDI XML serialization syntax for expressing a literal. However what I can't comment on is the use of the CDATA format. I'm pretty sure Markus did that because the XDI serializer has no way of knowing whether the value for a literal contains XML markup characters, and thus the only way to make sure they do not interfere with the XML serialization is to encapsulate them in a CDATA structure. But for many XDI literals that would not be necessary, in other words, it could look like this:
<xdi:data>55555-1234</xdi:data>
</xdi:p>
The only requirement for the serialization code to produce this is to know that the literal value is "XML safe".
Hope this helps,
=Drummond