I believe the approach with <para> tags is much better than replacing new lines. I 
don't see
paragraphs as a representation issue. Paragraph are logical text units and this fact 
should be
respected in your DTD. If it is still possible, I do recommend to add <para> tags to 
your documents.

Regards,
Petr


Marc Logemann wrote:

> I will provide some error message soon, i must activate error_logging
> in my php script.
>
> The reason for my question is, (i hope i can ask this).
> When i have an xml where i have something like this:
> <content>
> this is the text
>
> and this is the second paragraph
> </context>
>
> All i wanted to have is that during transformation i get real paragraphs in
> html. So i wanted to replace all Newlines (\n) to html paragraphs (<p>).
>
> I read hours about how to do this. Most examples i see, is that people
> write xmls like
> <content>
> <para>
> this is the text
> </para>
> <para>
> and this is the second paragraph
> </para>
> </content>
>
> but i dont know if this would be logically ok. I mean, i dont want to seperate some 
>blocks of my
> content in xml only because of the representation issues after on.
>
> perhaps i am totally wrong with this oppinion, any ideas would be very appreciated, 
>and sorry
> if i bother you with a question that is not primarily concerned to sablotron.
>
> Marc Logemann
> Programmer/Analyst

--
Petr Cimprich
Ginger Alliance Ltd.
www.gingerall.com


Reply via email to