[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 context. Daniel; -----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; firstname.lastname@example.org Subject: Re: [xacml-dev] are < and > forbidden characters in string attributes?? 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 become > very unreadable and second I have to transform all my xml docs which I want > to protect into this syntax. Do you have any idea where the error message > 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. seth