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

Re: Match pattern

Subject: Re: Match pattern
From: Keith Visco <kvisco@xxxxxxxxx>
Date: Thu, 21 Jan 1999 12:55:25 -0500
re.match
Oren,

Match Patterns need to be absolute, so "." won't work here. 

Try: 

<xsl:template match="*/SomeElement"> 
...
</xsl:template>

instead.

--Keith

Oren Ben-Kiki wrote:
> 
> I tried matching a node if it had at least one direct child of some type. I
> wrote:
> 
> <xsl:template match="./SomeElement">
>     ...
> </xsl:template>
> 
> But XT reported that this is not a match pattern. The WD specified that
> MatchExpr is the same as SelectExpr, and that it matches when the expression
> returns true if evaluated in the node's context; I took it to means that if:
> 
> <xsl:template match="*">
>     <xsl:if test="some-test">
>         ...
>     </xsl:if>
> </xsl:template>
> 
> works, then its OK to use "some-test" as a match pattern. For this test it
> isn't OK. Is this an XT bug or am I missing something here? Is there an
> alternative way to write the match pattern?
> 
> Have fun,
> 
>     Oren Ben-Kiki
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.