i m trying to see the xml in a browser using an xslt....
My xml i have defined as
<?xml version=" 1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="Topic_pub lications_xsl.x sl"?>
<!DOCTYPE root [
<!ENTITY about SYSTEM "publications.x ml">
]>
<root>
&about;
</root>
so its extending publications.xm l which has the data...
and Topic_publicati ons_xsl.xsl has the logic of showing the data on the browser..
Now this works great on IE but on mozilla firefox it has problems and does not show the data...
Do u have any idea on this??
Also there is a point on mozilla firefox that it does nt accept external DTD's. So is this the reason..
Thanks for the help.
4 1701
What error do you get?
Please post your XSL code, and XML working in IE.
I haven't messed with xml in quite a while but, if this has to do with external entities, it is my understanding Firefox does not handle those yet.
What error do you get?
Please post your XSL code, and XML working in IE.
Ya sure. so there is
Topic_Publicati ons_xml.xml which extends publications.xm l
also Topic_Publicati ons_xml.xml used Topic_Publicati ons_xsl.xsl to display on web browser. - for Topic_Publications_xml.xml
-
-
- <?xml version="1.0" encoding="ISO-8859-1"?>
-
<?xml-stylesheet type="text/xsl" href="Topic_publications_xsl.xsl"?>
-
<!DOCTYPE root [
-
<!ENTITY about SYSTEM "publications.xml">
-
]>
-
<root>
-
&about;
-
</root>
-
-
-
-
[b] - for Topic_Publications_xsl.xsl
-
-
<?xml version="1.0" encoding="ISO-8859-1"?>
-
<xsl:stylesheet version="1.0"
-
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-
xmlns:url="http://www.jclark.com/xt/java/java.net.URLEncoder"
-
exclude-result-prefixes="url">
-
-
<xsl:key name="rows" match="Paper" use="Area" />
-
<xsl:template match="Publications">
-
-
-
<html>
-
<head>
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
<title>Ravi Sundaram-Publications</title>
-
<link href="../css/stylesheet.css" rel="stylesheet" type="text/css" media="all" />
-
</head>
-
<body>
-
-
<font size="3">
-
<xsl:apply-templates
-
select="Paper[generate-id(.) = generate-id(key('rows', Area)[1])]" >
-
<xsl:sort select="Area"/> <!-- Select area alphabatecially. Group By-->
-
-
</xsl:apply-templates>
-
</font>
-
-
</body>
-
</html>
-
-
</xsl:template>
-
-
<xsl:template match="Publications/Paper">
-
<br/>
-
-
<b><xsl:value-of select="Area" /></b> <!-- For each area selected above select all papers-->
-
<br/>
-
<xsl:for-each select="key('rows', Area)">
-
<xsl:sort select="Year" data-type="number" order="descending"/>
-
<xsl:sort select="@monthid" data-type="number" order="descending"/>
-
<br/>
-
-
<xsl:choose>
-
<xsl:when test="string-length(Full-Paper-link)"> <!--if there is link to paper-->
-
<a>
-
<xsl:attribute name="href"><xsl:value-of select="Full-paper-link"/> </xsl:attribute >
-
<span style="color: #0000ff">
-
<xsl:value-of select="Topic"/>
-
</span>
-
</a>
-
<br/>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:value-of select="Topic"/> <!--if there is no link to paper-->
-
<br/>
-
</xsl:otherwise>
-
</xsl:choose>
-
-
<xsl:for-each select="Author">
-
<xsl:if test="string-length(Name)">
-
<xsl:if test="position()=1">
-
<xsl:text> with </xsl:text>
-
</xsl:if>
-
-
<xsl:value-of select="Name"/>
-
<xsl:if test="not(position()=last())">
-
<xsl:text>, </xsl:text>
-
</xsl:if>
-
<xsl:if test="position()=last()">
-
<br/>
-
</xsl:if>
-
</xsl:if>
-
</xsl:for-each>
-
<xsl:value-of select="Conference"/>
-
<br/>
-
<xsl:if test="string-length(Abstract)">
-
<xsl:value-of select="Abstract"/>
-
<br/>
-
</xsl:if>
-
</xsl:for-each>
-
-
</xsl:template>
-
-
-
</xsl:stylesheet>
-
-
Now if u run this code in an IE it works fine whereas it does not open up in Mozilla.
Kindly guide me.
Thanks
Hi,
Did you succeed to solve the problem ?
If yes, please let me know, in order to close the thread.
Thanks,
Dorin.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Eric |
last post by:
I am trying to figure out a good way to implement a XSLT
transformation. Basically my goal is that I want to be able to ouput
the following XML in a document:
<chart type="pie" width="100" height="100">
<data label="Foo" value="12"/>
<data label="Bar" value="15"/>
.....
</chart>
|
by: Laiverd.COM |
last post by:
Hi everybody,
Since today the pages at http://www.laiverd.com/groundzero/anima have problems with the hover-styles in Netscape 7.1 (no problems in
Mozilla, Firefox and IE on Windows). I am not quite sure whether this is a CSS problem - even though it seems so - , as on some
pages regular images refuse to appear automatically also. The stylesheet can be found at
http://www.laiverd.com/groundzero/anima/include/style/style_screen.css Would...
|
by: IanUK |
last post by:
I hope someone may be able to help please!
Have a look at this site which I'm developing - http://tinyurl.com/6d4nr
As you will see if you look at it in IE6, the browser has completely screwed
the stylesheet and knocked the logo over too far etc. I've checked it out
in Mozilla, Netscape 7, Opera and Firefox and it's working fine.
Any ideas what I can do to get IE to work but then not to cause the other
browsers to get screwed?
|
by: anna |
last post by:
Firefox Mozilla Browser Fonts / Format / rich text / webmail question
I have Comcast. They do not support Firefox so they won't help me.
When I use Mozilla firefox browser to access my web mail like comcast
webmail, I cannot change fonts, underline, bolden words. I cannot see
the icons.
I think I have the same problem using Yahoo and Firefox.
|
by: John Bullock |
last post by:
Hello,
I am at wit's end with an array sorting problem. I have a
simple table-sorting function which must, at times, sort on columns that
include entries with nothing but a space (@nbsp;). I want all of the
spaces to be put in the first slots of the array. IE 6 does this. But
Firefox 0.9.1 doesn't, and I don't know why.
I have not been able to reproduce it in very simple form (which
is itself a puzzle). But example code is...
| |
by: niftyhawk |
last post by:
Hi,
Can anybody give me a simple example of how to Call Web Services from
Mozilla based Browsers ? I can call web services from IE browser using
web service behavior file, without any problems. Just wanted to know an
easy way to call them from Firefox or Netscape.
Thanks,
Nifty.
|
by: Jarson |
last post by:
My JavaScript is trying to POST data to a CGI script (Perl) using
XMLHttpRequest. My CGI server gets different data from IE than Mozilla
Firefox.
// For Mozilla, req = new XMLHttpRequest();
// For IE req = new ActiveXObject("Microsoft.XMLHTTP");
req.onreadystatechange = requestHandler ; // function to handle async
response
req.open('POST', myURL, true); // use POST
req.send('foo=11&bar=22') ;
|
by: AJBopp |
last post by:
Ok, I'm trying to be a good little boy and create a site that doesn't
use frames :) Things were going along decently until I uploaded what
little I have done so far to the web server (that is, things were
displaying pretty well on my local machine - not perfect, but we'll get
to that later).
So here's the site: http://www.wesleyumc-vinton.org/beta/index.html
This page displays pretty good in IE, but all the graphics and styles
are...
|
by: jwwest |
last post by:
Hello all,
I've been building a simple site based on XML, XSL and CSS in order to
help me learn those technologies better. However, building a tableless
page is brand new to me so I've run into a large amount of problems.
The biggest seems that Firefox wants to put a line in between two of
my nested tags for some reason. However, this is only in the XML
version. To design the page, I first made an HTML version, then I
created a XSL...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |