Commit for development environment setup
This commit is contained in:
30
PROMS/Documents/xslhelp.TXT
Normal file
30
PROMS/Documents/xslhelp.TXT
Normal file
@@ -0,0 +1,30 @@
|
||||
<group>
|
||||
<item>
|
||||
<id>item 1</id>
|
||||
<CategoryName>blue</CategoryName>
|
||||
</item>
|
||||
<item>
|
||||
<id>item 2</id>
|
||||
<CategoryName></CategoryName>
|
||||
</item>
|
||||
<item>
|
||||
<id>item 3</id>
|
||||
</item>
|
||||
...
|
||||
</group>
|
||||
A sample use case would look like:
|
||||
|
||||
<xsl:for-each select="/group/item">
|
||||
<xsl:if test="CategoryName">
|
||||
<!-- will be instantiated for item #1 and item #2 -->
|
||||
</xsl:if>
|
||||
<xsl:if test="not(CategoryName)">
|
||||
<!-- will be instantiated for item #3 -->
|
||||
</xsl:if>
|
||||
<xsl:if test="CategoryName != ''">
|
||||
<!-- will be instantiated for item #1 -->
|
||||
</xsl:if>
|
||||
<xsl:if test="CategoryName = ''">
|
||||
<!-- will be instantiated for item #2 -->
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
Reference in New Issue
Block a user