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: RE: [xacml-dev] are < and > forbidden characters in string attributes??

P.S.  Just a random thought: looking at the use case, why use XML
representation at all?

It seems to me that the content is a pair of decimals and a string.

<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
  <gml:coordinates decimal="." cs="," ts=" ">-59.478340,-52.226578
</gml:coordinates> </gml:Point>

It either calls for a custom data type ns:Point, or you could use
Three different attributes, - couple doubles and a string.  That way one
can write XACML policy directly using this value.

Just the context handler needs to parse the data and populate the


-----Original Message-----
From: Seth Proctor [mailto:Seth.Proctor@Sun.COM] 
Sent: Wednesday, November 17, 2004 10:46 AM
To: Jan bei GMX
Cc: Daniel Engovatov; xacml-dev@lists.oasis-open.org
Subject: Re: [xacml-dev] are < and > forbidden characters in string

On Wed, 2004-11-17 at 13:37, Jan bei GMX wrote:
> thats what I did, but it's not a very convienient way. first things
> very unreadable and second I have to transform all my xml docs which I
> to protect into this syntax. Do  you have any idea where the error
> comes from. Is there no way to avoid this work around.

There is no work-around. As Daniel explained, it's an error to supply
mixed content for the standard string datatype. I'm not sure why you
have to convert all your documents, unless you're providing them all as
attribute values (ie, this doesn't matter for the ResourceContent
section of a Request).

If you don't want to escape your tags, then probably your best option is
to define a new datatype that handles mixed content, and write a custom
function that converts that that datatype into a standard string.

As for questions about why where you're getting that error, you should
mail me directly or use the sunxacml-discuss list, since that's a
source-specific question.


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