html tags in combination with class styles

K

krismarissens

I don't know if this is the right forum to be posting this... But here i go:

Hi,

I'm currently working on a rather large CMS driven website. The idea is to
use Word 2003 documents and import them in a custom built CMS application.

Is there any way to define basic html tags (<p>; <h1>-<h6>; <ul>; <li>;...
and assign a class="name" to them using only Word's built-in styles in a way
that a novice-enduser without any knowledge of html can easily prepare
articles?

To eliminate the non-compliant Word-specific code i'm planning to add the
(html) TidyLib to the app.

Almost forgot to mention: the output should also validate as XHTML 1.0
Strict

Thanks,
Kris
 
K

krismarissens

I just applied a paragraph style 'Heading 3" and a custom character style
"stylename" to some text...


The first problem i ran into is that Word generates something like this:

<h3><span class=stylename>Text</span></h3>

When passed through html tidy it would become valid xhtml (if configured to)

<h3><span class="stylename">Text</span></h3>


The additional span tag looks unnecessary to me, typically i would use a
shorter:

<h3 class="stylename">Text</h3>


Is there a fix or workaround for this?
 

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

Top