xsl-list
[Top] [All Lists]

Re: [xsl] XPath expression to get the string following the open quote of an attribute?

2021-01-14 10:33:25
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(_dot_)honnen(_at_)gmx(_dot_)de 
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com:

On 14.01.2021 17:14, Roger L Costello costello(_at_)mitre(_dot_)org 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.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>