Thanks again, this seems to fit best with what I have to work with.

I do already have a schema (or ten) but it should be much more manageable than going through the individual stylesheets. I'm currently giving this option a try and keeping my fingers crossed.

Thanks for your patience!

Regards,
Andrei Mihu




The only way I can think of to make this change globally is to
 
(a) define a schema for your source document that defines these fields (e.g. fo:con, fo:acc) to be of type xs:decimal, and
 
(b) run the stylesheet under a schema-aware processor.
 
If you've already got a schema, this may not be much effort. You don't actually need to change the stylesheet to reference the schema, you just need to ensure the input document is validated against the schema (by using -val:strict on the command line) when the transformation is run. If you don't already have a schema, you could generate one from the instance - there are a number of tools to do that.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay

[snip]

The information contained in this message may be CONFIDENTIAL and is intended for the addressee only. Any unauthorised use, dissemination of the information, or copying of this message is prohibited. If you are not the addressee, please notify the sender immediately by return e-mail and delete this message. Although this e-mail and any attachments are believed to be free of any virus, or other defect which might affect any computer or system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by M & G for any loss or damage from receipt or use thereof. Please note that all e-mail messages are subject to interception for lawful business purposes.

M & G Limited is incorporated and registered in England and Wales under registered number 1048359. Registered office: Laurence Pountney Hill, London, EC4R 0HH. M & G Limited is a wholly owned subsidiary of Prudential plc.