RE: [xsl] RE: [SPAM] - RE: [xsl] RE: [SPAM] - Re: [xsl] characters in xsl - Bayesian Filter detected spam - Bayesian Filter detected spam

Subject: RE: [xsl] RE: [SPAM] - RE: [xsl] RE: [SPAM] - Re: [xsl] characters in xsl - Bayesian Filter detected spam - Bayesian Filter detected spam
From: "Bradley, Peter" <PBradley@xxxxxxxxxx>
Date: Thu, 11 Nov 2004 16:10:07 -0000
So, if I say:

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

I specify a template for every <stone> element regardless of where it appears
in the file?  Meaning that:

/stone

and

/stone/*/stone

would activate the same template?  Is that right?

Cheers

Peter


 -----Original Message-----
From: 	Osman Ginar Eren [mailto:Cinar.Eren@xxxxxxxxxxxxx]
Sent:	11 November 2004 16:03
To:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:	[xsl] RE: [SPAM] - RE: [xsl] RE: [SPAM] - Re: [xsl] characters in xsl
- Bayesian Filter detected spam - Bayesian Filter detected spam

it is :
all the elements with that name in that xml file.

//value[..]...

all value elements in the XML.

-----Original Message-----
From: Bradley, Peter [mailto:PBradley@xxxxxxxxxx]
Sent: Thursday, November 11, 2004 6:01 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [SPAM] - RE: [xsl] RE: [SPAM] - Re: [xsl] characters in xsl -
Bayesian Filter detected spam - Bayesian Filter detected spam


Actually, while we're on this topic, would somebody mind explaining the //
notation for me?

Maybe I've oversimplified it in my own mind, but I understand the / character
to act as a path separator such that anything to the left of the / is the
parent of anything to the right.  But I haven't been able to visualise the //
notation at all.

Can anyone explain (and perhaps give examples of where it's useful)?

Cheers

Peter


 -----Original Message-----
From: 	Osman Ginar Eren [mailto:Cinar.Eren@xxxxxxxxxxxxx]
Sent:	11 November 2004 15:57
To:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:	[xsl] RE: [SPAM] - Re: [xsl] characters in xsl - Bayesian Filter
detected spam

thanks for your help..
any other secial characters?
i know about "/" and "//".

-----Original Message-----
From: Colin Paul Adams [mailto:colin@xxxxxxxxxxxxxxxxxx]
Sent: Thursday, November 11, 2004 5:52 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [SPAM] - Re: [xsl] characters in xsl - Bayesian Filter detected spam


>>>>> "Osman" == Osman Ginar Eren <Cinar.Eren@xxxxxxxxxxxxx> writes:

    Osman> hi, a sily question but i want to learn the meaning of the
    Osman> following characters in xsl:

    Osman> "@", ".", "$" ...

Not so silly. Except it's XPath, not XSLT.
@ = attribute:: = attribute axis.
So @fred means attribute named fred

. = context node (or context item in XSLT 2.0) - that's the item that
is the current subject of apply-templates or for-each in XSLT .

$ = variable reference, so $fred is the value of the variable (or
parameter) named fred.
--
Colin Paul Adams
Preston Lancashire

Current Thread