Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] Expression in XPath

From: "Michael Kay" <mike@------------>
To:
Date: 3/2/2006 8:56:00 AM
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: [xsl] 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent