Index of /2007/xml/sml

, SML XML Schema This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/. SML 3. Examples SML XML Schema RFC 3986 An SML reference is identified as an instance of the SML XLink Reference Scheme if and only if all of the following conditions are true: The content of xlink:href is of type XSD Datatypes The fragment component (if present) follows the syntax of one of the following: SML An XPointer shorthand pointer An
[ICO] Name The SML XLink Reference Scheme W3C Working Group Note 30 June 2009 This Version: http://www.w3.org/TR/2009/NOTE-sml-xlink-ref-scheme-20090630 Last modified Latest Version: http://www.w3.org/TR/sml-xlink-ref-scheme Size Editors: Pratul Dublish, Microsoft Corporation Len Charest, Microsoft Corporation Copyright Description © 2009 W3C
® (
MIT
ERCIM [PARENTDIR] , Keio ), All Rights Reserved. W3C liability , trademark and document use rules apply. [Jump to Table of Contents] Parent Directory Abstract The Service Modeling Language [   -  
] specification extends the Extensible Mark-up Language [ [TXT] XML README.html ] and XML Schema [ 2009-09-10 20:07 4.6K  
] with a mechanism for incorporating into XML documents references to other documents or document fragments. This technical note addresses the construction of an SML reference scheme based on the XML Linking Language [ [ ] XLink build.xml ]. Status of this Document 2009-01-25 04:52 10K  
This is the W3C Working Group Note "The SML XLink Reference Scheme". This document was produced by the SML Working Group as part of the XML Activity . Please submit comments on this document using the procedure described on the Working Group's home page . In summary, the Working Group solicits comments in Bugzilla from those who have access, and on the Working Group's public mailing list ( public archive ) from others. Publication as a Working Group Note does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress. This document is intended to illustrate the design of an SML reference scheme based on XML Linking Language [ [DIR] XLink build/ ] links. Currently, this document is consistent with the Service Modeling Language (SML) 1.1 specification [ 2009-04-22 16:18 -  
] and the Service Modeling Language Interchange Format (SML-IF) 1.1 specification [ [ ] SML-IF ], but it may be obsoleted by future versions of these specifications. The SML WG does not expect this document to become a W3C Recommendation. This document was produced by a group operating under the 5 February 2004 W3C Patent Policy . W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy . Table of Contents 1. Introduction common.dtd 2. SML XLink Reference Scheme Definition 2009-04-22 16:15 1.0K  
A. References [ ] 1. Introduction [Back to Contents] diffmk.xml The Service Modeling Language [ 2007-06-05 18:10 4.9K  
] specification extends the Extensible Mark-up Language [ [TXT] XML epr-note.html ] and XML Schema [ 2009-06-26 17:05 52K  
] with a mechanism for incorporating into XML documents references to other documents or document fragments. A reference to another document or document fragment is encoded by means of markup compliant with one or more reference schemes as defined in SML ([ [DIR] SML extra/ ], section 4.3). The SML specification defines one reference scheme, the SML URI Reference Scheme, which enables XML documents to use URIs [ 2009-04-22 16:18 -  
[ ] namespace-if-source.xhtml ] to identify documents or document fragments. The SML URI Reference Scheme has the significant advantage of guaranteeing referential conformance 2007-06-05 18:10 2.3K  
[ ] namespace-source.xhtml of models that are exchanged between vendors ([ SML-IF 2008-01-17 21:21 2.3K  
[ ] participants.rdf ], section 5.1). The SML specification does not mandate the use of any specific reference scheme, and provides an extensibility mechanism for defining new reference schemes. This note illustrates how the extensibility mechanism can be used to define an SML reference scheme based on XLink links. Note: The xlink prefix is used throughout this document to stand for the declaration of the XLink namespace on elements in whose scope the so-marked attribute appears (on the same element that bears the attribute or on some ancestor element), whether or not an XLink namespace declaration is present in the example. 2. SML XLink Reference Scheme Definition [Back to Contents] 2009-04-22 11:19 1.3K  
[ ] previous-participants.rdf The SML XLink Reference Scheme is defined as follows: 2009-04-22 11:19 2.0K  
It has an attribute information item whose [ local name [ ] sample-model-source.xsd ] is type , whose [ namespace name 2008-04-16 07:16 6.5K  
[ ] sml-if-source.xml ] is http://www.w3.org/1999/xlink , and whose content is the string simple . It has an attribute information item whose [ local name 2009-04-22 11:19 89K  
[ ] sml-if-source.xsd ] is href , and whose [ namespace name 2009-01-28 19:24 8.8K  
[ ] sml-source.xml ] is http://www.w3.org/1999/xlink . An instance of the SML XLink Reference Scheme is valid if it meets all of the following requirements: 2009-04-22 11:19 153K  
xs:anyURI [ ] sml-source.xsd [ 2009-04-17 22:42 6.0K  
[DIR] tests/ ]. 2009-10-13 18:03 -  
The [DIR] smlxpath1() tools/ XPointer scheme as defined in [ 2007-07-10 15:56 -  
[TXT] xlink-note.html ] 2009-10-13 18:03 22K  
[ ] xmlspec.dtd as defined in [ XPointer 2007-06-05 18:10 80K  
[DIR] xsl/ ] 2009-04-22 11:17 -  

