Data types (Was: Re: [Xpath-ng] Proposal for definition of values/lists)
David Rosenborg
darolst at pantor.com
Tue Dec 17 12:39:27 MST 2002
> OK. Do you have in mind something like my proposal at the top of
>
> http://lists.xml.org/archives/xml-dev/200210/msg00006.html
>
> i.e. functions that can take a QName object and either use the current
> in-scope ns decls or take a context node with such decls and convert the
QName
> to string accordingly?
I'm not sure of the semantics of the functions in that post,
but I was primarly thinking of situations where you need to explicitly provide
namespace declarations to ensure proper serialization and/or
other prefix dependant processing.
Speaking of QName related functions, I think the following are
things you should be able to do:
* Convert two strings, one local name and one namespace URI, into a QName
object.
* Convert a string containing a prefixed name into a QName object. It should be
possible to reslove the prefix against in-scope declarations or against
declarations from a node.
* Convert a QName object to two strings, one local name and one namespace URI.
* Convert a QName to a string containing a prefixed name. Also here the
namespace
lookup could be against in-scope declarations or declarations from a node.
* Convert a prefix to a namespace URI
* Convert a namespace URI to a prefix
I'm not saying we should have unique functions for all these cases, just that
it should be possible to do using one or more functions.
Cheers,
David
More information about the Xpath-ng
mailing list