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

 


Help: OASIS Mailing Lists Help | MarkMail Help

xacml-dev message

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


Subject: attrubuteselector usage - how to get element nodes including their decendants with the attributeselector


Hello everybody,

 I'm working with sunxacml version 1.1

I put the xml document which I want to protect in the resourceContent element of the xacml request context.

So it looks like this:

<ResourceContent>

            ....

            <gml:Polygon gid="_98217" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>

                        <gml:outerBoundaryIs>

                                    <gml:LinearRing>

                                                <gml:coordinates>10.0,10.0 10.0,40.0 40.0,40.0 40.0,10.0 10.0,10.0</gml:coordinates>

                                    </gml:LinearRing>

                        </gml:outerBoundaryIs>

            </gml:Polygon>

            ....

</ResourceContent>

Now I'm trying to select a part of the resourceContent with the help of the attributeselecor.

<AttributeSelector RequestContextPath="//context:ResourceContent/gml:Polygon" DataType="urn:oasis:names:tc:xacml:1.0:data-type:string"/>

What I'd like to get back is a string which is equal to this one:

<gml:Polygon gid="_98217" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>

                        <gml:outerBoundaryIs>

                                    <gml:LinearRing>

                                                <gml:coordinates>10.0,10.0 10.0,40.0 40.0,40.0 40.0,10.0 10.0,10.0</gml:coordinates>

                                    </gml:LinearRing>

                        </gml:outerBoundaryIs>

</gml:Polygon>

(i.e. a part of the resourceContent) 

Unfortunately I can only access the text nodes. Does anybody now how I can get the desired string by using the attrubuteselector or is it simply not posssible?

Thanks for your help

greets

Jan


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