473,388 Members | 1,342 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,388 software developers and data experts.

Annotating/marking/labeling text in XML

Hi. A quick thanks to those who try to help. here's what i'm trying
to do:

<?xml>
<stuff>
<theStory>

<p>aaklsjd fakljs fakjs faskldj a;klsjdf l;aksdj f THIS TEXT SHOULD BE
HIGHLIGHED a;klsdjf a;slkjdf a;skljdf a;slkjdf a;slkjf a;sklj fas;kl
jf;ak s</p>

<p> askljdf laksjdf ;alksjdf a;skljdf ;askldjf; askdlfj ;sdlkfj THIS
TEXT SHOULD ALSO BE HIGHLIGHTED alksjdf a;klsjfd a;slkdfja s;dfkjas;
dfaklsjd f</p>

</theStory>
</stuff>

so my question is how can i somehow mark up the text in the xml so as
to be able to treat it later via CSS?

Thanks,
eric

Jun 8 '06 #1
2 1564
I've put up a detailed explanation of the problem at
www.ericcorriel.com/xml_problem.php.
Thanks again to anyone who tries to help.
noblEnds wrote:
Hi. A quick thanks to those who try to help. here's what i'm trying
to do:

<?xml>
<stuff>
<theStory>

<p>aaklsjd fakljs fakjs faskldj a;klsjdf l;aksdj f THIS TEXT SHOULD BE
HIGHLIGHED a;klsdjf a;slkjdf a;skljdf a;slkjdf a;slkjf a;sklj fas;kl
jf;ak s</p>

<p> askljdf laksjdf ;alksjdf a;skljdf ;askldjf; askdlfj ;sdlkfj THIS
TEXT SHOULD ALSO BE HIGHLIGHTED alksjdf a;klsjfd a;slkdfja s;dfkjas;
dfaklsjd f</p>

</theStory>
</stuff>

so my question is how can i somehow mark up the text in the xml so as
to be able to treat it later via CSS?

Thanks,
eric


Jun 9 '06 #2
> <?xml>

That isn't correct XML syntax, of course.
so my question is how can i somehow mark up the text in the xml so as
to be able to treat it later via CSS?


The way you mark things, in CSS or HTML, so you can style them specially
is to wrap them in an element which CSS can match on. In HTML, that
often takes the form of a <div> or <style> element, which is harmless
but which can be processed by CSS to add the necessary style attributes.

Whether a suitable element exists in your XML language depends on the
DTD or schema. If it doesn't, you probably need to think about
separating the data representation of your XML from the displayed
representation, and that means getting into XSLT stylesheets, which are
more powerful than CSS and can rewrite documents rather than merely
annotate them.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Jun 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Xah Lee | last post by:
i'm trying to annotate a literature, so that the main text is on the left side about 60ex wide and the annotations are in a box on the right side about 40ex wide. the way i did this is so have...
3
by: Spartanicus | last post by:
How to get help from this group, and how to construct a minimised test case: http://www.spartanicus.utvinternet.ie/help_us_help_you.htm -- Spartanicus
1
by: Spartanicus | last post by:
Some use the kbd element (Example: <kbd>Ctrl</kbd>+<kbd>G</kbd>) to mark up keyboard shortcuts, but the spec defines kbd as: "Indicates *text* to be entered by the user." (emphasis mine). UA...
0
by: dhn | last post by:
I am trying to automate the generation of scatterplots in matplotlib. The problem of where to put the labels is known as 'point-feature labeling' (a main application is in cartography, where cities...
0
by: Nokao | last post by:
I'm having a lot of severe errors in my db2diag.log, (DB2 v9.1.0.0). Googling I don't fin any information :( What can I do? I attach the first reports...: 2007-11-19-17.50.26.379948+060...
1
by: Prakash | last post by:
Hello We are using DB2 server V9.5 for our migration project on HP-UX IA64 platform. My question is: Can we do labeling to a particular transaction?. If so how can we do that?. Basically...
1
by: Hvid Hat | last post by:
Hello How should I go about marking certain words in a text? I've got a list of words: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="Mark.xsl"?> <Words>...
3
by: geosmy | last post by:
Hi everyone, Is it possible to highlight (a portion of the) text in a textbox without setting focus to it. What I'm interested is marking some portion of the text for reference while my cursor is...
0
by: russtee | last post by:
I am creating crystal reports line graphs using vb.net. When the number of records is small it labels the x-axis. When the number of points is large it doesn't label them at all. I need to be able...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.