在VB.Net中使用XSLT转换 [英] Using XSLT Transformation in VB.Net

查看:72
本文介绍了在VB.Net中使用XSLT转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,我将数据保存在xml文件中。

I''m developing an application in which I save data in a xml file.

<TreeViewData>
<Nodes>
<TreeNodeData>
<Text>Breakfast</Text>
<ImageIndex>-1</ImageIndex>
<SelectedImageIndex>-1</SelectedImageIndex>
<Checked>false</Checked>
<Expanded>false</Expanded><

Tag xsi:type="xsd:string">
- One Egg  n' Bacon or Sausage.
- Two Eggs  n' Biscuits.
- Muffin n'Fruit.
</Tag>
</TreeNodeData>
<TreeNodeData>
<Text>Lunch</Text>
<ImageIndex>-1</ImageIndex>
<SelectedImageIndex>-1</SelectedImageIndex>
<Checked>false</Checked>
<Expanded>false</Expanded>
<Tag xsi:type="xsd:string">
- Baked Chicken n' Dressing.
- Meatloaf and Mashed Potatoes.
- Turkey n’ Dressing.
</Tag>
</TreeNodeData>
<TreeNodeData>
<Text>Dinner</Text>
<ImageIndex>-1</ImageIndex>
<SelectedImageIndex>-1</SelectedImageIndex>
<Checked>false</Checked>
<Expanded>false</Expanded>
<Tag xsi:type="xsd:string">
- Butter-Baked Chicken.
- Broccoli Cheddar Chicken.
- Fried Pork Chops.
</Tag>
</TreeNodeData>
</Nodes>
</TreeViewData>





现在我需要一种以可读格式显示此数据的方法,如html或pdf。我尝试在 http://msdn.microsoft.com/en-us/library/14689742上学习XSLT转换.aspx http://www.w3schools.com 但我无法从中获得太多帮助。所以我想知道是否有人可以给我任何帮助。在此先感谢



Now I need a way to show this data in a readable format like html or pdf. I tried to study XSLT Transformations on http://msdn.microsoft.com/en-us/library/14689742.aspx and http://www.w3schools.com but I couldn''t get much help out of it. So I was wondering if any one can provide me with any help. Thanks in advance

推荐答案

这应该教程甚至从XML到HTML问题开始: http://www.tizag.com/xmlTutorial/xslttutorial.php [ ^ ]。



您可以使用XSLT编辑器进行锻炼: http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog [ ^ ]。



另请参阅: http://en.wikipedia.org/wiki/XSLT [ ^ ]。



注意文档和教程参考在本文末尾。



-SA
This should tutorial even starts with the XML to HTML problem: http://www.tizag.com/xmlTutorial/xslttutorial.php[^].

You can exercise with XSLT editor: http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog[^].

See also: http://en.wikipedia.org/wiki/XSLT[^].

Pay attention for the documentation and tutorial referenced at the end of this article.

—SA


这篇关于在VB.Net中使用XSLT转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