FIX: ???? ??????? System.Xml.Xsl.XsltException ??? ?????? ????? ????? XSLT ???????? ???? ????? XSLT ?????? ?????? ????? ???

?????? ????????? ?????? ?????????
???? ???????: 832757 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

????? ???? ????? ????? ??? ????? ??????? ??????? (XSLT) ?????? ?????? ????? ???. ?? Microsoft Visual Studio .NET ? ??? ????? ????? XSLT ?????? ???? ??????? ??????? ??? ?????? ????? ??????? ??????? ??? ????? ? ??????? System.Xml.Xsl.XsltException ????. ??? ??????? ?? ?????? ?????? ????? ????. ?????? ??? ??????? ?????? ???? ?????? ??? ?????? Microsoft.

???????

????? ????? "??? ????? ??????? ???????" ???? ????? Transformation (XSLT) ???? ?????? ????? ??????? ??????. ?? Microsoft Visual Studio .NET ? ??? ?????? ????? ????? XSLT ???????? ???? ??????? ??????? ????? ??????? ??????? ??? ????? ? ????? ????? ????? ???????:
??? ??????? ??? ????? ?? ????? 'System.Xml.Xsl.XsltException' ?? system.xml.dll
??? ??? ??????? ????????? ???? ????????? ??????? ????? ????????? ???? ??????? ??????:
System.ArgumentException: NumberGroupSizes
??? ???????: ??? ?? ???? ?? ???? ?? ???? ?????? ??? ? 9 ??? ?????? ??????? ????? ???? ?? ???? ???.
?? System.Globalization.NumberFormatInfo.CheckGroupSize (propName ????? ? Int32 groupSize [])
?? System.Xml.Xsl.XsltCompileContext.FormatNumber (????? ???? ?? formatPattern ????? ?? ????? formatName)
?? System.Xml.Xsl.FuncFormatNumber.Invoke (xsltContext XsltContext ???? ????? [] ? docContext XPathNavigator)
?? System.Xml.XPath.XsltFunction.InvokeFunction (qy XPathNavigator ? ??????? XPathNodeIterator)

???? ???? 'format-number()'.

????

????? ???? ????? ???? ????? ?? Microsoft ???? ????? ??? ?? ?? ??????? ??????? ?? ??? ??????? ???. ??? ?????? ??? ??????? ???? ????? ??? ??????? ????????. ?? ??? ????? ???????? ?????? ??? ??? ??????? ??????. ?????? ??? ?? ??? ????? ??? ??????? ??????? ???? ????????? ??? ??????? ?????? ?? ???? ?????? ????? ????? ??? ??? ??????? ??????.

??? ??? ??????? ?????? ???? ?????? ??? ???????? ?? Microsoft "?????? ??? ??????? ??????. ?????? ??? ????? ????? ?????? ?????? ?????? ?????? ??? ???? Microsoft ???? ??????? ??? ?????? ?????? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://support.microsoft.com/contactus/?ws=support
?????? ?? ??? ???????? ?? ??? ????? ????????? ???? ?????? ????? ??? ??????? ????? ??? ??? ?????? ????? ??? Microsoft ?? ??????? ?????? ??? ???? ??? ?? ???????. ???? ????? ?????? ????? ???????? ??? ????? ????? ???????? ????????? ???? ?? ???? ??? ???? ??? ???????.????? ????? ????? ?????????? ?? ??? ??????? ?????? ??? ???? ????? (?? ??????) ???????? ?? ?????? ??????. ??? ??? ???????? ???????? ?????? ???? ??????? ???????? ??????? coordinated (UTC). ????? ???? ???? ??????? ?????? ??? ??????? ??? ??????? ??????. ?????? ????? ??? ??????? ??????? (UTC) ???????? ??????? ?????? ????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? "???? ??????".
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   03-Dec-2003  19:43  1.1.4322.978    1,339,392  System.xml.dll

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

