xsl-list
[Top] [All Lists]

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

2009-08-20 10:03:44
//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(_dot_)Honnen(_at_)gmx(_dot_)de> 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/

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>