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

RE: XSLT 2.0 - Combining Node Sequences

Subject: RE: XSLT 2.0 - Combining Node Sequences
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 9 Dec 2004 13:27:47 +0200
para about sequences
Hi,

> At the moment I am struggeling with learning XSLT 2.0 and XPath 2.0.
> Just yesterday I read about "Combining Node Sequences" which
> I wanted to
> test in a little stylesheet.
> If I have understood the concept right, the following
> expression should
> be ok:
>
> (para | section)/title
>
> should match both para/title and section/title.
> But trying this with the latest version of Saxon, I get the following
> error message:
>
>  XPath syntax error at char 0 in {(para}:
>    Unexpected token in pattern, found "("
>
> Is there a problem with my understanding or is Saxon not
> supporting this
> feature yet?
> thanks you very much for your help in advance!

The key word here is "pattern". Patterns
<http://www.w3.org/TR/xslt20/#pattern-syntax> cannot contain the contruct you
used, Expressions <http://www.w3.org/TR/xpath20/#id-expressions> can. Use

  para/title | section/title

Cheers,

Jarno

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.