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

RE: Is this a valid expression?

Subject: RE: Is this a valid expression?
From: "Casadome, Francisco Javier" <Francisco.Casadome@xxxxxxxxxxxxxx>
Date: Tue, 18 Sep 2001 17:08:31 +0200
what are the valid expression
Hi,

Try this:

select="//Produktobjekt[not(parent::Zubehoer or parent::Ersatzteile)]"

Cheers,
Frank.

-----Original Message-----
From: Christian Cäsar [mailto:caesar@xxxxxxxxxxxx]
Sent: martes, 18 de septiembre de 2001 16:16
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Is this a valid expression?


Hello list,

I'm using XSL to transform a XML file to another XML file.

My XSL script contains this line:

<xsl:apply-templates select="/export//*[(not(parent::Zubehoer)) AND
(not(parent::Ersatzteile))]/Produktobjekt" mode="article"/>

What I want is 'every Produktobjekt that doesn't have a Zubehoer or a
Ersatzteile as parent'. For me, the line seems correct, but that doesn't
mean a thing.

I am using Saxon 6.4.

Saxon barfs at my script on this line with the error message

Error on line xxx of (my XSL file):
  Error in expression /export//*[(not(parent::Zubehoer)) AND
(not(parent::Ersatzteile))]/Produktobjekt: expected "]", found "<function>"

(Which is the line above)

What am I doing wrong? Please, dear list, show me the error of my ways!

Greetings,
Christian Caesar

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.