juergen     2002/10/25 01:46:19

  Added:       testsuite/testsuite/junit/xmltestcases/I18N/DASL
                        singleXPathSingWhereRefNameFilter_zh.xml
                        singleXPathSingWhereRefNameFilter_ja.xml
                        singleXPathSingWhereRefNameFilter_en.xml
                        singleXPathSingWhereRefName_zh.xml
                        singleXPathSingWhereRefName_ja.xml
                        singleXPathSingWhereRefName_en.xml
  Log:
  additional test
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/DASL/singleXPathSingWhereRefNameFilter_zh.xml
  
  Index: singleXPathSingWhereRefNameFilter_zh.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Search for properties specified by an XPath query where 
another XPath exists.
                Only one XPath query is defined. The 'refname' is used within the 
Where elements.
                </abstract>
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                <description>
                1) A resource is Put on to the Server. 
                2) A second resource is put to the server. This has a different 
attribute to the first.
                3) A Search is performed to find the properties defined by the XPath.
                4) The resource is deleted.
                </description>
                <expectedResult>XPath in Select evaluated correctly and used within 
Where clause.
                A 207 Multi-Status response code should be returned. Within the body, 
a 200 OK response code
                should be returned for each resource along with the requested property 
for each resource.</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_zh/UTF-8/rootelement/inst2_table_doctypei18n_utf-8NP.xm1"
 fileEncoding="UTF-8"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_zh/UTF-8/rootelement/inst3_table_doctypei18n_utf-8NP.xm1"
 fileEncoding="UTF-8"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        
        <step>
                <request>
                        <command varUsage="globalVariableServerName">SEARCH 
/%globalVariableServerName% HTTP/1.1</command>
                        <body 
varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <searchrequest xmlns:D="DAV:" 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                <D:basicsearch>
                                                        <D:select>
                                                                <D:prop>
                                                                        <xsv:xpath 
name="即可顯示utf8XPathTest">即可顯示utf8[@WEIGHT = 
"即可顯示"]/surface/surfacetype</xsv:xpath>
                                                                </D:prop>
                                                        </D:select>
                                                        <D:from>
                                                                <D:scope>
                                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
                                                                </D:scope>
                                                        </D:from>
                                                        <D:where>
                                                                <xsv:xpath 
refname="即可顯示utf8XPathTest"/>
                                                        </D:where>
                                                        <D:orderby>
                                                                <D:order>
                                                                        <D:prop>
                                                                                
<D:displayname/>
                                                                        </D:prop>
                                                                        </D:order>
                                                        </D:orderby>
                                                </D:basicsearch>
                                        </searchrequest>
                                ]]></body>
                </request>
                
                <response>
                        <command>HTTP/1.0 207 Multi-Status</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <D:multistatus xmlns:D="DAV:">
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test3.xml</D:href>
                                                        <D:propstat>
                                                                        <D:prop>
                                                                        
<xsv:即可顯示utf8XPathTest 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                                                
<xql:xql xmlns:xql="http://metalab.unc.edu/xql/";>即可顯示utf8[@WEIGHT = 
"即可顯示"]/surface/surfacetype</xql:xql>
                                                                                
<xql:result xmlns:xql="http://metalab.unc.edu/xql/";>
                                                                                       
 <surfacetype xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
ino:id="*">METAL</surfacetype>
                                                                                
</xql:result>
                                                                        
</xsv:即可顯示utf8XPathTest>
                                                                </D:prop>
                                                                <D:status>HTTP/1.1 200 
OK</D:status>
                                                        </D:propstat>
                                                </D:response>
                                        </D:multistatus>
                        ]]></body>
                </response>
        </step>
        
        <cleanup>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                                
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
        </cleanup>
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/DASL/singleXPathSingWhereRefNameFilter_ja.xml
  
  Index: singleXPathSingWhereRefNameFilter_ja.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Search for properties specified by an XPath query where 
another XPath exists.
                Only one XPath query is defined. The 'refname' is used within the 
Where elements.
                </abstract>
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                <description>
                1) A resource is Put on to the Server. 
                2) A second resource is put to the server. This has a different 
attribute to the first.
                3) A Search is performed to find the properties defined by the XPath.
                4) The resource is deleted.
                </description>
                <expectedResult>XPath in Select evaluated correctly and used within 
Where clause.
                A 207 Multi-Status response code should be returned. Within the body, 
a 200 OK response code
                should be returned for each resource along with the requested property 
