Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.

How to generate a html file from a xml file with the default Firefox look and feel

more options

Hello

Any xml or xsd file are pretty printed with Mozilla firefox. I would like to generate the equivalent html file, in order to introduce it later in a Word document. Do you use a xslt file ? How can I do this ?

Best regards

Hello Any xml or xsd file are pretty printed with Mozilla firefox. I would like to generate the equivalent html file, in order to introduce it later in a Word document. Do you use a xslt file ? How can I do this ? Best regards

Ọ̀nà àbáyọ tí a yàn

Copy and paste this URL into the address bar of a new tab and press Enter to view the documents (XSL may load in an external viewer):

  • chrome://global/content/xml/XMLPrettyPrint.xsl

It references two style sheets:

  • chrome://global/content/xml/XMLPrettyPrint.css
  • chrome://global/content/xml/XMLMonoPrint.css
Ka ìdáhùn ni ìṣètò kíkà 👍 1

All Replies (4)

more options

Ọ̀nà àbáyọ Tí a Yàn

Copy and paste this URL into the address bar of a new tab and press Enter to view the documents (XSL may load in an external viewer):

  • chrome://global/content/xml/XMLPrettyPrint.xsl

It references two style sheets:

  • chrome://global/content/xml/XMLPrettyPrint.css
  • chrome://global/content/xml/XMLMonoPrint.css
more options

I would be remiss if I did not point out that the forum software detected your Firefox as version 17. Is that correct?

Version 17 is not secure; Mozilla discloses security flaws after each new release. Is something holding you back from upgrading to Firefox 31? Please let us know so we can suggest solutions or workarounds.

If Help > About Firefox shows Firefox 31, you may need to clear the preference that is misreporting your version number. See: How to reset the default user agent on Firefox.

more options

Thank you very much !

I'am trying to use this XMLPrettyPrint.xsl in a XMLSPY project. A first error appears saying to me : Unable to load external entity 'prettyPrintDTD ...'.

If I remove the section , the first error disappears but another error appears saying to me : No external markup declarations present ... '&locale.dir' must be declared

In fact, I would like to apply this xslt file to many xsd or xml files and generate the associated html files. Perhaps using XMLSPY is not a good idea ?

Best regards. Martine LEPRINCE

more options

Hi Martine, I could locate the above listed files but I am not very familiar with XSLT so I'm not sure how to use them in a different context.

Anyway, these DTD files seem mostly blank:

chrome://global/locale/xml/prettyprint.dtd
chrome://global/locale/global.dtd

Are they really needed???