[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Can I put a variable to be interpreted in an xml
Hi, I don't think you need to use CDATA; if you do something like <tagname> <div xmlns="http://www.w3.org/1999/xhtml"> You can find the link <a href="{$link}">here</a> </div> </tagname> and then use <xsl:copy-of> instead of <xsl:value-of>. HTH Anton ----- Original Message ----- From: "Bart Claeys" <Bart.Claeys@xxxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, July 14, 2004 9:56 AM Subject: Can I put a variable to be interpreted in an xml node? > Hello all! > > I'm new to this list, and this is my first question. I have a two-lingual website (dutch & french). The texts are manually put in > a seperate XML file. Now in one case the text contains a variable, like in this example: > > <tagname><![CDATA[You can find the link <a href="{$link}">here</a>]]></tagname> > > Obviously when I pull this tag into the document using <value-of the {$link} is not interpreted. How can I solve this problem? > I need to use CDATA because the tag can contain html code like bold, paragraph tags etc. > > Thnks, Bart > ************************************************************************************************* > The contents of this email and any attachments are confidential. > It is intended for the named recipient(s) only. > If you have received this email in error please notify the system manager or > the sender immediately. > Do not disclose the contents to anyone nor make copies of this mail. > *************************************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|