AnsweredAssumed Answered

Include current date with XML Export

Question asked by fmdataweb on Jun 2, 2015
Latest reply on Jun 3, 2015 by user19752

I'm working on an XML export from a Products table using a simple XSLT stylesheet with FileMaker Pro/Server v13.


I've been asked to make one change to the export to include the date the file was generated in YYYY-MM-DD format. For example it currently starts like this:


<?xml version="1.0" encoding="utf-8"?>




and they would like it to now start like this:


<?xml version="1.0" encoding="utf-8"?>

<contacts Date="2015-06-02">



My XSLT skills are pretty basic - can anyone show me how to include the date via XSLT? Do I need to create a field just for this purpose or can XSLT do this for me?