[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

bad match expression

Subject: bad match expression
From: Terence Kearns <terence.kearns@xxxxxxxxxxxxxxx>
Date: Thu, 2 Feb 2006 19:42:19 +1100
xsl match expression
I don't know why but the following template match expression never
gets matched :(

<xsl:template
match="FormElement[@type='text'][@type='password'][@type='submit'][@type='res
et']">
...
</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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.