[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl not formatting xml correctly in mozilla or fi

Subject: Re: xsl not formatting xml correctly in mozilla or firefox
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Thu, 2 Dec 2004 13:57:22 -0600
jon gorman
Hi Andy,

> In mozilla and firefox (both the latest versions from Gentoo sources) I
> get ...
> 
> ForenameSurnameage metal mickey 21 hey bukko 99 experts exchange 10

I'm a bit new to xsl too, but that's why I'm on this list.  From what
I could tell, firefox/mozilla doesn't assume html as an output method
but rather text.  Not positive about this though since I would think
that would cause the tags to appear as text also or give an error.  By
adding an xsl  output tag it seems to solve the problem.

> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html"/>

On another note, I'm not sure why you're including the xmlns:fo
namespace here or having the xml file have a MIME type of 'text/xsl'. 
I believe it should be 'text/xml'.

Hope this helps,

Jon Gorman

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.