for each resource.</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_ja/UTF-8/rootelement/inst2_table_doctypei18n_utf-8NP.xm1"
 fileEncoding="UTF-8"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_ja/UTF-8/rootelement/inst3_table_doctypei18n_utf-8NP.xm1"
 fileEncoding="UTF-8"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command varUsage="globalVariableServerName">SEARCH 
/%globalVariableServerName% HTTP/1.1</command>
                        <body 
varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <searchrequest xmlns:D="DAV:" 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                <D:basicsearch>
                                                        <D:select>
                                                                <D:prop>
                                                                        <xsv:xpath 
name="製品番号utf8XPathTest">製品番号utf8[@WEIGHT = 
"製品番号"]/surface/surfacetype</xsv:xpath>
                                                                </D:prop>
                                                        </D:select>
                                                        <D:from>
                                                                <D:scope>
                                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
                                                                </D:scope>
                                                        </D:from>
                                                        <D:where>
                                                                <xsv:xpath 
refname="製品番号utf8XPathTest"/>
                                                        </D:where>
                                                        <D:orderby>
                                                                <D:order>
                                                                        <D:prop>
                                                                                
<D:displayname/>
                                                                        </D:prop>
                                                                        </D:order>
                                                        </D:orderby>
                                                </D:basicsearch>
                                        </searchrequest>
                                ]]></body>
                </request>
                
                <response>
                        <command>HTTP/1.0 207 Multi-Status</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <D:multistatus xmlns:D="DAV:">
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test3.xml</D:href>
                                                        <D:propstat>
                                                                        <D:prop>
                                                                        
<xsv:製品番号utf8XPathTest 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                                                
<xql:xql xmlns:xql="http://metalab.unc.edu/xql/";>製品番号utf8[@WEIGHT = 
"製品番号"]/surface/surfacetype</xql:xql>
                                                                                
<xql:result xmlns:xql="http://metalab.unc.edu/xql/";>
                                                                                       
 <surfacetype xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
ino:id="*">METAL</surfacetype>
                                                                                
</xql:result>
                                                                        
</xsv:製品番号utf8XPathTest>
                                                                </D:prop>
                                                                <D:status>HTTP/1.1 200 
OK</D:status>
                                                        </D:propstat>
                                                </D:response>
                                        </D:multistatus>
                        ]]></body>
                </response>
        </step>
        
        <cleanup>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                                
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
        </cleanup>
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/DASL/singleXPathSingWhereRefNameFilter_en.xml
  
  Index: singleXPathSingWhereRefNameFilter_en.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Search for properties specified by an XPath query where 
another XPath exists.
                Only one XPath query is defined. The 'refname' is used within the 
Where elements.
                </abstract>
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                <description>
                1) A resource is Put on to the Server. 
                2) A second resource is put to the server. This has a different 
attribute to the first.
                3) A Search is performed to find the properties defined by the XPath.
                4) The resource is deleted.
                </description>
                <expectedResult>XPath in Select evaluated correctly and used within 
Where clause.
                A 207 Multi-Status response code should be returned. Within the body, 
a 200 OK response code
                should be returned for each resource along with the requested property 
for each resource.</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_en/ISO-8859-1/rootelement/inst2_table_doctypei18n_iso-8859-1UE.xm1"
 fileEncoding="ISO-8859-1"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_en/ISO-8859-1/rootelement/inst3_table_doctypei18n_iso-8859-1UE.xm1"
 fileEncoding="ISO-8859-1"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command varUsage="globalVariableServerName">SEARCH 
/%globalVariableServerName% HTTP/1.1</command>
                        <body 
varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <searchrequest xmlns:D="DAV:" 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                <D:basicsearch>
                                                        <D:select>
                                                                <D:prop>
                                                                        <xsv:xpath 
name="àçèéäöüÄÖÜiso8859XPathTest">àçèéäöüÄÖÜiso8859[@WEIGHT = 
"àçèéäöüÄÖÜ"]/surface/surfacetype</xsv:xpath>
                                                                </D:prop>
                                                        </D:select>
                                                        <D:from>
                                                                <D:scope>
                                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
                                                                </D:scope>
                                                        </D:from>
                                                        <D:where>
                                                                <xsv:xpath 
refname="àçèéäöüÄÖÜiso8859XPathTest"/>
                                                        </D:where>
                                                        <D:orderby>
                                                                <D:order>
                                                                        <D:prop>
                                                                                
