Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: How to extract parent's attributes? How to use patterns to parse attribute's string value? [Thread Next] Re: How to extract parent's attributes? How to use patterns to parse attribute's string value?To: NULL Date: 10/17/2008 7:26:00 PM Martin Honnen wrote:
> <xsl:function name="mf:parse-translate" as="xs:string*">
> <xsl:param name="translate" as="xs:string"/>
> <xsl:variable name="dp" select="'[+\-]?\d+(\.\d+)?'"/>
> <xsl:variable name="pattern" select="concat('translate\s*\(\s*(',
> $dp, '),\s*(', $dp, ')\)')"/>
> <xsl:message terminate="no" select="concat('pattern is "',
> $pattern, '"')"/>
Remove that xsl:message if you use the code, it is just in there for
debugging the regular expression.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
