Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

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

Solution choisie

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
Lire cette réponse dans son contexte 👍 1

Toutes les réponses (4)

more options

Solution choisie

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???