problem in handling CDATA using xsl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mouli
    New Member
    • Jun 2006
    • 1

    #1

    problem in handling CDATA using xsl

    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)

    Code:
    <bib:SUBTITLE>
       <![CDATA[Sample data for printing.....
          <inline-fig>
               <link locator="fx1"/>
          </inline-fig>
       ]]>
    </bib:SUBTITLE>
    thanks in advance
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    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.

    Comment

    Working...