How do I run an XSLT file?

后端 未结 5 1878
谎友^
谎友^ 2020-12-08 18:28

Alright this seems like a stupid question but I can\'t figure it out. I\'m writing an XSLT file to translate an XML document into an XHTML document. I\'ve used both Visual S

5条回答
  •  -上瘾入骨i
    2020-12-08 18:54

    You have two options:

    1. Let the browser do it. Pass the XML with a reference to the XSLT and the browser (IE 6 or lower might have problems) will render it as (X)HTML:

    2. Do it server-side. Most languages have methods for accepting XSLT and XML data, then outputting (X)HTML. Here are some options:

      • MSXML
      • Saxon
      • Xalan

提交回复
热议问题