Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: httpwebwitch
For example: I've define the <content> tag, if my xml code is
<content>Hello <br /> world.</content>
in I.E. it shows as:
in FF it shows as:
Hello <br /> world.
You'll see from my code below that I'm using CDATA in order to output html, I think thats where the problem lies, but I have no idea. Here's what I'm working with.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:value-of select="content" disable-output-escaping="yes" />
<?xml-stylesheet type="text/xsl" href="http://www.domain.com/blog.xsl"?>
<!DOCTYPE blogset SYSTEM "http://www.domain.com/blog.dtd">
<![CDATA[ Test test <br /> Test Test ]]>
If you need any further info, just let me know.
It simply can't parse XML properly.
I'm ready to be pelted with suggestions from people who can see parsed, well-formed XML pages in Firefox regarding how to configure the thing so it behaves properly, (I can't believe I'm saying this ... but) like Internet Explorer does.
Let a real good parser do that and do not demand of the visitors they they shall have any IE to parse it for themself.
Some people needs to learn why XML exists.
XML is an open markup language for data in documents and other files/databases. From XML you parse into other formats like HTML, WORD, PDF or whatever. XML shall always be created so it's easy to move the XML data from one platform and software to another without a lot of edits in the XML data, most XML coders are doing a huge mistake there.
I recently used the set of scripts found here [wirelessdevnet.com] along with PERL's LWP::Simple to (a) grab the WebMD news feeds and (b) convert them for use on a website.
Smashing! There are some tweaks to make, like I used a
statement instead of all of the
conditions, and I used a different, more accurate loop counting variable, but it's a great place to start, IMHO.
if ... elseif
It works in IE, but not FF. Any technical specification
about that? XML was created to work CROSS platform, not
just IE only.