Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

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

Giải pháp được chọ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
Đọc câu trả lời này trong ngữ cảnh 👍 1

Tất cả các câu trả lời (4)

more options

Giải pháp được chọ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???