cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ive...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/samples/xmlform/schematron wizard-xmlform-sch-report.xml
Date Sun, 27 Oct 2002 07:34:53 GMT
ivelin      2002/10/27 00:34:53

  Modified:    src/webapp/samples/xmlform/schematron
                        wizard-xmlform-sch-report.xml
  Log:
  formatting
  
  Revision  Changes    Path
  1.4       +39 -65    xml-cocoon2/src/webapp/samples/xmlform/schematron/wizard-xmlform-sch-report.xml
  
  Index: wizard-xmlform-sch-report.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/xmlform/schematron/wizard-xmlform-sch-report.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- wizard-xmlform-sch-report.xml	30 Jun 2002 17:00:45 -0000	1.3
  +++ wizard-xmlform-sch-report.xml	27 Oct 2002 07:34:53 -0000	1.4
  @@ -9,95 +9,69 @@
   	Author: Ivelin Ivanov, ivelin@apache.org, April 2002
   
   -->
  -
  -<schema ns="http://xml.apache.cocoon/xmlform"  xmlns="http://www.ascc.net/xml/schematron">
  -
  +<schema ns="http://xml.apache.cocoon/xmlform"
  +	xmlns="http://www.ascc.net/xml/schematron">
   	<title>Schema for the XML Form example</title>
  -  
  -    <phase id="userIdentity">
  -            <p>For user identity information.</p>
  -            <active pattern="user"/>
  -    </phase>
  -    <phase id="deployment">
  -            <p>For deployment info page.</p>
  -            <active pattern="dep" />
  -    </phase>
  -    <phase id="system">
  -            <p>For system info page.</p>
  -            <active pattern="sys" />
  -    </phase>
  -    <phase id="confirm">
  -            <p>For final total validation and tracking 
  -                some tricky problems.</p>
  -            <active pattern="user" />
  -            <active pattern="dep" />
  -            <active pattern="sys" />
  -    </phase>
  -
  -    
  +	<phase id="userIdentity">
  +		<p>For user identity information.</p>
  +		<active pattern="user"/>
  +	</phase>
  +	<phase id="deployment">
  +		<p>For deployment info page.</p>
  +		<active pattern="dep" />
  +	</phase>
  +	<phase id="system">
  +		<p>For system info page.</p>
  +		<active pattern="sys" />
  +	</phase>
  +	<phase id="confirm">
  +		<p>For final total validation and tracking some tricky problems.</p>
  +		<active pattern="user" />
  +		<active pattern="dep" />
  +		<active pattern="sys" />
  +	</phase>
   	<pattern name="User Info Validation Pattern" id="user">
   		<rule context="/firstName">
  -			<assert  test="string-length(.) &gt; 3">
  -        First name <anametag/> <wrapper>should</wrapper> be at least
4 characters.
  -      </assert>
  -			<assert  test="string-length(.) &lt; 20">
  -        First name should be less than 20 characters.
  -      </assert>
  +			<assert test="string-length(.) &gt; 3">First name <anametag/> 
  +				<wrapper>should</wrapper> be at least 4 characters.</assert>
  +			<assert test="string-length(.) &lt; 20">First name should be less
  +				than 20 characters.</assert>
   		</rule>
   		<rule context="/lastName">
  -			<assert  test="string-length(.) &gt; 3">
  -        Last name should be at least 4 characters.
  -      </assert>
  -			<assert  test="string-length(.) &lt; 20">
  -        Last name should be less than 20 characters.
  -      </assert>
  +			<assert test="string-length(.) &gt; 3">Last name should be at least
  +				4 characters.</assert>
  +			<assert test="string-length(.) &lt; 20">Last name should be less
  +				than 20 characters.</assert>
   		</rule>
   		<rule context="/email">
  -			<assert test="contains( string(.),'@')">
  -        Email format is invalid.
  -      </assert>
  +			<assert test="contains( string(.),'@')">Email format is invalid.</assert>
   		</rule>
   		<rule context="/age">
  -			<assert test="number() &gt; 0 and number(.) &lt; 200">
  -        Age should be a reasonably big positive number.
  -      </assert>
  +			<assert test="number() &gt; 0 and number(.) &lt; 200">Age should be
  +				a reasonably big positive number.</assert>
   		</rule>
   	</pattern>
  -  
   	<pattern name="Deployment Information Validation Pattern" id="dep">
   		<rule context="/number">
  -			<assert  test="number() &gt; 0"> 
  -        The number of deployments must be non-negative ( hopefully positive :-> ) .
  -      </assert>
  +			<assert test="number() &gt; 0">The number of deployments must be
  +				non-negative ( hopefully positive :-> ) .</assert>
   		</rule>
   		<rule context="/">
  -      <!-- 
  +			<!-- 
           If the site is to be published, then verify the URL.
           Note: This assertion demonstrates the unique ability of 
           Schematron to test document node dependencies.
           This is not possible to do with XML Schema and Relax NG.
          -->
  -			<assert  test="not(string(publish) = 'true') or (starts-with(liveUrl, 'http://')
and contains( string(liveUrl),'.') ) "> 
  -        The URL of the published site is invalid.
  -      </assert>
  +			<assert
  +				test="not(string(publish) = 'true') or (starts-with(liveUrl, 'http://') and contains(
string(liveUrl),'.') ) "
  +				>The URL of the published site is invalid.</assert>
   		</rule>
   	</pattern>
  -  
   	<pattern name="System Information Validation Pattern" id="sys">
   		<rule context="/system/@ram">
  -			<assert test="number() &gt; 0"> 
  -        The RAM value should be a positive number, denoting the memory in MB (e.g. 128,
512, etc.).
  -      </assert>
  +			<assert test="number() &gt; 0">The RAM value should be a positive
  +				number, denoting the memory in MB (e.g. 128, 512, etc.).</assert>
   		</rule>
   	</pattern>
  -
   </schema>
  -
  -
  -
  -
  -
  -
  -
  -
  -
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message