Subject: [xsl] Are these two the equivalent? From: "Nicholas Waltham" <info@xxxxxxxxxxxx> Date: Sun, 14 Oct 2001 14:25:29 +0200 |
Hello All, I have two ways of what I think should achieve the same result Example 1 gives me what I want, Example 2 does not. To me they are the same...If they are different, could someone explain to me why the second does not give me what I want. Thanks in advance, Nicholas Waltham Example 1: <xsl:template match="p[@style='L1'][preceding-sibling::p[last()][@style='L1']|preceding-si bling::p[last()][@style='L2']|preceding-sibling::p[last()][@style='L3']]"> <xsl:apply-templates/> </xsl:template> Example 2: <xsl:template match="p[@style='L1'][preceding-sibling::p[last()][@style='L1'|@style='L2'|@ style='L3']]"> <xsl:apply-templates/> </xsl:template> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] passing variables to a st, Jörg Heinicke | Thread | Re: [xsl] Are these two the equival, Jörg Heinicke |
Re: Schemas in XSLT 2.0 (Was: Re: [, Kurt Cagle | Date | [xsl] [ANN] XSLfast: Authoring tool, Stephan Albers |
Month |