XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Cody McCullochSubject: XML in firefox
Author: Cody McCulloch
Date: 27 Jan 2005 01:29 PM
Hi, Im having some problems getting XML to display in Mozilla. For some reason I'll get it to display fine in IE but will not come through in mozilla. I'm also having problems linking the XML file remotely (on a different web server). Anyway, thanks for any help... Here's my XML document and below is my HTML.

[CODE]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE newsbox [
<!ELEMENT newsbox (news+)>
<!ELEMENT news (title,content,username,country,date)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT content (#PCDATA)>
<!ELEMENT username (#PCDATA)>
<!ELEMENT country (#PCDATA)>
<!ELEMENT date (#PCDATA)>
<!ATTLIST news id CDATA #REQUIRED>
]>
<newsbox>
<news id="12">
<title>sdfgsdfg</title>
<content>sdfgsdfgsd</content>
<username/>
<country/>
<date>2005-01-19 15:37:36</date>
</news>
<news id="14">
<title>asdfasdf</title>
<content>asdfasdfasdf</content>
<username/>
<country/>
<date>2005-01-19 15:40:04</date>
</news>
<news id="13">
<title>test</title>
<content>test</content>
<username/>
<country/>
<date>2005-01-19 15:39:28</date>
</news>
<news id="15">
<title>test</title>
<content>test</content>
<username/>
<country/>
<date>1106170888</date>
</news>
</newsbox>
[/CODE]

HTML:[CODE]
<xml id="newsData" src="testing.xml"></xml> <!-- calls for external XML file -->
<table border="0" datasrc="#newsData">

<tr>
<td><span datasrc="#newsData" datafld="TITLE">&nbsp;</span></td>
<td><span datasrc="#newsData" datafld="CONTENT">&nbsp;</span></td>
</tr>

</table>[/CODE]

*EDIT* I would also like to point out that when going to the w3c "try it yourself" XML section I cannot get them to work in firefox either, thx for any help, again.

Postnext
Ivan PedruzziSubject: XML in firefox
Author: Ivan Pedruzzi
Date: 28 Jan 2005 04:47 PM
>Hi, Im having some problems
>getting XML to display in
>Mozilla. For some reason I'll
>get it to display fine in IE
>but will not come through in
>mozilla. I'm also having
>problems linking the XML file
>remotely (on a different web
>server). Anyway, thanks for
>any help... Here's my XML
>document and below is my HTML.


As far as i know XML data islands are not supported on Mozilla.
Look here for a possible work around

http://www.mozilla.org/xmlextras/xmldataislands/

At the bottom of the page there is an example that show how
to build a table using a XML fragment


>*EDIT* I would also like to
>point out that when going to
>the w3c "try it yourself" XML
>section I cannot get them to
>work in firefox either, thx
>for any help, again.

Could you please indicate the excat URL are you refferring to?

Ivan

Posttop
Cody McCullochSubject: XML in firefox
Author: Cody McCulloch
Date: 31 Jan 2005 02:08 PM
Originally Posted: 31 Jan 2005 01:31 PM
Ok, I have the XSL set up how I want it and now I just want to know how to include it into a HTML file. Thx for any help, this is my first XML experience :S

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.