|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
XML/XSL transform problem in FF and Opera
i have some XML code,like this
XML.XML Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "*">
]>
<?xml-stylesheet href="xsl.xsl" type="text/xsl"?>
<A>
<B>text1</B>
<B>text1</B>
</A>
XSL.XSL Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" version="html4.01" encoding="ISO-8859-1" doctype-public="-//W3C//DTD HTML//EN" doctype-system="http://www.w3.org/TR/html/loose.dtd" /> <xsl:template match="/"><HTML> <HEAD> <BODY> <TABLE style="height:100%;"> <TR><TD style="height:10px">text</TD></TR> <TR><TD></TD></TR> </TABLE> <xsl:apply-templates/> </BODY> </HEAD> <HTML> </xsl:template> </xsl:stylesheet> it has something with automatic !DOCTYPE with FireFox and Opera in IE and Safari it works fine with ordinary HTML page in FF and Opera,if you dont say what DOCTYPE to use,they have good algorythm for choosing which DOCTYPE they will use but,during XSL transformation,FF and Opera rendering it like ordinary HTML page with this type of DOCTYPE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> and than i dont have with HTML code what i want TABLE height 100%, first row height 10px and second row height the rest up to 100% height of TABLE anyone knows solution? |
|
#2
|
|||
|
|||
|
You can specify the doc type as :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> http://www.alistapart.com/articles/doctype/ In order to do this, you'd need to use the <xsl:output> node <xsl:stylesheet ....> <xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd"/> http://www.w3schools.com/xsl/el_output.asp Last edited by jkmyoung : March 19th, 2008 at 01:05 PM. |
|
#3
|
|||
|
|||
|
thank you,but what i have in mind is that i want to have quirk mode,not strict
but,i rewrite my HTML code for strict DTD and now it works fine still,i would love to know how to make it in quirk mode somewhere i read that FF display only in strict mode,and u have to do it by javascript to change it |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XML/XSL transform problem in FF and Opera |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|