473,804 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Humble little XSL Firefox extension

Howdy folks,

I have released an extension for Firefox which performs XSL transforms
for an XML file. While Firefox automatically performs XSL transforms
when an XSL stylesheet is attached via a <?xml-stylesheet?proc essing
instruction, when you "view source", you can only see the original XML
file. This extension works somewhat similar to Microsoft's plugin for
Explorer (at http://www.microsoft.com/downloads/d...displaylang=en
) in allowing you to view the actual output.

My Firefox extension works on a currently loaded XML file, and applies
an XSL stylesheet that the user chooses via a dialog box. It can be
via a URL (http://), through the file protocol (file:///), or a local
file (C:\...). I haven't tested it on Mac or Linux.

Before this extension can be released, it first needs to get some
reviews, so I'd really appreciate it if anyone could take a look. If
there are any problems, feel free to post a reply here (so that I can
fix any major bugs and still have a chance of getting the extension
accepted!), and if you like it, just go ahead and add a review here:
https://addons.mozilla.org/en-US/firefox/addon/5023

Jun 5 '07 #1
4 3486
Oh, one caveat... It doesn't work with XSL files that use <xsl:import>
or <xsl:include>.. .

Jun 5 '07 #2
On Jun 5, 5:24 pm, Brett <bret...@gmail. comwrote:
Oh, one caveat... It doesn't work with XSL files that use <xsl:import>
or <xsl:include>.. .
Sorry, one more thing... it does work with <xsl:importan d
<xsl:includei f in a URL, but not when loading with a local file.
And, I tested it on a Mac, and it works fine with a URL, but not with
a local file...

Jun 5 '07 #3
Brett wrote:
I have released an extension for Firefox which performs XSL transforms
for an XML file. While Firefox automatically performs XSL transforms
when an XSL stylesheet is attached via a <?xml-stylesheet?proc essing
instruction, when you "view source", you can only see the original XML
file.
If you do "Select all (Ctrl-a)" and then "view selection source" you get
the result source view, without the need for an extension.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jun 5 '07 #4
Well, I'll be... :) Thanks for that one... Not too obvious a feature
to find...

Well, it was a learning experience anyways... And I suppose the
extension could still be useful if you visit an XML page without a
stylesheet attached and want to try one out...

Jun 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3871
by: M.N.A.Smadi | last post by:
hi; i want to write a script to do the following: when using firefox to download a textfile, instead of saving it to the hard dist, i want to run a python script on it, and i want the python script then to prompt me for the location where i want to store the processed downloaded file any help is appreciated thanks
7
9010
by: tagdance | last post by:
Hello friends, I have a very interesting problem with my css files and firefox - I guess ! Listen: I have set up my new website www.tagdance.de For testing purpose I have mirrored this site under www.suedafrika-kapstadt.com, where it looks lovely with all browsers.
5
1831
by: Prophet | last post by:
Might be a stupid question...... but I keep seeing people post about firefox. What is firefox?
14
24244
by: David Blickstein | last post by:
I have some XML documents that I want to open in a web browser and be automatically translated to HTML via XSLT. I'm using an xml-stylesheet processing command in a file called "girml.xml". This all works in Internet Explorer, but doesn't work with Firefox. In both IE and Firefox this works: <?xml-stylesheet type="text/xsl" encoding="UTF-8" href="makehtml.xslt" version="1.0"?>
4
9791
by: J.Marsch | last post by:
Does anyone know of an example or a document describing how to write a plug-in for Firefox in C#? As I understand it, Firefox uses the same plug-in model as Netscape, so if perhaps a Netscape example would do as well.
2
2776
by: Tomas Martinez | last post by:
Hi there! I'm trying to download a file in my asp.net web, but when downloading it from a Firefox browser, instead of downloading the example.exe file, it's downloading example.exe.htm. My code is the following: string localfile = MyComponent.DownloadMyExe(index); Response.ClearContent(); Response.ClearHeaders(); Response.ContentType="application/octet-stream";
3
3081
by: Csaba Gabor | last post by:
Firefox's configuration settings (Prefs.js) can be accomplished via the interface at about:config. Q1. Is there any such setting that can be repeatedly altered via javascript (in a vanilla security environment), without having to request preivileges? By altered, I mean having it remain in effect the next time Firefox is restarted. Q2. If the answer to Q1 is affirmative, is there any such setting that could have an event associated...
1
4726
by: One Lazy Russian | last post by:
Thanks in advance to anyone that can help. I created an extension for firefox that acts as a bookmarklet for Gmail, Yahoo, and all standalone clients (via the mailto function). Upon clickin on the toolbar-button it will send a user the the title and url in the subject line and body respectively. Recently, I've been bombarded with emails on adding a feature which will allow the user to send the page as it is displayed (none of the
3
3253
by: Hamayun Khan | last post by:
I have Two asp pages addfiles.asp insert.asp addfiles.asp is used to browse the files which i want to upload to server. in IE both the pages run and the files uploads ok. There is problem in firefox.
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
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,...
0
10599
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10346
jinu1996
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...
0
10090
tracyyun
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...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5531
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...
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.