I am using XSLT Transformation and need to put some data in CDATA
section and that value is present in a variable.
Query: How to access variable in CDATA
?
Sample Given Below:
<xsl:attribute name ="attributeName">
<![CDATA[
I need to access some variable here like
*<xsl:value-of select ="$AnyVarible"/>*
]]>
</xsl:attribute>
How can I use varibale in CDATA
?
Note: I can not use --> <![CDATA[<xsl:value-of select ="$AnyVarible"/>]]>
Thanks in advance.
call AT&T
` and `call <![CDATA[AT&T]]>
` are semantically equivalent. CDATA sections may not appear in attribute values. (In SGML, you can declare an attribute's type to be CDATA, which tells the processor to treat markup in it as plain text; XML does not have this ability). You may wish to clarify what you are trying to achieve with your CDATA-in-attribute question. – iter Feb 15 '10 at 21:38