XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old March 18th, 2008, 12:57 PM
zaWEBant zaWEBant is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 zaWEBant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 40 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old March 19th, 2008, 01:02 PM
jkmyoung jkmyoung is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 474 jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 18 m 31 sec
Reputation Power: 52
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.

Reply With Quote
  #3  
Old March 22nd, 2008, 11:28 AM
zaWEBant zaWEBant is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 zaWEBant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 40 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XML/XSL transform problem in FF and Opera


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway