W3C home > Mailing lists > Public > public-ws-semann@w3.org > May 2006

Re: [issue] schema mapping example with xslt wrong?

From: Joel Farrell <joelf@us.ibm.com>
Date: Mon, 8 May 2006 16:15:41 -0400
To: Holger Lausen <holger.lausen@deri.org>
Cc: SAWSDL WG <public-ws-semann@w3.org>
Message-ID: <OF9C7FA87C.0D94F9C3-ON85257168.006E4BDE-85257168.006F4CF0@us.ibm.com>

Holger,

I agree that mapping language details should be kept in the appendix and
not described in the normative parts of the spec.  The small introductory
example we are going to include in the introduction should not involve
schemaMapping.

You propose that the correct place in the schema to insert the
schemaMapping attribute is on an element that is defined by a complex type,
rather than on the complex type.  I think I agree.

Rama - do you remember the conversations with the XSLT expert that resulted
in this example and if there is any other consideration?

The example [2] below looks correct.

Regards,
Joel

public-ws-semann-request@w3.org wrote on 05/08/2006 02:58:02 PM:

> Hi,
>
> When creating a complete file set [1] out of the current po scenario I
> have detected a mistake in the current xslt examples, respectively in
> the methodology to extend complex types with schema mappings. (Please
> correct me if I am wrong since I am relative new to xsd/xslt&Co...)
>
> A schema mapping is explained as attribute of a complex type, a typical
> example (from the appendix) is:
>
>  <complexType name="POAddress"
>       sawsdl:schemaMapping="http://example.org/examples/POAddress.xq"
>       sawsdl:modelReference="POOntology#Address">
>
> A snippet of the given xslt is:
>
>  <xsl:template match="/">
>    <POOntology:Address rdf:ID="Address1">
>      <POOntology:has_Receiver rdf:datatype="xs:string">
>        <xsl:value-of select="POAddress/recepientInstName"/>
>  [...]
>
> To my understanding the xpath statement in the xslt select statement
> needs the tag name occurring in the actual xml message. However this tag
> name is dependent on the xsd element name and not xml complex type name.
> See [2] for an example how it could work.
>
> For me this has two concussions: (1) the schemaMapping attribute should
> be on the xs:element level (2) the main spec should not (or only in the
> appendix) include details on the possible mapping languages, since that
> would get two complex (and distracts from the core).
>
>
> best
>   Holger
>
>
>
>
> [1] http://www.w3.org/2002/ws/sawsdl/spec/po/
> [2] http://www.w3.org/2002/ws/sawsdl/spec/po/schemamapping-poaddress.xsl
>
> --
> Holger Lausen
>
> Digital Enterprise Research Institute (DERI)
> http://www.deri.org/
>
> Tel:   +43 512 5076464
> Email: holger.lausen@deri.org
>
> [attachment "signature.asc" deleted by Joel Farrell/Cambridge/IBM]
Received on Monday, 8 May 2006 20:15:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 April 2012 12:14:27 GMT