[XML-SIG] XML namespaces and Python attributes

Paul Prescod paul@prescod.net
Wed, 26 Apr 2000 21:00:57 -0500


Ken MacLeod wrote:
> 
> ...
> We used
> Python as an example:
> 
>   rdf = 'http://www.w3.org/TR/RDF/'
>   my_description = some_item.rdf:description
> 
> and an unaliased syntax:
> 
>   my_description = some_item.{http://www.w3.org/TR/RDF/}description

I've been thinking about a pseudo-RDF implementation and my thoughts
about syntax were:

some_item["http://www.w3.org/TR/RDF/prop"]["http://www.w3.org/TR/RDF/prop"][5]

and of course:

some_item[rdf+"/prop"][rdf+"/prop"]

Of course this would only apply to specially-designed objects that
support RDF-based getitem.

-- 
 Paul Prescod  - ISOGEN Consulting Engineer speaking for himself
It's difficult to extract sense from strings, but they're the only
communication coin we can count on. 
	- http://www.cs.yale.edu/~perlis-alan/quotes.html