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

RE: Expression in XPath

Subject: RE: Expression in XPath
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 02 Mar 2006 16:34:18 -0500
re expression
Dariusz,

If one is willing to use a little XSLT, this result is easy enough to get in XSLT 1.0. Why is a single XPath expression important to you?

Cheers,
Wendell

At 03:55 AM 3/2/2006, Mike wrote:
In XPath 1.0 there is no way of constructing a sequence of strings (there's
no such type in the data model), and there is no way of constructing new
nodes, so I'm afraid this is impossible.

In 2.0 it's straightforward:

for $x in (your current expression)
return substring-after($x, '(mm)')

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Dariusz Borowski [mailto:d.borowski@xxxxxx]
> Sent: 02 March 2006 00:59
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Expression in XPath
>
> Hi!
>
> Could anyone help me? I have this result:
> ========================================================
> (mm)B-1: A eTSS Login
> (mm)B-2: A eLogbook Viewer Login
> (mm)B-3: A Rig Activity Entry (Req. # 6.2.2.1.1, 6.2.2.3.5, 3.5.1.1)
> (mm)B-4: A Access tool from PC outside the firewall in SCTF
> (mm)B-5: A eReport Login
> (mm)B-6: A Privileged User ? Login
> ========================================================
>
> from this expression:
> //office:body/office:text/table:table/table:table-row/table:ta
ble-cell/text:p[starts-with(text(), '(mm)')]
>
>
> But, I would like to get the following result with ONE Expression:
> ========================================================
> B-1: A eTSS Login
> B-2: A eLogbook Viewer Login
> B-3: A Rig Activity Entry (Req. # 6.2.2.1.1, 6.2.2.3.5, 3.5.1.1)
> B-4: A Access tool from PC outside the firewall in SCTF
> B-5: A eReport Login
> B-6: A Privileged User ? Login
> ========================================================
>
> I tried already something like this:
> //office:body/office:text/table:table/table:table-row/table:ta
ble-cell/text:p[substring(starts-with(text(), '(mm)'), 4)]
>
> but it didn't work... :(
>
> Thanks for any help!
>
> Dariusz
>
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.