Re: [xsl] Parse anchor tags in CDATA

Subject: Re: [xsl] Parse anchor tags in CDATA
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Fri, 31 Aug 2012 08:45:13 +0100
It's not in general possible to parse XML using regular expressions, though you might succeed if you know that only a small subset of XML is in use.

Saxon has the saxon:parse() extension function for precisely this use case.

It's better, though, to avoid putting markup inside CDATA sections. Since the only purpose of CDATA is to say "ignore any markup that you find here", it follows that if you don't want to ignore the markup then it's better not to put it in CDATA.

Michael Kay
Saxonica

On 31/08/2012 04:20, Sujatha Udayabanu wrote:
Hello, is it possible to parse the CDATA section to get the anchor
tags within?  Is this possible with a regular expression using
tokenize?
I am using xslt 2.0 and saxon parser

Thanks
Sujatha

Current Thread