????? ????? "?????" XSL ?? ????? XML ??? ????? XML ???????? Visual Basic .NET

?????? ????????? ?????? ?????????
???? ???????: 300929 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ????? ????? ??? ????? ??????? ??????? (XSL) (XSLT) ??? ????? ??? ????? ??????? (XML) ???????? ??? XslTransform ?????? ????? XML ????. XSL ?? ??? ????? ??? XML ???? ?? ?????? ????? ????? XML ???? ??? ????? XML ??? ?? ????? XML ??? ?? ????? ??? ?????.

???????

???? ??????? ??????? ??????? ?????? ??? ????? ?????? ???????? ?????? ? ??? ??????? ???? ???????:
  • Microsoft Visual Studio .NET
  • ?????? ????? ??????? (SDK) Microsoft .NET Quickstarts
????? ??? ??????? ??? ??????? ??? ???????? ???????:
  • ????????? XML
  • ????? ??? XML ????????
  • ???? ???? ???? XML Path (XPath)
  • xsl

??????? ??????? ?????? ???????

?????? ??? ?????? ????? ?????? Books.xml ? Books.xsl. ???? ????? ??????? ?????? ?? Books.xml Books.xsl ?? ??????? ????? ??????? ???? ?? ??????? ?? QuickStarts ????? ????? ??????? (SDK) .NET. ??? ??? ????? Books.xml ? Books.xsl ??? ?????? \Bin ??????? ???? ?????? ????? ??? ???????. ?? Visual Studio .NET 2003 ? ???? ?????? ??? ??? ??????? ?? ?????? ??????:
..\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\Howto\Samples\Xml\Transformxml\Vb
?? Visual Studio .NET 2002 ? ???? ?????? ??? ??? ??????? ?? ?????? ??????:
...NET\FrameworkSDK\Samples\QuickStart\Howto\Samples\Xml\Transformxml\Vb Visual Studio \Program Files\Microsoft
  1. ????? "????? ???? ????" ???? ?? Visual Basic .NET.
  2. ???? ?? ?? ????? ??????? ??? ???? ??? ????? ????? System.Xml ?? ????? ???? ??? ?? ???.
  3. ?????? ????? ?????? ????????? ??? ?????? ??????? Xml ? Xsl ???? ??? ?????? ????? ????????? ?? ????? ??????? ?????? ?? ????????? ????????. ??? ???? ??????? ??????? ?????? ????????? ??? ?? ????????? ??????:
    Imports System.Xml
    Imports System.Xml.Xsl
    					
  4. ?? ?????? ????????? ????????. ???? ?????? ???? XslTransform ????? ??????? XML:
    Dim myXslTransform As XslTransform
    					
  5. ????? ???? XslTransform ????. ????? ??? XslTransform ????? XSLT ?????? ????? ??????? 1.0 XSLT:
    myXslTransform = New XslTransform()
  6. ?????? ??????? ????? ????? ?????? XslTransform ?? ???? ???????. ???? ??????? ??????? ?????? ?????? ??? Books.xsl ??? ????? ????? ??? ???? ????? (ISBN) ???? ?? ?????.
    myXslTransform.Load("books.xsl")
    					
  7. ??????? ??????? "?????" ???? ???????, ????? ?? ???? XML ???????? XML ????? ??????? ???:
    myXslTransform.Transform("books.xml", "ISBNBookList.xml")
    					
  8. ?????? ??????? ???????. ???? ?????? ??? ????? ISBNBookList.xml ??????? ?? ?????? \Bin ??? ???? ??? ??????? ".

????? ????????? ???????? ?????

Imports System.Xml
Imports System.Xml.Xsl
Module Module1

    Sub Main()
        Dim myXslTransform As XslTransform
        myXslTransform = New XslTransform()
        myXslTransform.Load("books.xsl")
        myXslTransform.Transform("books.xml", "ISBNBookList.xml")
    End Sub

End Module
				

?????

????? ?? ????????? ??? ??? XslTransform ???? ?????? ".NET Framework ??? ?????" Microsoft ?????:
http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltransform(VS.71).aspx
????? ?? ????????? ??? ??? XslTransform ?? ???? XslTransform ???? ?????? Microsoft .NET Framework ????? "???? ???????:
http://msdn.microsoft.com/en-us/library/aa735781.aspx
?????? ??? ?????? ?????? XSLT ?ASP.NET, ???? ???? MSDN Online ??????? ???? XML ???????:
http://msdn.microsoft.com/en-us/library/ms950754.aspx
????? ?? ????????? ??? XML ?? .NET ???? "XML ?? .NET: .NET Framework XML ???? ? ???? C# ???? ?????? ?????? ????? ???????" ??????? ?? Magazine MSDN ?? ???? Microsoft ?????? ??? ?????:
http://msdn.microsoft.com/msdnmag/issues/01/01/xml/default.aspx
????? ?? ?????????? ???? ?????? ??????:
R. Leupen ???? Wyke Allen Rehman Sultan. ??????? XML (???????? ????). Microsoft Press ???
????? ?? ?????????? ???? ?????? ????????? ??????? & ??????? Microsoft ???????:
???? Microsoft 2500 Introduction to XML and the Microsoft .NET Platform

???????

???? ???????: 300929 - ????? ??? ??????: 28/???? ?????/1427 - ??????: 5.2
????? ???
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
????? ??????: 
kbmt kbhowtomaster KB300929 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????300929

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com