From: Mike Taylor Date: Mon, 3 Nov 2003 09:49:58 +0000 (+0000) Subject: Describe encoding of string attribute-values X-Git-Tag: YAZ.2.0.6~55 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=d1ad544488a515cb6ad80d1b98863baa57abb567;p=yaz-moved-to-github.git Describe encoding of string attribute-values --- diff --git a/doc/tools.xml b/doc/tools.xml index 55dec3c..accbb59 100644 --- a/doc/tools.xml +++ b/doc/tools.xml @@ -1,4 +1,4 @@ - + Supporting Tools @@ -173,11 +173,15 @@ The @attr operator is followed by an attribute specification (attr-spec above). The specification consists - of optional an attribute set, an attribute type-value pair and - a sub query. The attribute type-value pair is packed in one string: - an attribute type, a dash, followed by an attribute value. + of an optional attribute set, an attribute type-value pair and + a sub-query. The attribute type-value pair is packed in one string: + an attribute type, an equals sign, and an attribute value, like this: + @attr 1=1003. The type is always an integer but the value may be either an integer or a string (if it doesn't start with a digit character). + A string attribute-value is encoded as a Type-1 ``complex'' + attribute with the list of values containing the single string + specified, and including no semantic indicators.