当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

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.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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

選ばれた解決策

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
この回答をすべて読む 👍 1

すべての返信 (4)

more options

選ばれた解決策

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