Operation Manual
490
USING DREAMWEAVER
Displaying XML data with XSLT
Last updated 3/28/2012
In the following example, you want to display the price subelement of the item node:
This selection would insert the following code in your XSLT page:
<xsl:value-of select="price"/>
3 (Optional) Select a formatting option from the Format pop-up menu.
Formatting a selection is useful when the value of your node returns a number. Dreamweaver provides a predefined
list of formatting functions. For a complete list of available formatting functions and examples, see the Reference panel.
In the following example, you want to format the price subelement as a currency with two decimal places:
These options would insert the following code in your XSLT page:
<xsl:value-of select="format-number(provider/store/items/item/price,'$#.00')"/>
4 Click OK.