[opencms-dev] XSD mapping to date last modified

Dmitry Lihachev lda at tusur.ru
Thu Jan 26 09:48:36 CET 2006


Hi all.

How I can set mapping OpenCmsDateTime to "date last modification" in XSD?
When i use mapping to datereleased it works ok. But when i try to
use mapping to datelastmodified it doesn't work.


     ..............
     <xsd:sequence>
       <xsd:element name="Date" type="OpenCmsDateTime" />			
     </xsd:sequence>
     ..............
     <xsd:appinfo>
       <mappings>
         <mapping element="Date" mapto="attribute:datereleased" />
       </mappings>
     </xsd:appinfo>
     ..............
It works fine.


     ..............
     <xsd:sequence>
       <xsd:element name="Date" type="OpenCmsDateTime" />			
     </xsd:sequence>
     ..............
     <xsd:appinfo>
       <mappings>
         <mapping element="Date" mapto="attribute:datelastmodified" />
       </mappings>
     </xsd:appinfo>
     ..............
It doesn't set file attribute dateLastModified to the value of Date
field of XSD....

Any suggestions?



-- 
WBR, Dmitry Lihachev
icq uin: 120606300
e-mail: lda at tusur.ru, http://ilab.tusur.ru






More information about the opencms-dev mailing list