On 27/10/06, Andreas M. <[EMAIL PROTECTED]> wrote:


I also have no clue as to what technique to use in order to get the
<text:p> and the <draw:frame> correct. In HTML the only element,
that would match a draw-frame would be a <div>, but a <div> is not
allowed within <p>. So, for the ODF this is perfectly fitting, also
it is perfectly legal to have an <img> within a <p> in HTML, but as
soon we get the frame, there seems to be a problem.

I would be very glad if someone would know of a solution, since right
now, I make all a <div> and this is surley not, how HTML should be marked up.

If you assume the frame is a wrapper for the image, then could you use
that information to set css properties on the image, rather than
assume it is structural markup?

The other way would be to only action the frame if not within a para tag.
Two templates, one for p/frame another for frame without p ancestor.




Also, I see no way as how to deliver the 'width' and 'height' attributes to
the <img>, since there is no such information in the ODF, except for the
frame surrounding it. But that is not the same and I do not want to rely on
such a frame.

So don't, if it doesn't make sense.
Let the image be its natural size.
I doubt very much if you'll get a visual equivalence in html,
it simply isn't powerful enough.


HTH


--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to