W3C home > Mailing lists > Public > www-ws@w3.org > May 2003

Question concerning XSLT-Transformation in DAML-S 0.9

From: Jan Ortmann <j.ort@web.de>
Date: Mon, 19 May 2003 23:05:48 +0200
Message-Id: <200305192105.h4JL5mi26423@mailgate5.cinetic.de>
To: www-ws@w3.org

Hi all.
I have a question concerning the xsltTransformation property in the latest version(0.9) of DAML-S. I am not sure whether I understood it

Since a concrete action would be an instanciation of the Process defined in DAML-S the xsl-Tranformation should be working on this concrete instantiation. For the CongoProcess an action might look like this:

<!DOCTYPE uridef[
  <!ENTITY rdf     "http://www.w3.org/1999/02/22-rdf-syntax-ns">
  <!ENTITY rdfs    "http://www.w3.org/2000/01/rdf-schema">
  <!ENTITY xsd     "http://www.w3.org/2000/10/XMLSchema">
  <!ENTITY daml    "http://www.daml.org/2001/03/daml+oil">
  <!ENTITY process "http://www.daml.org/services/daml-s/0.9/Process.daml">
  <!ENTITY congoProcess "http://www.daml.org/services/daml-s/0.9/CongoProcess.daml">

  xmlns:rdf =     "&rdf;#"
  xmlns:rdfs =    "&rdfs;#"
  xmlns:xsd =     "&xsd;#"
  xmlns:daml =    "&daml;#"
  xmlns:congoProcess = "&congoProcess;#"
  xmlns:process = "&process;#"
  xmlns =         "http://somewhere.com/somenamespace.daml#"

    <!-- input -->
    <!-- preconditions -->

If now for some reason Congo changed its wsdl-Interface to a single input parameter consisting of 
  <congoParam isbn="$isbn" signInInfo="$signInInfo">
    <!-- ... -->
We would then have to use xsl to transform the congoBuyBookISBN and the BuySignInInfo to the needed form, don't we. A stylesheet for this might look like this:

<?xml version="1.0" encoding="UTF-8" ?> 
  <xsl:stylesheet version="1.0"     
    xmlns:congoProcess = ""http://www.daml.org/services/daml-s/0.9/CongoProcess.daml"
    <xsl:template match="/rdf:RDF/congoProcess:ExpressCongoBuy">
        <xsl:attribute name="isbn">
          <xsl:value-of select="congoProcess:congoBuyBookISBN" /> 
        <xsl:attribute name="signInInfo">
          <xsl:value-of select="congoProcess:congoBuySignInInfo" /> 
        <!-- some other things to do -->

This would mean that in order to generate this new parameter I would have to assemble the action in XML-Form (or at least the part concerning input and output) and transform this via XSL.

Please tell me if I totally misunderstood the proceeding.

Thanks in advance.

Jan Ortmann

University of Hamburg, 

Jetzt bei WEB.DE FreeMail anmelden = 1qm Regenwald schuetzen! Helfen
Sie mit! Nutzen Sie den Serien-Testsieger. http://user.web.de/Regenwald
Received on Monday, 19 May 2003 17:07:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:08 UTC