SML <del class="diff-old">reference that is an instance of </del> <ins class="diff-chg">Editors README </ins>

SML README

Look at the Eclipse documentation to configure your editing tool. SML XLink Reference Scheme is resolved using uses the following steps: public CVS Repository (dev.w3.org). You want to check out 2007/xml/sml .

Files

Let U be the URI reference that is the content of xlink:href . Let S be the specification that defines the URI scheme of U . An XML document D is obtained as follows: sml-source.xml : contains the main source for SML 1.1.

If U is a same-document reference, then D is the document containing sml-if-source.xml : contains the main source for SML reference. Otherwise, D is determined as follows: IF 1.1.

If U is a relative reference, then let U′ be the result of transforming U to form an (absolute) URI using the [base URI] property [ XML Infoset ] of *.xsd : contains the XML Schema documents associated with SML reference element as the base URI. Otherwise, let U′ be U (i.e., the URI reference itself). The computation of the [base URI] property is implementation-defined. and SMLF IF

Dereference U′ as defined in S . If the document targeted common.dtd : contains values used by U′ is in the current SML model, then D is that document. Otherwise, files above. Modified this file if you're going to publish a public version of the document is not in on /TR.

namespace*.xhtml : contains the current namespace documents associated with SML model, then the and SML XLink Reference Scheme instance is unresolved (and D has no value). IF.

Note: If *.rdf : contains the retrieved object is not list of XML media type or if it is not well-formed XML then, per the definition current and previous participants in section 2.2 of [ SML ], that object is not a document. In this case, the SML reference scheme instance is unresolved. group.

xmlspec.dtd : the DTD for xmlspec documents, avoid touching it.

If no fragment component extra/ : This directory is present in U , the SML XLink Reference Scheme instance resolves to used during the root element building of D . the specification, you can safely ignore it.

xsl/ : This directory contains various XSL files used during the transformation

If a fragment component build/ : This directory is present in U , then where the appropriate case among final documents are.

build/ns : This directory is where the following applies: final namespace and schema documents are.

tools/ : This directory contains various jar files used by ant. Don't touch.

If build.xml : the fragment component complies ant file. Works well with ant 1.7 at least.

Ant tasks

Most of the smlxpath1() XPointer scheme syntax, then time, you will use the reference target is obtained by applying task " html ". It takes the fragment component to D , as defined in section 4.3.1.1 of [ SML ]. If sources and produces the fragment component complies with final documents ( build/sml.html and build/sml-if.html ). The " main " task does the shorthand pointer syntax, then same except that it updates the appropriate case among acknowledgments in the following applies: process. The " clean " task will remove all generated contents.

If a target T Note: you might see some warnings, generated by saxon, indicating you're applying XSLT 1.0 style sheets with an XSLT 2 engine. You can be identified safely ignore those here.

