Segue abaixo o código de formatação de data para o padrão europeu.
<xsl:decimal-format name="european" decimal-separator=',' grouping-separator='.' />
<xsl:value-of select="format-number(24535.2, '###.###,00', 'european')"/>
Mostrando postagens com marcador XSLT. Mostrar todas as postagens
Mostrando postagens com marcador XSLT. Mostrar todas as postagens
quarta-feira, 5 de setembro de 2012
Formatando data para padrão europeu
Funções XSLT
Caros, segue abaixo uma tabela de referência de funções em xslt:
| Name | Description |
|---|---|
| current() | Returns the current node |
| document() | Used to access the nodes in an external XML document |
| element-available() | Tests whether the element specified is supported by the XSLT processor |
| format-number() | Converts a number into a string |
| function-available() | Tests whether the function specified is supported by the XSLT processor |
| generate-id() | Returns a string value that uniquely identifies a specified node |
| key() | Returns a node-set using the index specified by an <xsl:key> element |
| system-property() | Returns the value of the system properties |
| unparsed-entity-uri() | Returns the URI of an unparsed entity |
Assinar:
Postagens (Atom)