473,326 Members | 2,013 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,326 software developers and data experts.

charcters styles via html

ok, i work for a small weekly newspaper, using Quarkxpress 5.0 on the
Mac and i'm looking into translating our pages into xml for posting.

at the moment i can't figure out who to apply tags WITHIN a paragraph.
for instance most story's start with a lead in: the first few words are
bolded and all in uppercase. how would I duplicate that in XML? since
every tag has to end before starting a new one, there doesn't seem to be
a way to selectively (aka briefly change a tag and then change it back
to it's orignal formatting.

what am i missing?
Jul 20 '05 #1
1 1386
"Johannes Koch" <ko**@w3development.de> wrote in message
news:bg************@ID-61067.news.uni-berlin.de...
brandons of mass destruction wrote:
i'm looking into translating our pages into xml for posting. .... for instance most story's start with a lead in: the first few words are
bolded and all in uppercase. how would I duplicate that in XML?


Well, you can output
<para><intro>first few words</intro> more words</para>


First, when you are creating the xml you have to mark up the first few
words so the xsl can handle them separately.
Once you have the xml shown above, you can transform it into
<p><span class="intro"> etc. use css to format it.

If you can't do the markup in xml, you may have to settle for the css
selector :first-line, (and text-transform:uppercase, or
font-variant:small-caps) which is not quite what you want.
there doesn't seem to be a way to selectively
(aka briefly) change a tag and then change it back
to it's orignal formatting.

What do you mean by this? Each tag has a start and end,
and applies to the content between the two. After the end
tag, the content is within some outer tag pair, and "changes
back" to the rules/styles/formatting for that tag.

--
Steve

Jul 20 '05 #2

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

Similar topics

0
by: Quinton | last post by:
I'm running a website that uses CSS to format the text and a CGI program Coranto that icludes news updates via SSI. My problem is that some parts of the CSS don't seem to take effect on the...
7
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through...
2
by: Sergey Ilinsky | last post by:
How can i override all the styles being cascaded applied to some HTML element? For example: I have a stylesheet where DIV styles are described DIV { padding: 10; margin: 10; }
12
by: dan.vendel | last post by:
Hi, I know nothing about javascript, but quite a lot about regulat html and CSS. Have bumped into a problem that people in this fine congregation perhaps can help me with. I'm making a...
5
by: JezB | last post by:
Is it possible to programatically examine and modify a page's Styles (including Cascading Style Sheets) within the code-behind-module (eg. c#) ? My guess is that since these are HTML elements the...
3
by: JezB | last post by:
What's the generally accepted approach for using Styles and Stylesheets in a web application based on .aspx files, Web Controls, User Controls, and code-behind modules (c# in my case)? Most style...
2
by: Logan | last post by:
Can the subject be done, or is setting of styles via styles sheets limited only to classic html controls? Quite obviously i am new to asp.net. thank you all.
2
by: bruce131 | last post by:
Hi. I have the following XML .. <?xml-stylesheet type="text/xsl" href="try.xslt"?> <head> <title>Title</title> <desc> <p>Description<ul><li>item 1</li><li>item 2</li></ul></p> </desc>...
1
by: atulskulkarni | last post by:
Hello All, I am trying to extract text from the HTML using the following code, use strict; use HTML::Parser 3.00 (); my %inside; my $p;
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.