The transformation goes through several stages:

  1. validate sml-source.xml and sml-if-source.xml
  2. transform *.xsd into their final form in D based on the schema-determined ID , then build/ns/*.xsd (add copyright information, remove the reference target is T . use of common.dtd , ...)
  3. If transform sml-source.xml and sml-if-source.xml into XML files. It applies xinclude and a target in D cannot be identified based on the schema-determined ID, then it is implementation-defined whether few heuristic to determine some of the reference target in D is identified based on other criteria allowed for shorthand pointers. URIs.
  4. Instances transform the result of the SML XLink Reference Scheme are transformed to target-complete identifiers through standard URI processing, as described in previous action into the applicable RFC for URI generic syntax. final HTML documents: build/sml.html and build/sml-if.html ).
3. Examples [Back to Contents]

Check in

The following example illustrates For an instance of the XLink Reference Scheme: editors' copy: you want to check in sml-source.xml , sml-if-source.xml , *.xsd , build/sml.html , and build/sml-if.html .

<Student> <ID>123</ID> <Name>Jane Doe</Name> <EnrolledCourses> <EnrolledCourse xmlns:sml="http://www.w3.org/ns/sml" xmlns:xlink="http://www.w3.org/1999/xlink" sml:ref="true" sml:nilref="false" </EnrolledCourse> </EnrolledCourses> </Student>

Here, the EnrolledCourse element is For a valid instance of the SML XLink Reference Scheme since the content of xlink:type is simple and the content of xlink:href is of type xs:anyURI . It is also an SML reference since the content of sml:ref is the string true ; publication: you want to check in particular, it is a non-null SML reference since the content of sml:nilref is the string false . The target of the reference is the root element of the XML document obtained by dereferencing http://www.university.example.org/phy101.xml . sml-source.xml , sml-if-source.xml , *.xsd , and *.rdf .

Publication

First, update common.dtd . The following example illustrates an instance of XLink Reference Scheme where the content of xlink:href has a fragment component that follows the syntax of the smlxpath1() XPointer scheme: section should be updated and UNcommented:

<Student> <ID>123</ID> <Name>Jane Doe</Name> <EnrolledCourses> <EnrolledCourse xmlns:sml="http://www.w3.org/ns/sml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:u="http://www.university.example.org/ns" sml:ref="true" sml:nilref="false" xlink:href="http://www.university.example.org/physics.xml #smlxpath1(u:Courses/u:Course[u:Name='PHY101'])" </EnrolledCourse> </EnrolledCourses> </Student>
<!--
<!ENTITY draft.year "2007">
<!ENTITY draft.month "July">
<!ENTITY draft.mm "07">
<!ENTITY draft.day "4">
<!ENTITY draft.dd "04">
<!ENTITY status "wd">
-->

In Then, use the above example, task " publication ". This will create build/sml-specification.zip and build/sml-if-specification.zip . Check the target trace of the reference is the element identified by the path /u:Courses/u:Course[u:Name='PHY101'] in the XML document obtained by dereferencing http://www.university.example.org/physics.xml . A. References [Back to Contents] [RFC-3986] Uniform Resource Identifier (URI): Generic Syntax , T. Berners-Lee, R. Fielding, L. Masinter, Authors. Internet Engineering Task Force, January 2005. Available at http://www.ietf.org/rfc/rfc3986.txt. [SML] Service Modeling Language, Version 1.1 , Bhalchandra Pandit, Valentina Popescu, Virginia Smith, Editors. World Wide Web Consortium, 12 May 2009. This version of ant process closely since the Service Modeling Language Recommendation is available at http://www.w3.org/TR/2009/REC-sml-20090512/. task applies several tests and may tell you if something could need your attention. The latest version of Service Modeling Language, Version 1.1 is available at http://www.w3.org/TR/sml/. [SML-IF] Service Modeling Language Interchange Format Version 1.1 , Bhalchandra Pandit, Valentina Popescu, Virginia Smith, Editors. World Wide Web Consortium, 12 May 2009. This version of zip files contains the Service Modeling Language Interchange Format Recommendation is available at http://www.w3.org/TR/2009/REC-sml-if-20090512/. The latest version of Service Modeling Language Interchange Format Version 1.1 is available at http://www.w3.org/TR/sml-if/ [XLink] HTML documents, their XML Linking Language (XLink) Version 1.0 , Steve DeRose, Eve Maler, David Orchard, Editors. World Wide Web Consortium, 27 June 2001. This version of versions, the XLink Recommendation is available at http://www.w3.org/TR/2001/REC-xlink-20010627/. The latest version of XLink is available at http://www.w3.org/TR/xlink/. [XML] Extensible Markup Language (XML) 1.0 (Fourth Edition) , T. Bray, J. Paoli, C. M. Sperberg-McQueen, namespace documents and E. Maler, Editors. World Wide Web Consortium, 10 February 1998, revised 16 August 2006. The edition cited (http://www.w3.org/TR/2006/REC-xml-20060816) was the one current at the date of publication of Service Modeling Language [ SML ] as schema documents. Note that a Candidate Recommendation. The latest version lot of XML 1.0 is available at http://www.w3.org/TR/xml/ . Implementations may follow the edition cited and/or any later edition(s); it is implementation-defined which editions tests are supported by an implementation. [XML-Infoset] XML Information Set (Second Edition) , John Cowan, Richard Tobin, Editors. World Wide Web Consortium, 4 February 2004. This version of done on the XML Information Set Recommendation is available at http://www.w3.org/TR/2004/REC-xml-infoset-20040204/. The latest version of XML Information Set is available at http://www.w3.org/TR/xml-infoset/. [XML-Schema] The XML Schema definition language (XSD) is specified documents, in particular the following Recommendations from the Word Wide Web Consortium: [XSD-Structures] XML Schema Part 1: Structures Second Edition , Henry S. Thompson, David Beech, Murray Maloney, Noah Mendelsohn, Editors. World Wide Web Consortium, 2 May 2001, revised 28 October 2004. This version of the XML Schema Part 1 Recommendation is available at http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/. The latest version of XML Schema 1.0 Part 1 is available at http://www.w3.org/TR/xmlschema-1/. [XSD-Datatypes] XML Schema Part 2: Datatypes Second Edition , P. Byron pubrules checker . I should take unzip in a temporary web location and A. Malhotra, Editors. World Wide Web Consortium, 2 May 2001, revised 28 October 2004. This version of have the XML Schema Part 2 Recommendation is available at http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/. pubrules checker check that online document. The latest version of XML Schema 1.0 Part 2 is available at http://www.w3.org/TR/xmlschema-2/. [XPointer] XPointer Framework , P. Grosso, E. Maler, J. Marsh, webmaster will run the pubrules checker in any case and N. Walsh, Editors. World Wide Web Consortium, 25 March 2003. This version of will refuse to publish until the XPointer Framework Recommendation is http://www.w3.org/TR/2003/REC-xptr-framework-20030325/ The latest version of XPointer Framework is available at available at http://www.w3.org/TR/xptr-framework/. problems have been fixed.