xsl-list
[Top] [All Lists]

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

2010-10-14 10:40:05
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>