Get items by template ID in XSLT

If you are trying to get an item by template ID in XSLT, the correct attribute is @tid – not templateid, or templatekey.

<xsl:variable name="itinerary" select="$sc_item/descendant-or-self::item[@tid = '{EC705A7F-B1DD-46AC-9EEF-0E377B31A740}']" />

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s