开发者

Viewing source in XML to XHTML transformation through XSL

I'm tryin开发者_如何转开发g to use an XSL file to transform an XML file into an XHTML file. How can I view the XHTML source that is output after the transformation. I'm currently viewing the results through Firefox, but all I see is the rendered version of the XHTML file. I want to see the source, but when I go to View->Page Source, all I see is the XML. I'm running Ubuntu.

Thanks in advance!

-- Corey


Use the Web developer toolbar, and utilize its View Generated Source option.

From the context menu choose Web Developer --> View Source --> View generated source.

Here's a link to a w3school's XSL sample page if anyone wants to test it out.


I would do the transform on the command line and then point firefox at the generated file until you have the XHTML correct.

The command you need would be something like:

xsltproc -o xshtmlfile.html xslfile.xsl xmlfile.xml

You may need to install libxslt to get the xsltproc command.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