>
> <xsl:when test="name()='nodename' and @id='#i#'">


This is xsl conditional syntax. The 'name()' part returns the xmlName of the
current element. So, in your case, you would want to substitute 'nodename'
for 'facet' or 'taxon'. So, in English, the line would translate as 'When
the element name is 'taxon' and it has an id attribute that equals #someID#,
do this...'

I wouldn't say these are noob questions at all. If you are interested
though, I'd highly recommend getting a really good book on XML and battling
through it, enlightening stuff :p

Dominic


On 28/12/2007, Dave Francis <[EMAIL PROTECTED]> wrote:
>
> I think I'm beginning to get it, thanks to your explanation. But I have
> one
> (1, honest!) more question (I would REALLY like to understand this 100%,
> for
> the delete part).
>
> In this line, what does the name() part signify. (Or perhaps, why not just
> name without the brackets?)
> <xsl:when test="name()='nodename' and @id='#i#'">
>
>
> Sorry to the list for all these noob questions.
> -----Original Message-----
> From: s. isaac dealey [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 27, 2007 9:30 PM
> To: CF-Talk
> Subject: Re: Difficulty adding xml attribute
>
>
> --
> s. isaac dealey  ^  new epoch
> isn't it time for a change?
>     ph: 503.236.3691
>
> http://onTap.riaforge.org
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295473
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to