W3C home > Mailing lists > Public > public-sml@w3.org > February 2008

sml:ref vs xlink

From: <zamp\@libero\.it>
Date: Wed, 27 Feb 2008 13:22:19 +0100
Message-Id: <JWWD17$E3C6F7AC5C3A8BD9E4154FE6FF8EB82D@libero.it>
To: "public-sml" <public-sml@w3.org>

I All,

recently I have read SML specification and in particular sml reference mechanism in XML instance document. However I don't understand the reason of introducing a new mechanism instead of using xlink.

Are there some advantages in using sml:ref?
If yes...which ones?

That is to say...about this example:

<EnrolledCourse sml:ref="true">
    <Name>PHY101</Name>
    <Grade>A</Grade>
    <sml:uri>     http://www.university.example.org/Universities/MIT/Courses.xml
		#xmlns(u=http://www.university.example.org/ns)
		xpointer(/u:Courses/u:Course[u:Name='PHY101'])
    </sml:uri>
</EnrolledCourse>

Why not like that?

<EnrolledCourse>
    <Name>PHY101</Name>
    <Grade>A</Grade>
    <environment xmlns:xlink="http://www.w3.org/1999/xlink" 
        xlink:type="extended">
        <course xlink:type="locator" xlink:label="course"
xlink:href="http://www.university.example.org/Universities/MIT/Courses.xml
	    #xmlns(u=http://www.university.example.org/ns)		    xpointer(/u:Courses/u:Course[u:Name='PHY101'])"/>
    </enviroment>
</EnrolledCourse>



Best regards..

Travis
Received on Wednesday, 27 February 2008 19:50:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:56:09 UTC