[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Re: [xslt transform & grouping] Using the Muenchia
Subject: Re: Re: [xslt transform & grouping] Using the Muenchian Method?|
From: "Michael PG" <xrow@xxxxxxx>
Date: Tue, 05 Oct 2004 20:42:26 +0000
After adding the suggested line I got an exception lake it last case.
From: David Carlisle <davidc@xxxxxxxxx>
Subject: Re: Re: [xslt transform & grouping] Using the Muenchian
Date: Tue, 5 Oct 2004 17:48:52 +0100
no output at all. only <Documents></Documents> after adding
<xsl:apply-templates select="*[@filter='' or @filter=$filter]"/>
I was debugging your xpaths not the whole stylesheet.
You process all the Document elements twice
that never produces any visible output as you don't have any templates
Document elements (or child elements) and the default templates just
copy character data so you just get character data and that is all
white space as all the elements are empty so you just get the
indentation without the elements.
then you process them again with
so you probably want to amend that  to allow filter=""
Your next problem will be
as that just selects the Article element that is first in this key in
document order, but if the first in document order has been filtered out
you will get nothing.
So you probably need
select="Document[@filter='' or @filter=$filter]/
so you select the first Article (after filtering) that is in this key.
But it depends exactly what output you _do_ want.
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
Express yourself instantly with MSN Messenger! Download today - it's FREE!
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format