????? ????? ????? XSL ?????? XML ???????? Visual C#

?????? ????????? ?????? ?????????
???? ???????: 307322 - ??? ???????? ???? ????? ????? ??? ???????.
?????? ??? ????? Microsoft Visual Basic.NET ???? ????????? ???? 300929.
?????? ??? ????? Microsoft Visual c + +.NET ?? ??? ????????? ???? 815653.
???? ??? ??????? ??? ??? ?????? ??????? ????? ??????.NET Framework Microsoft:
  • System.Xml
  • System.Xml.Xsl
????? ???? | ?? ????

?? ??? ??????

??????

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

???????

???? ??? ??????? ??????? ?????? ??? ???????? ??????? ?????? ????????? ???? ??????? ???? ???????:
  • Microsoft Visual Studio 2008? Microsoft Visual Studio 2005? ?? Microsoft Visual Studio.NET.
  • ?????? ????? SDK Microsoft.NET
????? ??? ??????? ??? ??? ????? ??? ??? ????????:
  • ??????? XML
  • ????? ?????? ??? XML
  • ???? ???? ??? ???? XML (XPath)
  • XSL

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

?????? ??? ?????? ????? ?? ??????? ???? ???? Books.xml ? Books.xsl. ????? ????? ????? ????? Books.xml ? Books.xsl ?????? ?? ?? ??????? ????? ???????? ???? ??? ????? ?? ?????? ?????.NET ?????? ????? ??????? (SDK). ??? ???? ??? ??????? Books.xml ? Books.xsl ??? ?????? bin \ ???? ????? ??? ?????? ???? ??? ????? ??? ???????. ???? ?? ???? ??? ??????? ?? ?????? ??? ?? ?????? ??????:
...NET\FrameworkSDK\Samples\QuickStart\Howto\Samples\Xml\Transformxml\Cs visual Studio \Program Files\Microsoft
  1. ????? ????? ???? ???? C# ???? ?? Visual Studio 2008 ?? ?? ????? ???? ?? Visual Studio.
  2. ???? ?? ?? ????? ??????? ??? ???? ??? ????? ????? System.Xml ? ?????? ???? ??? ?? ???.
  3. ????? ????? using ??? ?????? ??????? Xml ? Xsl ???? ??? ?????? ??? ????? ????????? ?? ?????? ?????? ?? ????????? ???????? ?????? ??. ??? ??????? ????? using ??? ??? ??????? ??????.
    using System.Xml;
    using System.Xml.Xsl;
    					
  4. ?? ?????? ????????? ????????? ??? ?????? ???? XslTransform ????? ??????? XML.
    XslTransform myXslTransform;
    					
  5. ?? ?????? ???? XslTransform ????. ????? XslTransform ?? ????? XSLT ???? ???? ?????? XSLT ??????? 1.0 ?? ???? ??.
    myXslTransform = new XslTransform();
    					
  6. ?????? ????? Load ?????? ?????? XslTransform ?? ???? ???????. ???? ??? ???? ??????? ?????? ??? Books.xsl ??? ????? ISBN ???? ?? ?????.
    myXslTransform.Load("books.xsl")
    					
  7. ??????? ??????? " ????? " ???? ???????? ?????? ?? ???? XML ??????? ???? ??????? XML ?? ??????.
    myXslTransform.Transform("books.xml", "ISBNBookList.xml");
    					
  8. ????? ?????? ??????? ????? ??. ????? ?????? ??? ???????? ??????? ????? ISBNBookList.xml ?? ?????? bin \ ???? ??? ??? ??????? ??????.

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

using System;
using System.Xml;
using System.Xml.Xsl; 
namespace XSLTransformation
{
    /// Summary description for Class1.
    class Class1
    {
        static void Main(string[] args)
        {
            XslTransform myXslTransform; 
            myXslTransform = new XslTransform();
            myXslTransform.Load("books.xsl"); 
            myXslTransform.Transform("books.xml", "ISBNBookList.xml"); 

        }
    }
}
				

?????

????? ?? ????????? ??? ??? XslTransform ?? ?????? XslTransform ? ?? ?????? ???? MSDN ??? ??? ??????:
????? XslTransform
?????? ??? ???? ?? ????????? ??? XML ??.NET? ???? "XML ??.NET: ????.NET framework XML ? C # ???? ?????? ????? ??????? ???????? " ????? ?? ???? MSDN. ?????? ????? ?? ?????? ???? MSDN ??? ??? ??????:
http://msdn.microsoft.com/msdnmag/issues/01/01/xml/default.aspx
 

???????

???? ???????: 307322 - ????? ??? ??????: 01/????/1434 - ??????: 2.0
????? ???
  • Microsoft Visual C# 2008 Express Edition
  • Microsoft Visual C# 2005
  • Microsoft Visual C# .NET 2002 Standard Edition
????? ??????: 
kbhowtomaster kbmt KB307322 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????307322

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

 

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