xsl-list
[Top] [All Lists]

Re: [xsl] Syntax error in regex pattern

2019-07-13 12:36:20
On Sat, 2019-07-13 at 16:38 +0000, Martin Honnen 
martin(_dot_)honnen(_at_)gmx(_dot_)de
wrote:
The attribute value is treated as an attribute value template where
an expression in curly braces is evaluated as an XPath expression.

Off-topic really, but (like Simon St.Laurent) i still kinda wish we
could distinguish between single and double quotes around attribute
values, and then say that $ and { are not special in single-quoted
attributes. Or have a succinct mechanism to stop specific AVTs
everywhere.

You can also write a function, e.g. class, and do,
   pattern="{ class('lowercase') }"
or whatever, to make this stuff a bit more readable.

Liam

-- 
Liam Quin, https://www.delightfulcomputing.com/
Upcoming courses:
   CSS for XML People, Rockville MD, August;
        This course may be repeated in Europe in October.
--~----------------------------------------------------------------
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>