Quoth Shawn Walker on Thu, Jul 31, 2008 at 01:43:55AM -0500:
> I can't divine clearly enough from the libscf man pages, etc. (or the 
> dtd -- where's my dtd documentation?!?) what the difference is between a 
> ustring and a uri.

uri typed properties are validated by valid_uri() in
lib/libscf/common/scf_type.c .

> I have a uri (minus scheme) I want users to specify via an smf property. 
>   What type should my property be to contain a uri such as 
> "http://foo.example": uri or ustring?

Your properties should be as specific a type as possible, so that
generic tools can validate values, or provide more specific user
interfaces.  Though I'm not sure whether valid_uri() allows URIs without
schemes.

I think you're right about the documentation being in the wrong place.
Please file a bug to move it.  And maybe a bug to clarify the difference
between the URI & ustring types.


David

Reply via email to