??????? ????

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

  1. ????? ????? "????? ???? ??????"

    1. ??? ????? Microsoft Visual Studio .NET 2003.
    2. ?? ??????? ???? ??? ??? ???? ?? ???? ??? ???????.
    3. ??? ????? Project ? ???? ??? Visual C# ?????? ?? ???? ??? ????? ???? ?????? ??? ?????.
    4. ?? ?????? ?????? ???? FormatNumConsole.
    5. ???? ??? ?????. ???? ???????? ??? ??? ???? ????????? ???????? Class1.cs.
  2. ????? ???? ????? XSLT ?????? ?????? ????? ???

    1. ?? "?????? ??????" ???? ??? ?????? ?????? ??? FormatNumConsole ???? ??? ????? ?? ???? ??? ????? ???? ????. ???? ???? ?????? ????? ???? ???? - FormatNumConsole.
    2. ??? ???? ??? ????? ????? ????.
    3. ??? ????? ? ???? ??? XSLT ???.
    4. ?? ?????? ?????? ???? number.xslt ????? ?? ???? ??? ???. ??? ???? ????????? ???????? number.xslt ?????.
    5. ??????? ??? ????????? ???????? XML ???????? ?? XML ?????? ?????? ???? ????? ???????? ?????? XML:
      <?xml version="1.0" encoding="UTF-8"?>
      <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
          <xsl:template match="/">
              <table>
                  <xsl:apply-templates />
              </table>
          </xsl:template>
          <xsl:template match="number">
              <tr><td><xsl:value-of select="format-number(.,'#,##0;(#,##0)')"/></td></tr>
          </xsl:template>
      </xsl:stylesheet>
  3. ????? ??? XML ???? ?????? XML

    1. ?? "?????? ??????" ???? ??? ?????? ?????? ??? FormatNumConsole ???? ??? ????? ?? ???? ??? ????? ???? ????. ???? ???? ?????? ????? ???? ???? - FormatNumConsole.
    2. ??? ????? ? ???? ??? XML ???.
    3. ?? ?????? ?????? ???? number.xml ????? ?? ???? ??? ???. ??? ???? ????????? ???????? number.xml ?????.
    4. ??????? ??? ????????? ???????? XML ???????? ?? XML ?????? ????? ?????? XML:
      <?xml version="1.0" encoding="UTF-8"?>
      <root>
          <number>1000</number>
      </root>
  4. ???? ????? ????? XSLT ???????? ???? ????? XSLT ???? XML

    1. ??????? ??? ???? ????????? ???????? Class1.cs.
    2. ??????? ????????? ???????? ???????? ???????? ???????? ??????? ??????? ??? XslTransform ????? ?????? XML ?? ???? ??????? ???? ????? XSLT.

      ?????? ?? ????????? ???????? ??????? ??????? ?????? ??????? ???????? ?? ????????? ??? ????? XPathDocument ?????? xsltProcessor.Load:
      using System;
      using System.Xml;
      using System.Xml.XPath;
      using System.Xml.Xsl;
      using System.IO;
      using System.Text;
      
      namespace FormatNumConsole
      {
          class Class1
          {
              [STAThread]
              static void Main(string[] args)
              {
                  try
                  {
                      StringBuilder sb = new StringBuilder();
                      StringWriter sw = new StringWriter(sb);
      
                      // Load the XML data that you want to transform.
                      XPathDocument xmlDoc = new XPathDocument("C:\\FormatNumConsole\\format-number.xml");
      
                      // Load the XSLT style sheet that uses the format-number function.
                      XslTransform xsltProcessor = new XslTransform();
                      xsltProcessor.Load("C:\\FormatNumConsole\\format-number.xslt");
      
                      // Transform the XML data, and then send the output to the console.
                      xsltProcessor.Transform(xmlDoc,null,sw,null);
                  }
                  catch(Exception ex)
                  {
                      // Display the inner exception and the exception message.
                      Console.WriteLine(ex.InnerException.ToString());
                      Console.WriteLine();
                      Console.WriteLine(ex.Message);
                      Console.ReadLine();
                  }
              }
          }
      }
    3. ????? ??????? ?? ?? ?????? ???????. ???? ????? ???????? ?? ??? "???????" ?? ???? ???? ????.

?????

?????? ??? ??????? ??????? ???? ??? ????? ???????? ??????? ?????? ?? "????? ??????? ?? Microsoft:
824684??? ????????? ???????? ????????? ?? ??? ??????? ????? Microsoft
307494????? ????? "?????" XSL ??? XML ?????? ???????? Visual C# .NET
????? ?? ?????????? ?? ?????? ????? ????? Network (MSDN) ?????? Microsoft ???????:
??? XsltException
http://msdn2.microsoft.com/en-us/library/system.xml.xsl.xsltexception(vs.71).aspx
????? ??????? ??????
http://msdn2.microsoft.com/en-us/library/ws343esk.aspx
??? XslTransform
http://msdn2.microsoft.com/en-us/library/system.xml.xsl.xsltransform(vs.71).aspx

???????

???? ???????: 832757 - ????? ??? ??????: 04/????? ??????/1428 - ??????: 2.4
????? ???
  • Microsoft .NET Framework 1.1
????? ??????: 
kbmt kbqfe kbhotfixserver kbbug kbformat kbstyle kbxml kbsample kberrmsg kbcode kbfix KB832757 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????832757

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

 

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