Connecting Tech Pros Worldwide Forums | Help | Site Map

problem in handling CDATA using xsl

Newbie
 
Join Date: Jun 2006
Posts: 1
#1: Jun 21 '06
Hi all,

i have an xml structure something like the given below one and i am facing problem in handling the contents inbetween CDATA, i mean the subtag '<inline-fig>' is printed as it is like this" <inline-fig> <link locator="fx1"/> </inline-fig> " which should not be (it should be treated like a tag not a text)

Expand|Select|Wrap|Line Numbers
  1. <bib:SUBTITLE>
  2.    <![CDATA[Sample data for printing.....
  3.       <inline-fig>
  4.            <link locator="fx1"/>
  5.       </inline-fig>
  6.    ]]>
  7. </bib:SUBTITLE>
thanks in advance
Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,166
#2: Jun 21 '06

re: problem in handling CDATA using xsl


The CDATA section specifies data that is not to be parsed but is to just be treaded as text. By putting the <inline-fig> in a CDATA section you are telling the XML parser not to parse it.
Reply