Fw: Match pattern

Subject: Fw: Match pattern
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Sun, 24 Jan 1999 11:21:54 +0200
The pattern match="*[SomeElement]" does work, while match=".[SomeElement]"
doesn't, at least in my version of XT. Thanks for everyone who replied.

It still seems to me as though "./SomeElement" should be a valid match
pattern, since I can't find a restriction of match petterns to absolute
patterns. As Dieter correctly pointed out, however, this is equivalent to
"SomeElement" under the current rules.

Does anyone know why the rule isn't simply that:

<xsl:template match="pattern">...</xsl:template>

Would be equivalent to:

<xsl:template match=everything>
<xsl:if test="pettern">...</xsl:if>
</xsl:template>

What's the advantage of the current rule?

Share & Enjoy,

    Oren Ben-Kiki


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


Current Thread