<D:displayname/>
                                                                        </D:prop>
                                                                        </D:order>
                                                        </D:orderby>
                                                </D:basicsearch>
                                        </searchrequest>
                                ]]></body>
                </request>
                
                <response>
                        <command>HTTP/1.0 207 Multi-Status</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <D:multistatus xmlns:D="DAV:">
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test3.xml</D:href>
                                                        <D:propstat>
                                                                <D:prop>
                                                                        
<xsv:àçèéäöüÄÖÜiso8859XPathTest 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                                                
<xql:xql xmlns:xql="http://metalab.unc.edu/xql/";>àçèéäöüÄÖÜiso8859[@WEIGHT = 
"àçèéäöüÄÖÜ"]/surface/surfacetype</xql:xql>
                                                                                
<xql:result xmlns:xql="http://metalab.unc.edu/xql/";>
                                                                                       
 <surfacetype xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
ino:id="*">METAL</surfacetype>
                                                                                
</xql:result>
                                                                        
</xsv:àçèéäöüÄÖÜiso8859XPathTest>
                                                                </D:prop>
                                                                <D:status>HTTP/1.1 200 
OK</D:status>
                                                        </D:propstat>
                                                </D:response>
                                        </D:multistatus>
                        ]]></body>
                </response>
        </step>
        <cleanup>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                                
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
        </cleanup>
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/DASL/singleXPathSingWhereRefName_zh.xml
  
  Index: singleXPathSingWhereRefName_zh.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Search for properties specified by an XPath query where 
another XPath exists.
                Only one XPath query is defined. The 'refname' is used within the 
Where elements.
                </abstract>
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                <description>
                1) A resource is Put on to the Server. 
                2) A second resource is put to the server. This has a different 
attribute to the first.
                3) A Search is performed to find the properties defined by the XPath.
                4) The resource is deleted.
                </description>
                <expectedResult>XPath in Select evaluated correctly and used within 
Where clause.
                A 207 Multi-Status response code should be returned. Within the body, 
a 200 OK response code
                should be returned for each resource along with the requested property 
for each resource.</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_zh/UTF-8/rootelement/inst2_table_doctypei18n_utf-8NP.xm1"
 fileEncoding="UTF-8"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_zh/UTF-8/rootelement/inst3_table_doctypei18n_utf-8NP.xm1"
 fileEncoding="UTF-8"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command varUsage="globalVariableServerName">SEARCH 
/%globalVariableServerName% HTTP/1.1</command>
                        <body 
varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <searchrequest xmlns:D="DAV:" 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                <D:basicsearch>
                                                        <D:select>
                                                                <D:prop>
                                                                        <xsv:xpath 
name="即可顯示utf8XPathTest">即可顯示utf8/surface/surfacetype</xsv:xpath>
                                                                </D:prop>
                                                        </D:select>
                                                        <D:from>
                                                                <D:scope>
                                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
                                                                </D:scope>
                                                        </D:from>
                                                        <D:where>
                                                                <xsv:xpath 
refname="即可顯示utf8XPathTest"/>
                                                        </D:where>
                                                        <D:orderby>
                                                                <D:order>
                                                                        <D:prop>
                                                                                
<D:displayname/>
                                                                        </D:prop>
                                                                        </D:order>
                                                        </D:orderby>
                                                </D:basicsearch>
                                        </searchrequest>
                                ]]></body>
                </request>
                <response>
                        <command>HTTP/1.0 207 Multi-Status</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <D:multistatus xmlns:D="DAV:">
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test2.xml</D:href>
                                                        <D:propstat>
                                                                <D:prop>
                                                                        
<xsv:即可顯示utf8XPathTest 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                                                
<xql:xql 
xmlns:xql="http://metalab.unc.edu/xql/";>即可顯示utf8/surface/surfacetype</xql:xql>
                                                                                
<xql:result xmlns:xql="http://metalab.unc.edu/xql/";>
                                                                                       
 <surfacetype xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
ino:id="1">即可顯示</surfacetype>                                                  
                              </xql:result>
                                                                        
</xsv:即可顯示utf8XPathTest>
                                                                </D:prop>
                                                                <D:status>HTTP/1.1 200 
OK</D:status>
                                                        </D:propstat>
                                                </D:response>
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test3.xml</D:href>
                                                        <D:propstat>
                                                                <D:prop>
                                                                        
