473,394 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

problem in handling CDATA using xsl

1
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
Jun 21 '06 #1
1 2136
Banfa
9,065 Expert Mod 8TB
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.
Jun 21 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: * | last post by:
I need to devise a way of reading the following XML data and taking the Job_ID and putting into a database using the access_code and the adt_company_id. any idea of how I might be able to do...
2
by: Rick | last post by:
Hi.. I've got some code I wrote in PHP that will generate a new argument string for the browser, but the xhtml parser in Firefox and Opera both complain about my use of &var=value pairs. Below...
4
by: alainpoint | last post by:
I am experimenting with ElementTree and i came accross some (apparently) weird behaviour. I would expect a piece of XML to be read, parsed and written back without corruption (except for the...
0
by: Aidan | last post by:
The setup: a Sax parser in a servlet and a Java client (same machine) which uploads an XML document containing CDATA elements which hold base 64 encoded binary files. The servlet then SAX parses...
2
by: Collin VanDyck | last post by:
I'm using Xalan's TransformerIdentityImpl class to provide a nice base framework upon which to write SAX transformers. However, using the identiy transform, I'm getting some weird output issues....
11
by: ericms | last post by:
Can anybody show me how to insert a CDATA section using XPathNavigator ? I have tried the follwing with no luck: XmlDocument docNav = new XmlDocument(); docNav.LoadXml(xmlString);...
1
by: Viral | last post by:
Hello All, I have the following XML document : (for ease of understanding i am just posting a part of it) Base XML ------------ <?xml version="1.0"?> <ROOT>...
2
by: Spacen Jasset | last post by:
I've read the XML standard, and I wonder if someone can confirm this for me. Am I right in thinking that line endings are translated even within CDATA sections? The standard states that...
2
by: andybdi | last post by:
I am playing with a few xml feeds changing them into different formats and merging them with others, and have found that when using cdata- section-elements salbatron adds an extra line break at the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.