开发者

what's the best scenario to use XSLT

I am learning xslt, but don't know 开发者_JAVA技巧the best scenarios for use xml + xsl.


The best scenario to use XSLT is when you need to display XML data in different formats.

I.E., when you have an XML with products, and you need to output them in HTML, TXT, XHTML, WML, you can use XSLT transformations to do that.

The best part of XSLT transformations is that you can do SERVER SIDE transformations, if your client (browser) does not support XSLT natively (like some Mobile Browsers).


In addition to Pablo Santa Cruz' answer, the other common case where you'd want to use XSLT is to manipulate an XML file and get new XML code. For instance, you might use XSLT to change some settings in your web.config before deploying an ASP.NET project.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