[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Avoiding multiple "apply-templates" by creating on

Subject: Re: 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
Re:  Avoiding multiple "apply-templates" by creating on
//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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.