Subject: Re: [xsl] Regex in @select Escaping Puzzle From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 16 Aug 2020 16:15:37 -0000 |
Part of the problem I think is that the "regexp" attribute of "xsl:analyze-string" allows attribute value templates so you either have to double curly braces or better declare your pattern as a parameter or variable before the element e.g. using Michael's suggestion
B <xsl:param name="pattern" as="xs:string">\{\{image_[^}]+\}\}([^{]+)\{\{/image\}\}</xsl:param>
<xsl:param name="pattern" as="xs:string" expand-text="no">\{\{image_[^}]+\}\}([^{]+)\{\{/image\}\}</xsl:param>
otherwise the use of expand-text="yes" higher up the tree causes the same problem you run in with using the regular expression in the attribute.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Regex in @select Escaping, Martin Honnen martin | Thread | Re: [xsl] Regex in @select Escaping, Eliot Kimber ekimber |
Re: [xsl] Regex in @select Escaping, Martin Honnen martin | Date | Re: [xsl] Regex in @select Escaping, Liam R. E. Quin liam |
Month |