You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by ks...@apache.org on 2002/07/02 10:50:37 UTC

cvs commit: xml-xindice/docs/src ToolsReference.xml

kstaken     2002/07/02 01:50:37

  Modified:    docs/src ToolsReference.xml
  Log:
  Adding namespace switch to the command line tools doc.
  
  Revision  Changes    Path
  1.5       +16 -2     xml-xindice/docs/src/ToolsReference.xml
  
  Index: ToolsReference.xml
  ===================================================================
  RCS file: /home/cvs/xml-xindice/docs/src/ToolsReference.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ToolsReference.xml	14 Mar 2002 06:15:16 -0000	1.4
  +++ ToolsReference.xml	2 Jul 2002 08:50:37 -0000	1.5
  @@ -5,7 +5,7 @@
   
   <book id="tools-reference">
      <bookinfo>
  -      <title>Xindice Command Line Tools Reference 0.9</title>
  +      <title>Xindice Command Line Tools Reference 0.9.1</title>
         <author>
         <surname>Kalafus</surname>
         <firstname>Jay</firstname>
  @@ -964,6 +964,7 @@
               <command>xindice xpath</command>
               <arg choice="req">-c <replaceable>context</replaceable></arg>
               <arg choice="req">-q <replaceable>query</replaceable></arg>
  +            <arg choice="req">-s <replaceable>prefix=namespace</replaceable></arg>
               <arg choice="opt">-v <replaceable></replaceable></arg>
            </cmdsynopsis>
   
  @@ -986,6 +987,9 @@
                  <command>-q</command> The query to execute against the collection
               </member>
               <member>
  +               <command>-s</command> Semi-colon delimited list of namespaces for query in the form prefix=namespace-uri
  +            </member>
  +            <member>
                  <command>-v</command> Show verbose output
               </member>
            </simplelist>
  @@ -998,6 +1002,16 @@
               </title>
               <screen>
                  xindice xpath -c /db/pebbles -q /rock[@type="hard"]
  +            </screen>
  +         </example>
  +
  +         <example>
  +            <title>
  +               Run an Xpath query against all documents in the pebbles collection with "rock" node that has the type
  +               attribute = "hard" when the rock element is in the namespace http://www.bedrock.com
  +            </title>
  +            <screen>
  +               xindice xpath -c /db/pebbles -s "br=http://www.bedrock.com" -q /br:rock[@type="hard"]
               </screen>
            </example>
         </sect1>