This may be a simple one, and it may have already been answered, but I have not been able to find any information on it. (Perhaps that's because I don't really know what this process would be called?) Regardless, on to the issue...
I'm working with XSLT 1.0 and I have an <xsl:if> statement with numerous test conditions. It is possible, in the future, than even more conditions could be added. Given the length of the test conditions and the likelihood of more being added, I'm wondering if it is possible to enter the test conditions on multiple lines within the code (without nesting more <xsl:if> statements inside each other)? Being able to do so would make it much easier to read and understand the various test conditions.
<xsl:if test="$someval1 = 'A' and $someval2 = 'B' and $someval3 = 'C'"/>
For example, could the code above be rewritten in some way similar to the code below?
<xsl:if test="$someval1 = 'A'
and $someval2 = 'B'
and $someval3 = 'C'"/>
Any and all help is greatly appreciated.
Thanks!
Aucun commentaire:
Enregistrer un commentaire