beautypg.com

Set conditional region (if) properties, Set conditional (when) properties, Insert xsl comments – Adobe Dreamweaver CC 2015 User Manual

Page 529: Add xsl comment tags to a document, Wrap a selection in xsl comment tags

background image

522

XML

Last updated 6/3/2015

4

To insert another condition, place the insertion point in Code view between tag pairs or just before the
tag, and then insert a conditional region (Insert > XSLT Objects > Conditional Region).

After you specify the condition and click OK, another tag is inserted in the block.

For more information and examples on writing conditional expressions, see the sections in the
Reference panel (Help > Reference).

Set conditional region (If) properties

The purpose of the Set Conditional Region Property inspector is to change the condition used in a conditional region
in your XSL page. The conditional region tests the condition and takes a course of action based on the result.

In the Test box, enter a new condition, and then press Enter.

Set conditional (When) properties

The purpose of the Set Conditional Region Property inspector is to change the condition used in a multiple conditional
region in your XSL page. The multiple conditional region tests the condition and takes a course of action based on the
result.

In the Test box, enter a new condition, and then press Enter.

Insert XSL comments

You can add XSL comment tags to a document, or you can wrap a selection in XSL comment tags.

Add XSL comment tags to a document

Do one of the following:

• In Design view, select Insert > XSLT Objects > XSL Comment, type the contents of the comment (or leave the

box blank), and click OK.

• In Code view, select Insert > XSLT Objects > XSL Comment.

You can also click on the XSL Comment icon in the XSLT category of the Insert panel.

Wrap a selection in XSL comment tags

1

Switch to Code view (View > Code).

2

Select the code you want to comment.

3

In the Coding toolbar, click the Apply Comment button and select Apply
Comment.

Use the XPath Expression Builder to add expressions for XML data

XPath (XML Path Language) is a non-XML syntax for addressing portions of an XML document. It is used mostly as
a query language for XML data, just as the SQL language is used to query databases. For more information on XPath,
see the XPath language specification on the W3C website at

www.w3.org/TR/xpath

.