xsl-list
[Top] [All Lists]

Re: [xsl] Matching " within a variable as:item()*

2010-01-05 08:20:03
Hi,

I added the $regex variable rather than paste a specific regex. But
the VariableAsItem is working fine to get the text I require.

It's the analyze-string method within VariableAsElement which is not
matching on the double quotes within the VariableAsItem text. if I
remove the double quotes in the match it works fine.


On Tue, Jan 5, 2010 at 1:08 PM, Martin Honnen 
<Martin(_dot_)Honnen(_at_)gmx(_dot_)de> wrote:
Alex Muir wrote:

I'm for some reason not able to match a string containing a " within
VariableAsItem within an analyze string method in VariableAsElement.


    <xsl:variable name="VariableAsItem" as="item()*">
       <xsl:analyze-string select="." regex="$regex" >

I think you want/need

         <xsl:analyze-string select="." regex="{$regex}" >



--

       Martin Honnen
       http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





-- 

Alex
https://sites.google.com/a/utg.edu.gm/alex

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--