sca-policy message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Re: [sca-policy] NEW ISSUE: Clarifying the Domain Composite Infoset
- From: Mike Edwards <mike_edwards@uk.ibm.com>
- To: "OASIS Policy" <sca-policy@lists.oasis-open.org>
- Date: Mon, 21 Sep 2009 13:02:01 +0100
Folks,
As you will have seen from my posting
on the discussion which led up to this issue being raised,
I disagree. I don't believe there
is an issue here along the lines described below.
Yours, Mike.
Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014 Mobile: +44-7802-467431
Email: mike_edwards@uk.ibm.com
From:
| ashok malhotra <ashok.malhotra@oracle.com>
|
To:
| oasis Policy <sca-policy@lists.oasis-open.org>
|
Date:
| 17/09/2009 14:09
|
Subject:
| [sca-policy] NEW ISSUE: Clarifying
the Domain Composite Infoset |
Raymond Feng and I have been exchanging mail on the
list. This issue
arose as a result of that interaction.
Raymond makes two points about the Domain Composite Infoset:
1. The assembly spec defines a URI scheme for embedded composites.
But the URI needs to be
surfaced in an attribute so that it can be selected using an XPath
expression.
2. Raymond argues that the embedded composites need to be inlined rather
that referenced.
If the Infoset corresponds to:
[1]
<composite xmlns:ns2="http://ns2
<http://ns2/>"
...>
<component name="Component1" *uri="Component1"*>
<implementation.composite name="ns2:InnerComposite"/>
</component>
</composite>
Applying //component[@uri='Component1/Component2'] against the XML
doesn't select Component2 as it is NOT an element in the tree. If we
inline the inner composite into the domain composite as illustrated
below, the it would work.
[2]
<composite xmlns:ns2="http://ns2
<http://ns2/>"
...>
<component name="Component1" *uri="Component1**"*>
<implementation.composite name="ns2:InnerComposite">
<!-- For demo purpose, Inline the inner composite
-->
<composite targetNamespace="http://ns2
<http://ns2/>"
name="InnerComposite">
<service name="Service1"
promote="Component2/Service1"/>
<reference name="ref1"
promote="Component2/ref1"/>
<component name="Component2"
*uri="Component1/Component2"*>
<implementation.java
class="sample.Component2Impl"/>
</component>
</composite>
</implementation.composite>
</component>
</composite>
--
All the best, Ashok
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]