Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XHTML Output rendering

From: "kokopelli69@-----.---" <-----------@-----.--->
To: NULL
Date: 5/6/2007 5:16:00 AM

Thanks Martin. The margin problem is clear now.

What are the consequences of not having the <!DOCTYPE html PUBLIC "-//
W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> statement in my
rendered XHTML page?

As for testing, I test the pages using the latest Firefox(with Web
Developer Toolbar). Yes, It's all client based and when I use my Web
Dev toolbar, I can see that It is well formed but without the <!
DOCTYPE... statement. As a side note, I also test using Netscape and
IE....

Thanks,
Chris

On May 6, 1:26 pm, Martin Honnen <mahotr...@yahoo.de> wrote:
> kokopell...@gmail.com wrote:
> > I seem to have trouble producing a true XHTML document from a XSLT
> > stylesheet.
> > 1) No matter what I try, I can't seem to produce the resulting page
> > with the proper DOCTYPE attribute. Ex.
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > The XLST will reject every thing I try. I've read that it is possible
> > but quite tricky.
>
> Which XSLT processor are you using? How are you checking the result for
> a DOCTYPE declaration node?
>
> > 2) Besides the first problem, I can't seem to set the bottom margin
> > for the resulting document.
> > Ex. For a quick test, I set the margins of the body to 0px and I set
> > the color of the body to see the problem more clear.
> > <body bgcolor="#009900" style="margin:0pt;">
> > The color inside the body will never go to the bottom of the document.
> > In other words the page will always have the bottom margin shown. It's
> > odd. I've specifically tried to change the bottom margin but it didn't
> > work using margin-bottom:0px. If I change the global margin style from
> > margin:0pt to something else like margin:5pt, the left, top and right
> > will change as expected.
>
> > Here is the xmlhttp://hortonchris.com/test/test.xml and it's
> > stylesheethttp://hortonchris.com/test/test.xsl
>
> So you are using an xml-stylesheet pi which indicates you are relying on
> client-side XSLT.
> As for the style problem, the body element is not the canvas, rather the
> html element (at least in standard compliant rendering mode in modern
> browsers) is so try
> <http://home.arcor.de/martin.honnen/xslt/test2007050601.xml>
> as an example.
>
> --
>
>         Martin Honnen --- MVP XML
>        http://JavaScript.FAQTs.com/




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent