[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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/
|
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
|