charcters styles via html

  • Thread starter brandons of mass destruction
  • Start date
B

brandons of mass destruction

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?
 
S

Steven Dilley

Johannes Koch said:
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.
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top