Subject:stylus xml publisher and xpath Author:Willem Mol Date:29 Aug 2007 08:38 AM
Another one:
Values as euro's
To format <Amount>1500</Amount> to this output: € 1.500,00
XSLT goes like this:
<xsl:decimal-format name='euro' decimal-separator=',' grouping-separator/>
<xsl:value-of select="format-number(Amount,'#.###,00','euro')/>
Subject:stylus xml publisher and xpath Author:Minollo I. Date:29 Aug 2007 09:02 AM
You won't be able to set the data type as part of the sort information; that limitation is being addressed in the coming new release of Stylus Studio (public in November 2007).
About the format-number() function, you will be able to use the format-number() function as part of the XPath expression associated to a dynamic value; but you won't be able co control the decimal-format instruction from inside publisher. The main reason is that decimal-format is specific to XSLT and XML Publisher is meant to be able to generate both XSLT and XQuery; the same is true for format-number really, but we have created an XQuery function that emulates that. We will consider doing the same for the decimal-format instruction as well.