INFO: ?????? ????? ?????? ??????? XSL

?????? ????????? ?????? ?????????
???? ???????: 815124 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

???? ??? ??????? ??? ???????? ?????? ???? ??????? ??? ????? ??????? ??????? (XSL). XSL ??? ??????. ?? ????? XSL ????? ??? ???????. ??? ???? ??????? ?? ????? XSL ??? ??????? ?? globals. XSL ??? ??? ????? ??? ??? ???? ?????? ????? ???????. ?? ???? ??????? ???????? XSL ?? ????? ???? ????? ????.

??????? ????

????? ???? ????? XSL ??? ????? ????????? ???? ????????. ????? ???????? ??????? ?? ??? ??????? ??????? ????. ???? ?? ???? ????? ?? ?????. ???? ?? ???? ??? ?????? ?? ??? ???? ????? ????? ??? ????? ?????? ?? ??. ????? ??????? ?????? ???????? ???? ??????? msxsl.exe ???????? ? ?????? ??????? XSL ??? ??????? ???????? ????? XSL Microsoft. ??????? ?????? ???????? msxsl.exe ?? Microsoft XML ???? 4.0 (msxml4.dll) ????? ??????? ???. ????? ????? ??? ?????? ???????? ?? MSDN ?????? ????:
http://www.microsoft.com/downloads/details.aspx?FamilyID=2fb55371-c94e-4373-b0e9-db4816552e41&DisplayLang=en

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

  • ????? ?????? ??? ?????? ?????? ?????? ??????? ?? ????? ?????? ??? ????????. ????? ?????? ??????? re-used ???? ?? XSL.
  • ????? ?? ??????? sub-elements ? ?????? ???? ???? ????. ??????? ???? ????? ?? ??????? ???? ??? ????? ??????. ??? ????? ????????? XPath ? ???? ???? ???? ???? ??? ??????? ?? ????????. ??? ????? ?????? ?? ??? ??????.
  • ??????? ?????? ????? ???? ????? ?? "/ /" ???? ????. ????? ???? ???????? XML ????? ?????? "/ /" ??? ????? decedent ??????? ????? ????. ?????? ????? XPath ????? ???? ????.
  • ????? ????? ????????? ?? ??? ?????? ?????? ???? ??????. ??????? ??? ????? ?????? ?? ?????? ????? ?????? ??? ??? ???? ?? ???. ??? ???? ??????:
    <element_name attr1="1" attr2="1" attr3="0">
  • ??? ??????? ???????? ?????. ??????? ?????? ??? downgrades ??????.
  • ?????? ?????? ?????? ??? ?????? ??????. ??? ???? ??????? ????? ?? ??????? ????????? ???????? ???????:
    ./info[type='title']
    ??????? ????????? ???????? ???????:
    ./title
    ??? ?????? ????? ????? ?? ??????? ??? ???????:
    Select="*[name()='sample']"
    ??????? ????????? ???????? ???????:
    Select="sample"
    ???? ?? ????? ????? ?????? ?? Xpath ??? ??????? ?? ??????.
  • ???? ??????? MSXML ??????? 3.0 ?????????? ??????, ???? ?? ????? ???? ?????. ????? ????? ?????? ??? ???? ?????? ?? ??????? ??????? ?? ?????. ????? ?? ??????? ????????? ???????:
    /child_element
    ?????? ??????:
    /child_element[1]
  • ??????? ???????? ????? ?? ????? ????????? ?? ?? ???.
  • ???? ??????? XSL ?????? ??????, ??? ????? ?? ???? ?????? ?? ?? ????? ???? ?????. ??? ???? ??????? ????? ?? ??????? ????? ???????:
    <xsl:output method="html"/>
    ??????? ????? ???????:
    <xsl:output method="html" indent="no" />
    ???? ??? ??? ????? ?????? ???? ??????? ??????? ???? ???? ?? ???????? ??? ??????? ???? ?? ???????. ???? ???????? ???? ??????? ??????? ????? ???.
  • ???? ?????? ?? ??- ??? ?? ??? ??? ??? ?????? ?? ?? ????? ???? ????? ???? ???? ??????. ??? ???? ??????:
    <xsl:apply-templates select="//xa:Axes/xa:Axis[@name='Axis1']" />
    <xsl:template match="//xa:Axis[@name='Axis1']/xa:Tuples/xa:Tuple">
    ??? ???? ????? ?? ???:
    "//xa:Axes/xa:Axis[@name='Axis1']"
    ??????? ??????:
    "//xa:Axis[@name='Axis1']/xa:Tuples/xa:Tuple"
    ??? ????? ???? ????? ???? ?? ??? ???. ????? ??? ????? ??????? ??????????. ??? ??? ??? ???? ????? ???? ??? ???????? ???????:
    <xsl:apply-templates>
    ????? ???????. ?????? ?????? ??? ???? ??????? ?? nodeset ?????? ????????? ???????? ??? ????? ???????. ?????? ??????? ??? ???? ?????. ?????? ?????? ????? ????? ???????? ???????? ??? ???:
    <xsl:apply-templates select="//xa:Axes/xa:Axis[@name='Axis1']/xa:Tuples/xa:Tuple" mode="Axis1"/>
    <xsl:template match="*" mode="Axis1">
  • ?????? ????? ???. ??? ???? ??????? ????? ????? ??? ?????? ???? ?? ??? ?????. ???? ??? ????? ?????? ?? ????? ??- ??? ???? ?????? ?? ???? ????? ??? ??? ????? ???.
  • ????? ????????? xsl: ???? / xsl:when / xsl: ????. effected ?????? ????? ??? ???? ??????? ???? ???? ???? ???. ????? ?????? ?? ??? ?? ???? ???? ??????? ???? ??? ??? ????? ???? ????? ?????.
  • xsl:variables ????? ???????. ??? ????????? ??? ?????? ?? ????? ??????? ?????? ?????? ?? ??? ??? ??????? ?? XSL. ???? ??? ???? ??? ?? xsl:variable ??? ????? ??????. ????? ?????? ???? ????? ?? string() ? boolean(). ??? ???? ??????:
    <xsl:variable name="_attr" select="string( /node/child[ @attr ] )">
  • ?? MSXML. System.Xml
    • ???? MSXML ????? ?? XmlReader ? XmlWriter.
    • MSXML ????? ?????? XML ?? "????? ???? ???????" (DOM). ?? ??? ?????? DOM ?????? ???? ?????? ??? ???????? ???? XPath ? ????? ???? XSL, ?? ??????? ?????? ????? ??? ????. ???? ??? ???? ????? ????? ???? ?????? ??? ???? ?? ???? ??????? ??????? ???????.
    • XmlReaderXmlWriter ?? ?????? ???????? "?" ?????. ????? ?????? ???? ?????? ??? ????? ?????? ?????? XML. ??? ???? ??????? ??????? ?????? ??? ? ?????? ???? ??? ????? ??????.
    • ???? ???? MSXML ????? SAX (????? API XML). SAX ???????. ??? ????? .NET framework DOM ???????? ??? XmlDocument.
    • ???? ?????? ????? ??? ??????? .NET Framework ??? ???? ???? ???????? ???????? XML.

  • ????? ??? ??????? ??? ?????? ?? ????? ????????. ???? ????? ?????? MSXML ? System.Xml ?? pre-joining ???? ????? ??? ?? ???? ?? ????????? ???????? ???????:
    <?xml version="1.0" encoding="UTF-8"?>
    <AllLocalDescriptor xmlns:fo="http://www.w3.org/1999/XSL/Format"> 
    <Descriptor key="AMC_Labels_" ID="AMC" Name="-2000" TypeName="Labels" LCID="">
      AMC
    </Descriptor>
    <Descriptor key="AMC_Labels_3082" ID="AMC" Name="-2000" TypeName="Labels" LCID="3082">
      AMC
    </Descriptor>
    ???? ????? ?????? ??? ??????? ??? ?????. @ ?????
    desc = doc.getNodeFromID("AMC_Labels_3082")

?????

????? ?? ?????????? ?? ?????? ????? ????? Network (MSDN) ?????? Microsoft ???????:
???? XSLT ??????
http://msdn2.microsoft.com/en-us/library/ms759204.aspx
XSL enhancing
http://msdn2.microsoft.com/en-us/library/aa468550.aspx
?????? ??? ??????? ?????? ??? ???? XSLT ???? ??? ????? ???????? ??????? ?????? ?? "????? ??????? ?? Microsoft:
325689INFO: ???? XSLT ??????? ?? .NET Framework
331026????? ????? Me: ????? ?????? ????? ??????? Xslt ?????? ?? ?? .NET ???????? System.Xml

???????

???? ???????: 815124 - ????? ??? ??????: 21/????/1428 - ??????: 2.4
????? ???
  • Microsoft .NET Framework Class Libraries 1.0
  • Microsoft .NET Framework Class Libraries 1.1
  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.1
????? ??????: 
kbmt kbperformance kbxml kbinfo KB815124 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????815124

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

 

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