You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Brent Daniel <br...@gmail.com> on 2010/06/15 07:38:41 UTC

Policy otests and XPath

Hi,
  There seem to be several policy otests failing because of XPath
expressions in the attachTo attribute. Is anyone looking at these?

Brent

Re: Policy otests and XPath

Posted by Brent Daniel <br...@gmail.com>.
Thanks, Simon, I'll take a look.

Brent

On Tue, Jun 15, 2010 at 1:12 AM, Simon Laws <si...@googlemail.com> wrote:
> On Tue, Jun 15, 2010 at 6:38 AM, Brent Daniel <br...@gmail.com> wrote:
>> Hi,
>>  There seem to be several policy otests failing because of XPath
>> expressions in the attachTo attribute. Is anyone looking at these?
>>
>> Brent
>>
>
> Hi Brent
>
> I don't think so. In fact I don't think we've implemented any of the
> XPath functions described by section 4.4.3 of the policy spec. So if
> you want to have a go feel free to dive in.
>
> The code that applies XPath to the composite model can be found in
> modules/builder/.../PolicyAttachmentBuilderImpl [1]. It's currently
> run from the ModelBuilder [2] before the implementation hierarchy is
> processed.
>
> Simon
>
> [1] http://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java
> [2] http://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java
>
> --
> Apache Tuscany committer: tuscany.apache.org
> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>

Re: Policy otests and XPath

Posted by Simon Laws <si...@googlemail.com>.
On Tue, Jun 15, 2010 at 6:38 AM, Brent Daniel <br...@gmail.com> wrote:
> Hi,
>  There seem to be several policy otests failing because of XPath
> expressions in the attachTo attribute. Is anyone looking at these?
>
> Brent
>

Hi Brent

I don't think so. In fact I don't think we've implemented any of the
XPath functions described by section 4.4.3 of the policy spec. So if
you want to have a go feel free to dive in.

The code that applies XPath to the composite model can be found in
modules/builder/.../PolicyAttachmentBuilderImpl [1]. It's currently
run from the ModelBuilder [2] before the implementation hierarchy is
processed.

Simon

[1] http://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java
[2] http://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com