xslt - How do I get the actual string from CDATA in XSL -


say have node tree:

<data>     <current-query-string><![cdata[location=burnley]]></current-query-string> </data> 

how text inside cdata tags?

it's been long time since wrote xslt @ level, , cannot remember how it. understand cdata plain text, , how works, not how extract actual string only.

simply using:

<a href="blah.com/?{/data/current-query-string}">link</a> 

is giving me:

<a href="blah.com/?<![cdata[location=burnley]]>">link</a> 

i expect result, need see result:

<a href="blah.com/?location=burnley">link</a> 

how use value plain text?


Comments