Forum How do I...?

Can Prince Format Dates in XML

atopher
Hi,

I have an XML document with dates formatted as YMD, is there any way of telling Prince to re-format these dates in DMY format or does it have to be driven by the XML?

The XML looks something like this and is formatted into a table using CSS.

<outputRow>
<item>Item One</item>
<statusdesc>A - Available</statusdesc>
<purchdate>2005-03-09</purchdate>
</outputRow>

Thanks,

Chris
mikeday
This is tricky, the best way is probably to transform the XML closer to the intended output document, with text in the correct order.
atopher
Thanks......thought this would be the best way.

Is there a known limit to the number of records that prince can convert to one document. I'm using Prince to generate tabular reports, some of them could contain 10k+ record rows (around 100 pages). This takes some time to convert (I'd expect this); and sometimes falls over.

Currently I've worked around this by splitting the data up and converting into mulitiple PDF files......then merging them back together again using Ghostscript or similar. Obviously this loses some of the page numbers and formatting so i's not ideal.

Have you any best practice thoughts on how Prince could convert this in one go?
mikeday
The next maintenance release of Prince will feature reduced memory usage for documents containing many elements, such as thousands of table cells, which might help with this.