cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject cvs commit: xml-cocoon2/src/documentation/xdocs/userdocs/transformers i18n-transformer.xml transformers.xml
Date Fri, 07 Jun 2002 19:57:47 GMT
shannon     2002/06/07 12:57:47

  Modified:    src/documentation/xdocs/userdocs/transformers Tag:
                        cocoon_2_0_3_branch i18n-transformer.xml
                        transformers.xml
  Log:
  sync with head
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +9 -7      xml-cocoon2/src/documentation/xdocs/userdocs/transformers/i18n-transformer.xml
  
  Index: i18n-transformer.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/transformers/i18n-transformer.xml,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- i18n-transformer.xml	3 Jan 2002 12:31:06 -0000	1.1
  +++ i18n-transformer.xml	7 Jun 2002 19:57:47 -0000	1.1.2.1
  @@ -186,25 +186,27 @@
   				<p>
   					If no pattern was specified then the date will be formatted with the <code>DateFormat.DEFAULT</code>
format (both date and time). If no value for the date is specified then the current date will
be used. E.g.: <code><![CDATA[<i18n:date/> ]]></code> will result
in the current date, formatted with default localized pattern.
   				</p>
  -				<p>To format numbers in locale sensitive manner use <code><![CDATA[<i18n:number
pattern="0.##" value="2.0" />]]></code>. This will be useful for Arabic, Indian,
etc. number formatting. Additionally, currencies and percent formatting can be used. E.g.:

  +				<p>To format numbers in locale sensitive manner use <code><![CDATA[<i18n:number
pattern="0.##" value="2.0" />]]></code>. This will be useful for Arabic, Indian,
etc. number formatting. Additionally, currencies and percent formatting can be used, known
types are <code>currency</code>, <code>currency-no-unit</code>, <code>int-currency</code>,
<code>int-currency-no-unit</code> and <code>percent</code>. Another
useful attribute is <code>fraction-digits</code>, E.g.: 
    				</p>
   					<ul>
  -						<li><code><![CDATA[<i18n:number sub-type="currency" value="1703.74"
/>]]></code> will result in localized presentation of the <code>value</code>
- $1,703.74 for US locale.</li>
  -						<li><code><![CDATA[<i18n:number sub-type="int-currency" value="170374"
/>]]></code> will result in localized presentation of the <code>value</code>
- $1,703.74 for US locale, 170374 for a currency without subunit.</li>
  -						<li><code><![CDATA[<i18n:number sub-type="percent" value="1.2"
/>]]></code> will result in localized percent <code>value</code> -
%120 for most of the locales.</li>
  +						<li><code><![CDATA[<i18n:number type="currency" value="1703.7434"
/>]]></code> will result in localized presentation of the <code>value</code>
- $1,703.74 for US locale.</li>
  +						<li><code><![CDATA[<i18n:number type="currency" fraction-digits="3"
value="1703.7434" />]]></code> will result in localized presentation of the <code>value</code>
- $1,703.743 for US locale so you can print gasonline prices.</li>
  +						<li><code><![CDATA[<i18n:number type="int-currency" value="170374"
/>]]></code> will result in localized presentation of the <code>value</code>
- $1,703.74 for US locale, 170374 (with unit) for a currency without subunit.</li>
  +						<li><code><![CDATA[<i18n:number type="int-currency-no-unit" value="170374"
/>]]></code> will result in localized presentation of the <code>value</code>
- 1,703.74 for US locale, 170374 (without) for a currency without subunit.</li>
  +						<li><code><![CDATA[<i18n:number type="percent" value="1.2" />]]></code>
will result in localized percent <code>value</code> - %120 for most of the locales.</li>
   					</ul>
   				<p>
  -					Also, date and number formatting can be used with substitution params. Additional
<code>type</code> attribute must be used with params to indicate the param type
(date or number). Default type is <code>string</code>.
  +					Also, date and number formatting can be used with substitution params. <code>type</code>
attribute must be used with params to indicate the param type (date, number, currency, ...).
Default type is <code>string</code>.
   				</p>
   				<source><![CDATA[
   <i18n:translate>
     <i18n:text>
       You have to pay {0} for {1} pounds or {2} of your profit. Valid from {3}
     </i18n:text>
  -  <i18n:param type="number" sub-type="currency"
  +  <i18n:param type="currency"
                 pattern="$#,##0.00">102.5</i18n:param>
     <i18n:param type="number" value="2.5">
  -  <i18n:param type="number" sub-type="percent" value="0.10" />	
  +  <i18n:param type="percent" value="0.10" />	
     <i18n:param type="date" pattern="dd-MMM-yy" />
   </i18n:translate>]]></source>
   				<p>
  
  
  
  1.1.2.1   +11 -6     xml-cocoon2/src/documentation/xdocs/userdocs/transformers/transformers.xml
  
  Index: transformers.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/transformers/transformers.xml,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- transformers.xml	3 Jan 2002 12:31:06 -0000	1.1
  +++ transformers.xml	7 Jun 2002 19:57:47 -0000	1.1.2.1
  @@ -9,18 +9,23 @@
   		<authors>
   			<person name="Carsten Ziegeler" email="cziegeler@apache.org"/>
   		 </authors>
  -		 <abstract>This document describes all available transformers of Cocoon.</abstract>
  +		 <abstract>This document describes all of the available transformers of Cocoon.</abstract>
   	</header>
   	<body>
   		<s1 title="Goal">
  -			<p>This document lists all available transformers of Apache Cocoon and
  +			<p>This document lists all of the available transformers of Apache Cocoon and
                        describes their purpose.</p>
   		 </s1>
   		 <s1 title="Overview">
  -			<p>A transformer is the central point in the pipeline. It transform 
  -                     SAX events in SAX events. For more information about transformers
  -                     see <link href="../concepts/sitemap.html">the sitemap</link>.
  -      	      </p>
  +  <p>
  +A transformer is the central point in a sitemap pipeline. Within a pipeline match, transformers
consume SAX events and emit SAX events. Transformers are placed inside a pipeline match between
a generator and a serializer. You can include several transformers within a pipeline match.
Any pipeline match containing a generator and transformer must end with a serializer.
  +  </p>
  +  <p>
  +In the sitemap file, each transformer has a unique name which is mapped to a java class.
One transformer name must be declared as the default transformer. Each transformer may have
additional configuration information specified in child elements.
  +  </p>
  +  <p>
  + For more conceptual information about transformers see <link href="../concepts/sitemap.html">the
sitemap</link>.
  +  </p>
   		 </s1>
   		 <s1 title="The Transformers in Apache Cocoon">
   			<ul>
  
  
  

----------------------------------------------------------------------
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