Subject: RE: [xsl] xslt regex escaping From: David.Pawson@xxxxxxxxxxx Date: Tue, 17 Aug 2004 13:43:09 +0100 |
Solution. Note the mixed "'" in the regex attribute. Thanks DC. regards DaveP src = <l>components['kdemultimedia'] = "Multimedia applications for the K Desktop Environment (KDE).";</l> <l>components['m4'] = "The GNU macro processor.";</l> <xsl:template match="l"> <p> src: <i> <xsl:value-of select="."/></i></p> <p> <!-- escaping --> <xsl:analyze-string select="." regex="components\['([a-z0-9]+)'\] = "([^"]+)""> <xsl:matching-substring> 1 <xsl:value-of select="regex-group(1)"/> <br /> 2 <xsl:value-of select="regex-group(2)"/> </xsl:matching-substring> <xsl:non-matching-substring> Mismatch: <xsl:value-of select="."/> </xsl:non-matching-substring> </xsl:analyze-string> </p> </xsl:template> -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xslt regex escaping, David . Pawson | Thread | [xsl] single precision bug, ronald |
Re: [xsl] Split HTML File Into XML , Trevor Majic | Date | AW: [xsl] Split HTML File Into XML , christof.hoeke |
Month |