Re: [xsl] Avoiding multiple "apply-templates" by creating one variable for the clauses. Is it possible?

Subject: Re: [xsl] Avoiding multiple "apply-templates" by creating one variable for the clauses. Is it possible?
From: Vyacheslav Sedov <vyacheslav.sedov@xxxxxxxxx>
Date: Thu, 20 Aug 2009 18:03:18 +0400
//blog[not($AuthorId) or (author_id =
$AuthorId)][not($CategoryId) or (category_id = $CategoryId)]

should work in XSLT 1.0

On Thu, Aug 20, 2009 at 5:53 PM, Martin Honnen<Martin.Honnen@xxxxxx> wrote:
> Kate Busch-Petersen wrote:
>>
>> Ah yes, I was using the XSLT 1.0 processor. I've changed that now to XSLT
>> 2.0 but am still getting a similar (if less specific) error:
>>
>> Expected token ')', found ','. On line 43:
>>
>>
>> Line 42:         using (StringWriter sw = new StringWriter())
>> Line 43:         {
>> Line 44:             BlogHotspot.Transform(xpathBlogXml, xslArg, sw);
>> Line 45:             litBlogHotspot.Text = sw.ToString();
>> Line 46:         }
>
> If you use an XSLT 2.0 processor and think that there is a syntax error in
> the XSLT code then please show the relevant XSLT code and state which XSLT
> processor you are using.
> Showing us the C# code using the XSLT processor does not really help
> although the above looks not like using Saxon, more like using
> XslCompiledTransform, which does not support XSLT 2.0 at all.
> You would need to use Saxon 9 or AltovaXML tools for XSLT 2.0 code with
> sequences.
>
> --
>
>        Martin Honnen
>        http://msmvps.com/blogs/martin_honnen/

Current Thread