xsl-list
[Top] [All Lists]

Re: [xsl] passing a regex matched substring to the result-document

2009-09-05 03:46:45
Hi Manfred and Martin (and all),

I'm sorry I overlooked that the first time (I always try to retype and
not copy). Thanks a lot, it works now flawlesly!

Cheers, Manuel


2009/9/4 Manfred Staudinger <manfred(_dot_)staudinger(_at_)gmail(_dot_)com>:
Hi Manuel,

On 04/09/2009, Manuel Souto Pico <m(_dot_)soutopico(_at_)gmail(_dot_)com> 
wrote:
<xsl:variable name="common">
      <xsl:analyze-string select="$srcfilename" 
regex=".+/([^/]+)\.(XLF|xlf)">
              <xsl:matching-substring>
                      <xsl:variable select="regex-group(1)"/>
              </xsl:matching-substring>
      </xsl:analyze-string>
</xsl:variable>
You want to replace
                       <xsl:variable select="regex-group(1)"/>
by
                       <xsl:value-of select="regex-group(1)"/>
Regards,
Manfred

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--

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