dion 02/01/24 22:15:16
Added: latka/doc xml-reference.xml
Log:
Transferred from index.xml
Revision Changes Path
1.1 jakarta-commons/latka/doc/xml-reference.xml
Index: xml-reference.xml
===================================================================
<?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<!--
Author: Morgan Delagrange
Version: $Id: xml-reference.xml,v 1.1 2002/01/25 06:15:16 dion Exp $
-->
<chapter id="xml-reference">
<chapterinfo>
<authorgroup>
<author>
<firstname>Morgan</firstname>
<surname>Delagrange</surname>
<affiliation>
<address>
<email>[EMAIL PROTECTED]</email>
</address>
</affiliation>
</author>
</authorgroup>
</chapterinfo>
<title>Latka XML Reference</title>
<section>
<title>Latka XML Reference</title>
<!-- REFENTRY: byteLength -->
<section id="latka.ref.byteLength" xreflabel="byteLength">
<title>byteLength</title>
<para>
validates the length of an HTTP(S) response
</para>
<section>
<title>DTD</title>
<programlisting><!ELEMENT byteLength EMPTY>
<!ATTLIST byteLength min CDATA "0"
max CDATA #IMPLIED
label CDATA #IMPLIED></programlisting>
</section>
<section>
<title>Attributes</title>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag class="attribute">min</sgmltag></entry>
<entry>NUMBER</entry>
<entry><sgmltag class="attvalue">0</sgmltag></entry>
<entry>
Minimum number of bytes required for a valid
response. Implied. Defaults to
<sgmltag class="attvalue">0</sgmltag>.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">max</sgmltag></entry>
<entry>NUMBER</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Maximum number of bytes required for a valid
response. Optional. When absent, there is no
upper limit on the number of bytes in a valid
response.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">label</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Label associated with this validation, which may
be used in programatically generated documentation
or reports. Optional.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.validate"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
A <sgmltag>byteLength</sgmltag> validation
passes if the HTTP(S) response is at least
<sgmltag class="attribute">min</sgmltag>
bytes long, and (when specified) at most
<sgmltag class="attribute">max</sgmltag> bytes long.
</para>
</section>
</section>
<!-- REFENTRY: COOKIE -->
<section id="latka.ref.cookie" xreflabel="cookie">
<title>cookie</title>
<para>
validates the presence of an HTTP(S) cookie in a response
</para>
<section>
<title>DTD</title>
<programlisting><![CDATA[<!ELEMENT cookie EMPTY>
<!ATTLIST cookie name CDATA #REQUIRED
value CDATA #IMPLIED
label CDATA #IMPLIED>]]></programlisting>
</section>
<section>
<title>Attributes</title>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag class="attribute">name</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none, but required</emphasis></entry>
<entry>
The name of the cookie to look for.
Required.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">value</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none, optional</emphasis></entry>
<entry>
The value that the cookie with the specified name should
have (if any).
</entry>
</row>
<row>
<entry><sgmltag class="attribute">label</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Label associated with this validation, which may
be used in programatically generated documentation
or reports. Optional.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.validate"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
A <sgmltag>cookie</sgmltag> validation
passes if the HTTP(S) response contains a cookie with the
specified <sgmltag class="attribute">name</sgmltag>.
If a <sgmltag class="attribute">value</sgmltag> is provided,
the cookie must also have the specified value.
</para>
</section>
</section>
<!-- REFENTRY: CREDENTIALS -->
<section id="latka.ref.credentials" xreflabel="credentials">
<title>credentials</title>
<para>
username/password credentials for Basic HTTP authentication.
</para>
<section>
<title>DTD</title>
<programlisting><![CDATA[<!ELEMENT credentials EMPTY>
<!ATTLIST credentials userName CDATA #REQUIRED
password CDATA #REQUIRED>]]></programlisting>
</section>
<section>
<title>Attributes</title>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag class="attribute">userName</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none, required</emphasis></entry>
<entry>User name. Required.</entry>
</row>
<row>
<entry><sgmltag class="attribute">password</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none, required</emphasis></entry>
<entry>Password. Required.</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.request"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
Contains credentials for HTTP Basic Authentication.
</para>
</section>
</section>
<!-- REFENTRY: maxRequestTime -->
<section id="latka.ref.maxRequestTime" xreflabel="maxRequestTime">
<title>maxRequestTime</title>
<para>validates the response time for an HTTP(S) request</para>
<section>
<title>DTD</title>
<programlisting><![CDATA[<!ELEMENT maxRequestTime EMPTY>
<!ATTLIST maxRequestTime millis CDATA "30000"
message CDATA #IMPLIED>]]></programlisting>
</section>
<section>
<title>Attributes</title>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag class="attribute">millis</sgmltag></entry>
<entry>NUMBER</entry>
<entry><sgmltag class="attvalue">30000</sgmltag></entry>
<entry>
Maximum amount of time, in milliseconds, in which
a response must be returned to be considered a
valid response. Implied. Defaults to
<sgmltag class="attvalue">30000</sgmltag> milliseconds,
or 30 seconds.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">label</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Label associated with this validation, which may
be used in programatically generated documentation
or reports. Optional.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.validate"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
A <sgmltag>maxRequestTime</sgmltag> validation
passes if the HTTP(S) response is obtained in no more than
<sgmltag class="attribute">millis</sgmltag> milliseconds.
</para>
</section>
</section>
<!-- REFENTRY: PARAM -->
<section id="latka.ref.param" xreflabel="param">
<title>param</title>
<para>indicates a request parameter as part of an HTTP(S) request to be
executed</para>
<section>
<title>DTD</title>
<programlisting><!ELEMENT request (<xref
linkend="latka.ref.paramName"/>, <xref
linkend="latka.ref.paramValue"/>)></programlisting>
</section>
<section>
<title>Attributes</title>
<para>
<emphasis>None.</emphasis>
</para>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.request"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
A parameter to be submitted as part of a <xref
linkend="latka.ref.request"/>.
</para>
</section>
</section>
<!-- REFENTRY: paramName -->
<section id="latka.ref.paramName" xreflabel="paramName">
<title>paramName</title>
<para>the name part of a name/value pair parameter</para>
<section>
<title>DTD</title>
<programlisting><!ELEMENT paramName (#PCDATA)></programlisting>
</section>
<section>
<title>Attributes</title>
<para>
<emphasis>None.</emphasis>
</para>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.param"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
The name part of <xref linkend="latka.ref.param"/>
to be submitted as part of a <xref linkend="latka.ref.request"/>.
</para>
</section>
</section>
<!-- REFENTRY: paramValue -->
<section id="latka.ref.paramValue" xreflabel="paramValue">
<title>paramValue</title>
<para>the value part of a name/value pair parameter</para>
<section>
<title>DTD</title>
<programlisting><!ELEMENT paramValue (#PCDATA)></programlisting>
</section>
<section>
<title>Attributes</title>
<para>
<emphasis>None.</emphasis>
</para>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.param"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
The value part of <xref linkend="latka.ref.param"/>
to be submitted as part of a <xref linkend="latka.ref.request"/>.
</para>
</section>
</section>
<!-- REFENTRY: REGEXP -->
<section id="latka.ref.regexp" xreflabel="regexp">
<title>regexp</title>
<para>
validates the presence or absence of a regular expression within an
HTTP(S) response
</para>
<section>
<title>DTD</title>
<programlisting><![CDATA[<!ELEMENT regexp EMPTY>
<!ATTLIST regexp pattern CDATA #REQUIRED
cond (true | false) "true"
ignoreCase (true | false) "false"
label CDATA #IMPLIED>]]></programlisting>
</section>
<section>
<title>Attributes</title>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag class="attribute">pattern</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none, but required.</emphasis></entry>
<entry>
The regular expression to look for.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">cond</sgmltag></entry>
<entry>
<emphasis>Enumeration:</emphasis>
<simplelist>
<member><sgmltag
class="attvalue">true</sgmltag></member>
<member><sgmltag
class="attvalue">false</sgmltag></member>
</simplelist>
</entry>
<entry><sgmltag class="attvalue">true</sgmltag></entry>
<entry>
When <sgmltag class="attvalue">true</sgmltag>,
the given <sgmltag class="attribute">pattern</sgmltag>
must match within the response.
When <sgmltag class="attvalue">false</sgmltag>,
the given <sgmltag class="attribute">pattern</sgmltag>
must not match within the response.
</entry>
</row>
<row>
<entry><sgmltag
class="attribute">ignoreCase</sgmltag></entry>
<entry>
<emphasis>Enumeration:</emphasis>
<simplelist>
<member><sgmltag
class="attvalue">true</sgmltag></member>
<member><sgmltag
class="attvalue">false</sgmltag></member>
</simplelist>
</entry>
<entry><sgmltag class="attvalue">false</sgmltag></entry>
<entry>
When <sgmltag class="attvalue">true</sgmltag>,
case is ignored within the
given <sgmltag class="attribute">pattern</sgmltag>.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">label</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Label associated with this validation, which may
be used in programatically generated documentation
or reports. Optional.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.validate"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
A <sgmltag>maxRequestTime</sgmltag> validation
passes if the HTTP(S) response is obtained in no more than
<sgmltag class="attribute">millis</sgmltag> milliseconds.
</para>
</section>
</section>
<!-- REFENTRY: REQUEST -->
<section id="latka.ref.request" xreflabel="request">
<title>request</title>
<para>indicates an HTTP(S) request to be executed</para>
<section>
<title>DTD</title>
<programlisting><!ELEMENT request (<xref
linkend="latka.ref.credentials"/>?, <xref linkend="latka.ref.param"/>*, <xref
linkend="latka.ref.validate"/>?)>
<!ATTLIST request path CDATA #REQUIRED
method (post | get) "get"
host CDATA #IMPLIED
port CDATA #IMPLIED
label CDATA #IMPLIED></programlisting>
</section>
<section>
<title>Attributes</title>
<para>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag class="attribute">path</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none, but required</emphasis></entry>
<entry>Request path. Required.</entry>
</row>
<row>
<entry><sgmltag class="attribute">method</sgmltag></entry>
<entry>
<emphasis>enumeration:</emphasis>
<simplelist>
<member><sgmltag
class="attvalue">get</sgmltag></member>
<member><sgmltag
class="attvalue">post</sgmltag></member>
</simplelist>
</entry>
<entry><sgmltag class="attvalue">get</sgmltag></entry>
<entry>HTTP method. Implied. Defaults to <sgmltag
class="attvalue">get</sgmltag>.</entry>
</row>
<row>
<entry><sgmltag class="attribute">host</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Host to submit request to.
Optional.
When absent, uses default from <xref
linkend="latka.ref.suite"/>.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">port</sgmltag></entry>
<entry>NUMBER</entry>
<entry><emphasis>depends upon protocol</emphasis></entry>
<entry>
Port to submit request to.
Optional.
When absent, uses default from <xref
linkend="latka.ref.suite"/>.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">label</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Label associated with this validation, which may
be used in programatically generated documentation
or reports. Optional.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.suite"/></member>
<member><xref linkend="latka.ref.session"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
An HTTP(S) request to be executed.
</para>
</section>
</section>
<!-- REFENTRY: SESSION -->
<section id="latka.ref.session" xreflabel="session">
<title>session</title>
<para>wrapper for a sequence of <xref linkend="latka.ref.request"/>s
associated with the same state (session)</para>
<section>
<title>DTD</title>
<programlisting><!ELEMENT session (<xref
linkend="latka.ref.request"/>+)>
<!ATTLIST session sessionId CDATA #IMPLIED
label CDATA #IMPLIED></programlisting>
</section>
<section>
<title>Attributes</title>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag class="attribute">sessionId</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Unique identifier for this <sgmltag>session</sgmltag>.
Sessions with the same <sgmltag
class="attribute">sessionId</sgmltag>
will share the same underlying state (e.g., cookies, etc.)
</entry>
</row>
<row>
<entry><sgmltag class="attribute">label</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Label associated with this <sgmltag>session</sgmltag>,
which may
be used in programatically generated documentation
or reports. Optional.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.suite"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
A <sgmltag>session</sgmltag> is a collection of
<xref linkend="latka.ref.request"/>s
that share the same underlying state. For example,
a cookie that returned in the response to one
<xref linkend="latka.ref.request"/>
will be included in subsequent
<xref linkend="latka.ref.request"/>s.
</para>
</section>
</section>
<!-- REFENTRY: statusCode -->
<section id="latka.ref.statusCode" xreflabel="statusCode">
<title>statusCode</title>
<para>validates an HTTP response code</para>
<section>
<title>DTD</title>
<programlisting><![CDATA[<!ELEMENT statusCode EMPTY>
<!ATTLIST statusCode code CDATA "200"
label CDATA #IMPLIED>]]></programlisting>
</section>
<section>
<title>Attributes</title>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag class="attribute">code</sgmltag></entry>
<entry>NUMBER</entry>
<entry><sgmltag class="attvalue">200</sgmltag></entry>
<entry>
Numeric HTTP response code to expect.
Implied. Defaults to
<sgmltag class="attvalue">200</sgmltag>.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">label</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Label associated with this validation, which may
be used in programatically generated documentation
or reports. Optional.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.validate"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
A <sgmltag>statusCode</sgmltag> validation
passes if the HTTP(S) response code for the given request
matches the value specified by
<sgmltag class="attribute">code</sgmltag>.
</para>
</section>
</section>
<!-- REFENTRY: SUITE -->
<section id="latka.ref.suite" xreflabel="suite">
<title>suite</title>
<para>root element for a suite of tests</para>
<section>
<title>DTD</title>
<programlisting><!ELEMENT suite ( (<xref
linkend="latka.ref.session"/> | <xref linkend="latka.ref.request"/>)+ )>
<!ATTLIST suite defaultHost CDATA #IMPLIED
defaultPort CDATA #IMPLIED
label CDATA #IMPLIED></programlisting>
</section>
<section>
<title>Attributes</title>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag
class="attribute">defaultHost</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Default hostname for <xref
linkend="latka.ref.request"/>s. Optional.
</entry>
</row>
<row>
<entry><sgmltag
class="attribute">defaultPort</sgmltag></entry>
<entry>NUMBER</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Default port for <xref linkend="latka.ref.request"/>s.
Optional.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">label</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
Label associated with this <sgmltag>suite</sgmltag>,
which may
be used in programatically generated documentation
or reports. Optional.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section>
<title>Parents</title>
<para>
<emphasis>None.</emphasis>
</para>
</section>
<section>
<title>Description</title>
<para>
A <sgmltag>suite</sgmltag> is a collection of
<xref linkend="latka.ref.request"/>s
and <xref linkend="latka.ref.session"/>s
to execute.
</para>
</section>
</section>
<!-- REFENTRY: VALIDATE -->
<section id="latka.ref.validate" xreflabel="validate">
<title>validate</title>
<para>
indicates the suite of validations to apply to the
current <xref linkend="latka.ref.request"/> (and its response)
</para>
<section>
<title>DTD</title>
<programlisting><!ELEMENT validate (<xref
linkend="latka.ref.byteLength"/> | <xref linkend="latka.ref.cookie"/> | <xref
linkend="latka.ref.maxRequestTime"/> | <xref linkend="latka.ref.regexp"/> | <xref
linkend="latka.ref.statusCode"/> | <xref linkend="latka.ref.xpath"/>
)+></programlisting>
</section>
<section>
<title>Attributes</title>
<para>
<emphasis>None.</emphasis>
</para>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.request"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
Contains the set of validations to apply to the
current <xref linkend="latka.ref.request"/>
(and its response).
</para>
</section>
</section>
<!-- REFENTRY: xpath -->
<section id="latka.ref.xpath" xreflabel="xpath">
<title>xpath</title>
<para>
xpath - assuming the HTTP(s) response contains XML, checks if an
<ulink url="http://www.w3.org/TR/xpath">XPath</ulink> expression matches
</para>
<section>
<title>DTD</title>
<programlisting><!ELEMENT xpath EMPTY>
<!ATTLIST xpath select CDATA #REQUIRED
cond (true | false) "true"
value CDATA #IMPLIED
label CDATA #IMPLIED></programlisting>
</section>
<section>
<title>Attributes</title>
<informaltable colsep="1" rowsep="1">
<tgroup cols="4">
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="1in"/>
<colspec colwidth="2in"/>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><sgmltag class="attribute">select</sgmltag></entry>
<entry>CDATA</entry>
<entry><emphasis>none</emphasis></entry>
<entry>
An XPath expression, designed to match a node in the
XML body of the response.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">cond</sgmltag></entry>
<entry>
<emphasis>Enumeration:</emphasis>
<simplelist>
<member><sgmltag
class="attvalue">true</sgmltag></member>
<member><sgmltag
class="attvalue">false</sgmltag></member>
</simplelist>
</entry>
<entry>
<sgmltag class="attvalue">true</sgmltag>
</entry>
<entry>
When <sgmltag class="attvalue">true</sgmltag>, the given
XPath expression must match within the
response. When <sgmltag class="attvalue">false</sgmltag>,
the given XPath expression must not
match within the response.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">value</sgmltag></entry>
<entry>
CDATA
</entry>
<entry>
<emphasis>none, optional</emphasis>
</entry>
<entry>
The value that the matched node should have, if any.
</entry>
</row>
<row>
<entry><sgmltag class="attribute">label</sgmltag></entry>
<entry>
CDATA
</entry>
<entry>
<emphasis>none</emphasis>
</entry>
<entry>
Label associated with this validation, which may be used
in programatically generated documentation or reports.
Optional.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section>
<title>Parents</title>
<simplelist type="inline">
<member><xref linkend="latka.ref.validate"/></member>
</simplelist>
</section>
<section>
<title>Description</title>
<para>
A xpath validation passes if the HTTP(S) response body contains XML,
and the specified XPath expression matches (or not, depending on
cond)
</para>
</section>
</section>
</section>
</chapter>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>