Re: [xsl] Searching for values in XML using XSL using Saxon

Subject: Re: [xsl] Searching for values in XML using XSL using Saxon
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 14 Oct 2010 17:39:46 +0200
Jacobus Reyneke wrote:

One question regarding keys and indexing, is it possible to index
comma separated values such as my keywords list, or should each
keyword by a separate element?

You could do
<xsl:key name="by-keyword" match="topic" use="tokenize(keywords, ',\s*')"/>
with XSLT 2.0 but it is a cleaner XML design to mark up each keyword separately in my view.


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread