[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Match pattern
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|