<xsv:即可顯示utf8XPathTest 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                                                
<xql:xql 
xmlns:xql="http://metalab.unc.edu/xql/";>即可顯示utf8/surface/surfacetype</xql:xql>
                                                                                
<xql:result xmlns:xql="http://metalab.unc.edu/xql/";>
                                                                                       
 <surfacetype xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
ino:id="2">METAL</surfacetype>
                                                                                
</xql:result>
                                                                        
</xsv:即可顯示utf8XPathTest>
                                                                </D:prop>
                                                                <D:status>HTTP/1.1 200 
OK</D:status>
                                                        </D:propstat>
                                                </D:response>
                                        </D:multistatus>
                        ]]></body>
                </response>
        </step>
        <cleanup>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                                
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
        </cleanup>
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/DASL/singleXPathSingWhereRefName_ja.xml
  
  Index: singleXPathSingWhereRefName_ja.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Search for properties specified by an XPath query where 
another XPath exists.
                Only one XPath query is defined. The 'refname' is used within the 
Where elements.
                </abstract>
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                <description>
                1) A resource is Put on to the Server. 
                2) A second resource is put to the server. This has a different 
attribute to the first.
                3) A Search is performed to find the properties defined by the XPath.
                4) The resource is deleted.
                </description>
                <expectedResult>XPath in Select evaluated correctly and used within 
Where clause.
                A 207 Multi-Status response code should be returned. Within the body, 
a 200 OK response code
                should be returned for each resource along with the requested property 
for each resource.</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_ja/UTF-8/rootelement/inst2_table_doctypei18n_utf-8NP.xm1"
 fileEncoding="UTF-8"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_ja/UTF-8/rootelement/inst3_table_doctypei18n_utf-8NP.xm1"
 fileEncoding="UTF-8"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command varUsage="globalVariableServerName">SEARCH 
/%globalVariableServerName% HTTP/1.1</command>
                        <body 
varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <searchrequest xmlns:D="DAV:" 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                <D:basicsearch>
                                                        <D:select>
                                                                <D:prop>
                                                                        <xsv:xpath 
name="製品番号utf8XPathTest">製品番号utf8/surface/surfacetype</xsv:xpath>
                                                                </D:prop>
                                                        </D:select>
                                                        <D:from>
                                                                <D:scope>
                                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
                                                                </D:scope>
                                                        </D:from>
                                                        <D:where>
                                                                <xsv:xpath 
refname="製品番号utf8XPathTest"/>
                                                        </D:where>
                                                        <D:orderby>
                                                                <D:order>
                                                                        <D:prop>
                                                                                
<D:displayname/>
                                                                        </D:prop>
                                                                        </D:order>
                                                        </D:orderby>
                                                </D:basicsearch>
                                        </searchrequest>
                                ]]></body>
                </request>
                <response>
                        <command>HTTP/1.0 207 Multi-Status</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <D:multistatus xmlns:D="DAV:">
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test2.xml</D:href>
                                                        <D:propstat>
                                                                <D:prop>
                                                                        
<xsv:製品番号utf8XPathTest 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                                                
<xql:xql 
xmlns:xql="http://metalab.unc.edu/xql/";>製品番号utf8/surface/surfacetype</xql:xql>
                                                                                
<xql:result xmlns:xql="http://metalab.unc.edu/xql/";>
                                                                                       
 <surfacetype xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
ino:id="1">製品番号</surfacetype>                                                  
                              </xql:result>
                                                                        
</xsv:製品番号utf8XPathTest>
                                                                </D:prop>
                                                                <D:status>HTTP/1.1 200 
OK</D:status>
                                                        </D:propstat>
                                                </D:response>
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test3.xml</D:href>
                                                        <D:propstat>
                                                                <D:prop>
                                                                        
<xsv:製品番号utf8XPathTest 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                                                
<xql:xql 
xmlns:xql="http://metalab.unc.edu/xql/";>製品番号utf8/surface/surfacetype</xql:xql>
                                                                                
<xql:result xmlns:xql="http://metalab.unc.edu/xql/";>
                                                                                       
 <surfacetype xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
ino:id="2">METAL</surfacetype>
                                                                                
</xql:result>
                                                                        
</xsv:製品番号utf8XPathTest>
                                                                </D:prop>
                                                                <D:status>HTTP/1.1 200 
