618543
689
Zoom out
Zoom in
Previous page
1/694
Next page
3. Click OK.
The following code is inserted in your XSLT page:
<xsl:if test="@available=&apos;true&apos;">
Content goes here
</xsl:if>
Note: You must surround string values such as true in quotes. Dreamweaver encodes the quotes for you (&apos;) so that
they are entered as valid XHTML.
In addition to testing nodes for values, you can use any of the supported XSLT functions in any conditional statement. The
condition is tested for the current node within your XML file. In the following example, you want to test for the last node in the
result set:
For more information and examples on writing conditional expressions, see the <xsl:if> section in the Reference panel (Help >
Reference).
Apply multiple conditional XSLT regions
You can write a simple conditional expression to insert into your XSLT page. If content is selected when you open the Conditional Region dialog
box, the content is wrapped in an <xsl:choose> block. If you do not select content, the <xsl:choose> block is added at the insertion point on the
page. It’s a good idea to use the dialog box to get started and then customize the expression in Code view.
The <xsl:choose> element is similar to the case statement in other languages. The element provides a way for you to test a condition and take a
course of action based on the result. The <xsl:choose> element allows you to test for multiple conditions.
1. Select Insert > XSLT Objects > Multiple Conditional Region or click the Multiple Conditional Region icon in the XLST category
of the Insert panel.
2. In the Multiple Conditional Region dialog box, enter the first condition.
In the following example, you want to test to see if the context node’s price subelement is less than 5.
3. Click OK.
In the example, the following code is inserted in your XSLT page:
<xsl:choose>
<xsl:when test="price&lt;5">
682
689


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Adobe Dreamweaver CS6 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Adobe Dreamweaver CS6 in the language / languages: English as an attachment in your email.

The manual is 6,14 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info