I don't know why but the following template match expression never
gets matched :(
<xsl:template
match="FormElement[(_at_)type='text'][(_at_)type='password'][(_at_)type='submit'][(_at_)type='reset']">
...
</xsl:template>
The calling directive is simply <xsl:apply-templates select="FormElement" />
And the source is
<XaoForm id="Category_Add" action="category.php?cat_id=4"
method="post" caption="Add a new Category">
<FormElement type="text" name="CatName" caption="New Category"
css="width: 100%">
<FormElement type="hidden" name="VLD_NotNull_CatName">
<Default>You must enter the category's name'</Default>
</FormElement>
</FormElement>
<FormElement type="submit" name="Add">
<Default>Save Changes</Default>
</FormElement>
<FormElement type="reset" name="Add">
<Default>Reset Form</Default>
</FormElement>
</XaoForm>
If I remove all the contions or just leave one condition, then it
matches. As soon as I put the rest of them back in, it stops matching.
I also had to suppress the text() node using
<xsl:template match="text()" /> even though I never used the generic
<xsl:apply-templates /> anywhere
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--