You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2008/07/31 01:09:56 UTC
svn commit: r681240 - /ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd
Author: adrianc
Date: Wed Jul 30 16:09:56 2008
New Revision: 681240
URL: http://svn.apache.org/viewvc?rev=681240&view=rev
Log:
Small change to the simple-methods.xsd file: changed the set-calendar adjuster attributes to string types. We commonly use expressions for things like this, so these string data types will help avoid XML parser errors.
Modified:
ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd
Modified: ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd?rev=681240&r1=681239&r2=681240&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd (original)
+++ ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd Wed Jul 30 16:09:56 2008
@@ -4908,7 +4908,7 @@
The type of fields or value is Timestamp.
Again you can use the flexible string expander here, the ${} syntax and such. It can also do a type conversion,
- so going from whatever type the source data is in,which would be a string value or whatever the variable
+ so going from whatever type the source data is in, which would be a string value or whatever the variable
type is for a from field, it can convert that to any ofthese types before setting it in the target field.
You can also specify a default value in the case that the value evaluates to an empty string or the from-field is
@@ -4986,52 +4986,59 @@
</xs:restriction>
</xs:simpleType>
</xs:attribute>
- <xs:attribute type="xs:integer" name="years">
+ <xs:attribute type="xs:string" name="years">
<xs:annotation>
<xs:documentation>
- Add (optionally using +) or subtract (using -) a number of year(s)
+ Add (optionally using +) or subtract (using -) a number of year(s).
+ If an expression is used, it should evaluate to an integer.
</xs:documentation>
</xs:annotation>
</xs:attribute>
- <xs:attribute type="xs:integer" name="months">
+ <xs:attribute type="xs:string" name="months">
<xs:annotation>
<xs:documentation>
- Add (optionally using +) or subtract (using -) a number of month(s)
+ Add (optionally using +) or subtract (using -) a number of month(s).
+ If an expression is used, it should evaluate to an integer.
</xs:documentation>
</xs:annotation>
</xs:attribute>
- <xs:attribute type="xs:integer" name="days">
+ <xs:attribute type="xs:string" name="days">
<xs:annotation>
<xs:documentation>
- Add (optionally using +) or subtract (using -) a number of days(s)
+ Add (optionally using +) or subtract (using -) a number of days(s).
+ If an expression is used, it should evaluate to an integer.
</xs:documentation>
</xs:annotation>
</xs:attribute>
- <xs:attribute type="xs:integer" name="hours">
+ <xs:attribute type="xs:string" name="hours">
<xs:annotation>
<xs:documentation>
- Add (optionally using +) or subtract (using -) a number of hour(s)
+ Add (optionally using +) or subtract (using -) a number of hour(s).
+ If an expression is used, it should evaluate to an integer.
</xs:documentation>
</xs:annotation>
</xs:attribute>
- <xs:attribute type="xs:integer" name="minutes">
+ <xs:attribute type="xs:string" name="minutes">
<xs:annotation>
<xs:documentation>
- Add (optionally using +) or subtract (using -) a number of minute(s)
+ Add (optionally using +) or subtract (using -) a number of minute(s).
+ If an expression is used, it should evaluate to an integer.
</xs:documentation>
</xs:annotation>
</xs:attribute>
- <xs:attribute type="xs:integer" name="seconds">
+ <xs:attribute type="xs:string" name="seconds">
<xs:annotation>
<xs:documentation>
- Add (optionally using +) or subtract (using -) a number of second(s)
+ Add (optionally using +) or subtract (using -) a number of second(s).
+ If an expression is used, it should evaluate to an integer.
</xs:documentation>
</xs:annotation>
</xs:attribute>
- <xs:attribute type="xs:integer" name="millis">
+ <xs:attribute type="xs:string" name="millis">
<xs:annotation>
<xs:documentation>
- Add (optionally using +) or subtract (using -) a number of milli-second(s)
+ Add (optionally using +) or subtract (using -) a number of milli-second(s).
+ If an expression is used, it should evaluate to an integer.
</xs:documentation>
</xs:annotation>
</xs:attribute>