Page 1 of 1

XML created date

Posted: Fri Mar 11, 2011 5:24 pm
by tom_maslen
Hello,

Is it possible using the Oxygen environment variables (or something else) to find out what the created date is for an XML file?

I'm transforming XML into HTML, and need to set the created date meta data field.

Many thanks,
Tom Maslen.

Re: XML created date

Posted: Fri Mar 11, 2011 6:34 pm
by sorin_ristache
Hello,

I understand that you need the created date stored in the filesystem for a file and use it in the XSLT stylesheet for setting a meta data field in the HTML output. In that case you have to find the created date with a Java extension called from your XSLT stylesheet that you must register as extension in the XSLT transformation scenario (the Extensions button).

Any environment variable is also available in Oxygen but:

1. There is no environment variable for the created date of a specific file (unless you create such a variable yourself in the environment before starting Oxygen).

2. The environment variables are available in the Oxygen dialog boxes as Oxygen editor variables usually for composing file names like the input and output files of a transformation, the input and output files of an external tool, the name of the schema file in a validation scenario, etc.


Regards,
Sorin