OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xacml-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [xacml-comment] Test cases for Attribute Selector



Satoshi Hada wrote:

>In IIF002Request.xml, the namespace prefix "md" is not used at all.
>Why do you think you need it?
>
Hmm - yeah, but there's a problem here.

I use the document element of the request as the context node for
executing the XPath expression... The expression includes references
to the 'md' namespace and the request document element doesn't
define it so my XPath processor complained. I'd assumed that the
XPath expression was written within the context of the request...
since it makes no sense within the context of the policy.

If the namespace isn't defined in the request then I don't know if
my XPath expression is invalid, or the request is invalid.

It appears that you're writing the XPath expression with the context
of the Policy... so the only thing I could do is copy all the policy
namespace definitions to the request before processing the XPath.

BUT... that's making the big assumption that the namepaces
definitions can be merged without any redefinitions or collisions.

So I guess I need to take the namespace references in the policy
XPath expression and map those onto uri's... then look those uri's
up in the request namespace definitions to get the prefix that's used
in the request... then i can rewrite the XPath expression so that it
can be executed within the context of the request.

...yuck.

John.



----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]