[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Analyze-string Regex to Match Content within Curly
On Tue, 17 Nov 2020 at 13:57, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > <xsl:param name="x" select="}O'Reilly"/> > > indicates that the default value is the string "O'Reilly" > > and in an AVT > > regex="}[a-z]{4}" > > indicates that the regex is [a-z]{4} > > This relies on the fact that neither an AVT nor an expression can legally begin with an undoubled "}", nor is it ever likely to. And you can think of "}" as meaning "exit expression mode, here is plain text". > > Nice idea, or just too quirky? Weird Mike - looks plain ugly... Logical, but weird <grin/> regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|