Thanks for the markup. It sort of works, but gave me some unwanted consequences. As i suck on xslt (really need to take a training course!) I'm gonna go with another approach altogheter.
Since my problem is similar to yours I'll take the liberty to continue your post ;)
Could anyone tell me the correct way to write the following:
<xsl:variablename="upcomingEvents"select="($calendar/descendant/*/CalendarEvent [@isDoc and umbraco.library:DateGreaterThanOrEqualToday(./calEventDate)]"/>
Or-operator in for-each
Hello,
I'm looking to iterate through nodes of a particular set of document types.
My cuurent xslt looks like this:
That works great, but I would also like to add another documenttype to the clause, I was hoping for something like this:
But that does not work. Any ideas?
Thanks.
Hi Sledger,
It actually doesn't matter because you're going up to level one, so you can just leave it out:
/Chriztian
Thanks for the markup. It sort of works, but gave me some unwanted consequences. As i suck on xslt (really need to take a training course!) I'm gonna go with another approach altogheter.
I have a similiar approach but for excluding not including subnodes, but it can easily be reversed like this:
1. I defined a param listing the document types to include:
2. Then I have the for-each with the filtering:
With local-name you get the nodename (without namespace) so you can compare strings to it
hth, Thomas
Since my problem is similar to yours I'll take the liberty to continue your post ;)
Could anyone tell me the correct way to write the following:
<xsl:variable name="upcomingEvents" select="($calendar/descendant/*/CalendarEvent [@isDoc and umbraco.library:DateGreaterThanOrEqualToday(./calEventDate)]"/>
cheers
Hi Ernst - it's best if you create a new topic for stuff like this, but here you go:
(You don't really need the @isDoc check if you know the DocumentType name, unless it's very generic)
/Chriztian
Great stuff Chriztian :) Thanx a bunch.
is working on a reply...