RE: XML::XPath functions

"Wayne Simmons" <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Awesome! That was it. Thank you very much!

-Wayne

--
Software Engineer
InterSystems USA, Inc.
303-858-1000 
 

-----Original Message-----
From: Bjoern Hoehrmann [mailto:[email protected]] 
Sent: Wednesday, December 03, 2008 3:30 PM
To: Wayne Simmons
Cc: [email protected]
Subject: Re: XML::XPath functions

* Wayne Simmons wrote:
>I'm not sure if the XPath spec according to consortium says about this, but
>I was wondering if it's supposed to work this way and/or if it could be
>fixed.  Without the ability to use functions as the last step in a path, it
>is impossible to get the tag name of a node.

In XPath 1.0 you cannot use function calls as steps in a path, you have
to use e.g.

  local-name(//Apt[@AptCd='ORD']/parent::node())

In XPath 2.0 your syntax might be allowed; XML::XPath only supports 1.0.
-- 
Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.