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

Re: XPath expression to get the string following the o

Subject: Re: XPath expression to get the string following the open quote of an attribute?
From: "Geert Bormans geert@xxxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Jan 2021 16:33:19 -0000
Re:  XPath expression to get the string following the o
I guess the problem is that this is an attribute value
The parses all of that away, I am afraid
The attribute value is abc
the " would be gone after parsing
attribute boundaries can be " or '
if you really need either " or ' and the difference is important, 
I am afraid you would need a regex step before the XSLT (or read the file as a text file in the XSLT)

Met vriendelijke groeten, 
Best regards, 

Geert Bormans

----- Op 14 jan 2021 om 17:24 schreef Martin Honnen martin.honnen@xxxxxx xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx:

On 14.01.2021 17:14, Roger L Costello costello@xxxxxxxxx wrote:

> Here are sample input strings:
>
> ="abc"
> = "abc"
> =       "abc"
>
> That is, an equals, zero or more whitespaces, quote, value, quote
>
> I want everything after the first quote.

My neural network thinks that sounds like

   substring-after($s, '"')

but perhaps I miss something that makes the requirements more complicated.

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.