You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Ferdinand Soethe <sa...@soethe.net> on 2004/11/08 16:54:18 UTC

Re[2]: Proposal: New Instruction element in HowTo-DTD 2.0


RG> This is developer question, such questions should be asked on the dev at
RG> forrest.apache.org list (with this message I have moved it to the dev
RG> list, please respond there).

Sorry, I figured content related stuff belonged in the user list since
users would be the ones to ask whether they needed a new element or
didn't. Now I know better.

RG> How-To DTD extends the Document dtd. The document DTD provides plenty of
RG>   elements to distinguish different types of paragraph. Would <source>
RG> and <code> be sufficient?

I don't think they do for two reasons:

1. XML-markup is supposed to express function rather than the way a
   piece of info should be rendered. So even if <code> or <source> would
   get me the desired visual effect (which they don't, see 2), it
   doesn't seem to be a good idea to use the same element for
   different function.

   And the content of an instruction element (do this, do that) is
   very different from a source code example or a plain paragraph
   explaining the result of the instruction.

2. Instructions in most manuals and books have their very own style to
   clearly show that you should do something. As a minimum they would
   be bulleted or numbered, more often they have some graphic symbols
   like a checkmark instead of a bullet.

Important: Not all paragraphs in the steps-section are instructions.
Quite often you would have an instruction followed by a piece of code
or a normal paragraph explaining the result. So I couldn't just use a
style that sets all paras within a step that way.

I hope I could make myself reasonably clear,

--
Ferdinand Soethe



Re: Proposal: New Instruction element in HowTo-DTD 2.0

Posted by Juan Jose Pablos <ch...@che-che.com>.
Ferdinand Soethe wrote:
> 
> I hope I could make myself reasonably clear,
> 
Have a look at main/webapp/resources/schema/dtd/howto-v13.dtd
you will find out that this type only holds a few elements:

ELEMENT howto (header, audience?, purpose?, prerequisites?, steps,
     extension?, faqs?, tips?, references?, feedback?)

The other elemnets are part either of Apache document or Apache FAQ.

Are you asking for Instruction to be at the same level as steps element?

Cheers,
Cheche


Re[2]: Proposal: New Instruction element in HowTo-DTD 2.0

Posted by Ferdinand Soethe <sa...@soethe.net>.
Hi

Cheche wrote:

> Have a look at main/webapp/resources/schema/dtd/howto-v13.dtd
> you will find out that this type only holds a few elements:

I think I did. But I didn't find a suitable one. Perhaps someone else
did?

> Are you asking for Instruction to be at the same level as steps element?

No, this would be content of steps along with normal <p>.
Perhaps an example from the new HowTo helps:

> <steps title="Steps">
>             <section id="openForrest">
>                     <title>Open your Forrest</title>
Next would be an <instruction> instead of p!

>                     <p class="instruction">Start your Firefox
>                             Browser and open the Forrest you'd like to
>                             work on/play with.</p>
>                     <p>The page you have pointed to will show up in
>                             Firefox's main window.</p>
>             </section>




RG> <p class="instruction">This is an instruction</p>

This is what I'm using right now and would be using if nobody else
cared to have this implemented.

But it stops working as soon as I
deliver my new HowTo to the Forrest webite unless somebody applied the
same Extra-CSS-style changes there.

Regards,
Ferdinand



Re: Proposal: New Instruction element in HowTo-DTD 2.0

Posted by Ross Gardler <rg...@apache.org>.

Ferdinand Soethe wrote:
> 
> RG> This is developer question, such questions should be asked on the dev at
> RG> forrest.apache.org list (with this message I have moved it to the dev
> RG> list, please respond there).
> 
> Sorry, I figured content related stuff belonged in the user list since
> users would be the ones to ask whether they needed a new element or
> didn't. Now I know better.
> 
> RG> How-To DTD extends the Document dtd. The document DTD provides plenty of
> RG>   elements to distinguish different types of paragraph. Would <source>
> RG> and <code> be sufficient?
> 
> I don't think they do for two reasons:
> 
> 1. XML-markup is supposed to express function rather than the way a
>    piece of info should be rendered. So even if <code> or <source> would
>    get me the desired visual effect (which they don't, see 2), it
>    doesn't seem to be a good idea to use the same element for
>    different function.
> 
>    And the content of an instruction element (do this, do that) is
>    very different from a source code example or a plain paragraph
>    explaining the result of the instruction.

OK.

> 
> 2. Instructions in most manuals and books have their very own style to
>    clearly show that you should do something. As a minimum they would
>    be bulleted or numbered, more often they have some graphic symbols
>    like a checkmark instead of a bullet.
> 
> Important: Not all paragraphs in the steps-section are instructions.
> Quite often you would have an instruction followed by a piece of code
> or a normal paragraph explaining the result. So I couldn't just use a
> style that sets all paras within a step that way.

How about:

<p class="instruction">This is an instruction</p>

<p>This is a discussion.</p>

This would be my recommendation if you were using XHTML. However, if the 
intention is to develop the How-To DTD into a better source format then 
he above may not be applicable.

What do others think?

Ross