- From: Jan Ortmann <j.ort@web.de>
- Date: Mon, 19 May 2003 23:05:48 +0200
- 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
right:
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">
]>
<rdf:RDF
xmlns:rdf = "&rdf;#"
xmlns:rdfs = "&rdfs;#"
xmlns:xsd = "&xsd;#"
xmlns:daml = "&daml;#"
xmlns:congoProcess = "&congoProcess;#"
xmlns:process = "&process;#"
xmlns = "http://somewhere.com/somenamespace.daml#"
>
<congoProcess:ExpressCongoBuy>
<!-- input -->
<congoProcess:congoBuyBookISBN>
0345453743
</congoProcess:congoBuyBookISBN>
<congoProcess:congoBuySignInInfo>
someSignInInfo
</congoProcess:congoBuySignInInfo>
<!-- preconditions -->
<congoProcess:congoBuyAcctExistsPrecondition>
<process:Condition></process:Condition>
</congoProcess:congoBuyAcctExistsPrecondition>
<congoProcess:congoBuyCreditExistsPrecondition>
<process:Condition></process:Condition>
</congoProcess:congoBuyCreditExistsPrecondition>
<!--
...
...
-->
</congoProcess:ExpressCongoBuy>
</rdf:RDF>
If now for some reason Congo changed its wsdl-Interface to a single input parameter consisting of
<congoParam isbn="$isbn" signInInfo="$signInInfo">
<!-- ... -->
</congoParam>
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:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:congoProcess = ""http://www.daml.org/services/daml-s/0.9/CongoProcess.daml"
xmlns="http://somewhere.com/somenamespace.daml#">
<xsl:template match="/rdf:RDF/congoProcess:ExpressCongoBuy">
<congoParam>
<xsl:attribute name="isbn">
<xsl:value-of select="congoProcess:congoBuyBookISBN" />
</xsl:attribute>
<xsl:attribute name="signInInfo">
<xsl:value-of select="congoProcess:congoBuySignInInfo" />
</xsl:attribute>
<!-- some other things to do -->
</congoParam>
</xsl:template>
</xsl:stylesheet>
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,
Germany
____________________________________________________________________________
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