Operation Manual
Note: If you select a different node in the XML schema tree, the expression changes to reflect your choice.
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.
5. To display the value of each node in the XML file, apply a repeating region to the element containing the dynamic text (for
example, an HTML table row or a paragraph).
684