Next in thread → Next in month →

Re: [relax-ng] Type-assignement requirements from Jonathan Robie

From
James Clark <>
Date
2002-09-19T06:18:42+00:00
ID
018601c25fa4$21773150$
Thread
Re: [relax-ng] Type-assignement requirements from Jonathan Robie
> > > The main requirement is to provide type annotations for every element
or
> > > attribute, perhaps in a separate process from validation.
>
> I think this is most simply provided with an attribute annotation,
xquery:type
> or the like, which is allowed on element and attribute patterns, and whose
> value is a QName.

Instead of building in a particular annotation attribute, couldn't an
implementation of type-assigment simply provide to the application, for each
instance attribute or element, all the annotations on the attribute or
element pattern in the schema that matched that instance attribute or
element?  One simple way to do this would be to provide the DOM element node
for the attribute or element pattern.

James
Next in thread → Next in month →