OK</D:status>
                                                        </D:propstat>
                                                </D:response>
                                        </D:multistatus>
                        ]]></body>
                </response>
        </step>
        <cleanup>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                                
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
        </cleanup>
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/DASL/singleXPathSingWhereRefName_en.xml
  
  Index: singleXPathSingWhereRefName_en.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Search for properties specified by an XPath query where 
another XPath exists.
                Only one XPath query is defined. The 'refname' is used within the 
Where elements.
                </abstract>
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                <description>
                1) A resource is Put on to the Server. 
                2) A second resource is put to the server. This has a different 
attribute to the first.
                3) A Search is performed to find the properties defined by the XPath.
                4) The resource is deleted.
                </description>
                <expectedResult>XPath in Select evaluated correctly and used within 
Where clause.
                A 207 Multi-Status response code should be returned. Within the body, 
a 200 OK response code
                should be returned for each resource along with the requested property 
for each resource.</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_en/ISO-8859-1/rootelement/inst2_table_doctypei18n_iso-8859-1UE.xm1"
 fileEncoding="ISO-8859-1"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        <body 
fileReference="../../contentDirectory/I18N/schema_en/ISO-8859-1/rootelement/inst3_table_doctypei18n_iso-8859-1UE.xm1"
 fileEncoding="ISO-8859-1"/>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <step>
                <request>
                        <command varUsage="globalVariableServerName">SEARCH 
/%globalVariableServerName% HTTP/1.1</command>
                        <body 
varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <searchrequest xmlns:D="DAV:" 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                <D:basicsearch>
                                                        <D:select>
                                                                <D:prop>
                                                                        <xsv:xpath 
name="àçèéäöüÄÖÜiso8859XPathTest">àçèéäöüÄÖÜiso8859/surface/surfacetype</xsv:xpath>
                                                                </D:prop>
                                                        </D:select>
                                                        <D:from>
                                                                <D:scope>
                                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
                                                                </D:scope>
                                                        </D:from>
                                                        <D:where>
                                                                <xsv:xpath 
refname="àçèéäöüÄÖÜiso8859XPathTest"/>
                                                        </D:where>
                                                        <D:orderby>
                                                                <D:order>
                                                                        <D:prop>
                                                                                
<D:displayname/>
                                                                        </D:prop>
                                                                        </D:order>
                                                        </D:orderby>
                                                </D:basicsearch>
                                        </searchrequest>
                                ]]></body>
                </request>
                <response>
                        <command>HTTP/1.0 207 Multi-Status</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <D:multistatus xmlns:D="DAV:">
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test2.xml</D:href>
                                                        <D:propstat>
                                                                <D:prop>
                                                                        
<xsv:àçèéäöüÄÖÜiso8859XPathTest 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                                                
<xql:xql 
xmlns:xql="http://metalab.unc.edu/xql/";>àçèéäöüÄÖÜiso8859/surface/surfacetype</xql:xql>
                                                                                
<xql:result xmlns:xql="http://metalab.unc.edu/xql/";>
                                                                                       
 <surfacetype xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
ino:id="1">àçèéäöüÄÖÜ</surfacetype>
                                                                                
</xql:result>
                                                                        
</xsv:àçèéäöüÄÖÜiso8859XPathTest>
                                                                </D:prop>
                                                                <D:status>HTTP/1.1 200 
OK</D:status>
                                                        </D:propstat>
                                                </D:response>
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test3.xml</D:href>
                                                        <D:propstat>
                                                                <D:prop>
                                                                        
<xsv:àçèéäöüÄÖÜiso8859XPathTest 
xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav";>
                                                                                
<xql:xql 
xmlns:xql="http://metalab.unc.edu/xql/";>àçèéäöüÄÖÜiso8859/surface/surfacetype</xql:xql>
                                                                                
<xql:result xmlns:xql="http://metalab.unc.edu/xql/";>
                                                                                       
 <surfacetype xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
ino:id="2">METAL</surfacetype>
                                                                                
</xql:result>
                                                                        
</xsv:àçèéäöüÄÖÜiso8859XPathTest>
                                                                </D:prop>
                                                                <D:status>HTTP/1.1 200 
OK</D:status>
                                                        </D:propstat>
                                                </D:response>
                                        </D:multistatus>
                        ]]></body>
                </response>
        </step>
        <cleanup>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
                                
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test3.xml HTTP/1.1</command>
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
                        </response>
                </step>
        </cleanup>
  </test>
  
  
  

--
To unsubscribe, e-mail:   <mailto:slide-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-dev-help@;jakarta.apache.org>

Reply via email to