Kuv twb tau ua me ntsis XSL khoom lately thiab xav tias kuv yuav muab sib dhos ib tug qauv rau kuv cov neeg siv yav tom ntej thiab uas tej zaum yuav nqis los rau peb sawv daws XSLT-ers ua ib tug nyob hauv cov internets.
Xav txog cov lus hauv qab no XML:
<FdcSearchTabsCollection suav = "2">
<SearchTab daim ntawv lo = "kev lag luam" SortOrder = "00" daim ntawv lo = "Industries" SearchConstraints = "contenttype:Kev lag luam" TabID = "831b2a74-98c4-4453-8061-86e2fdb22c63" />
<SearchTab daim ntawv lo = "txoj kev" SortOrder = "01" daim ntawv lo = "Practices" SearchConstraints = "contenttype:PracticeGroups" TabID = "678e206b-6996-421f-9765-b0558fe1a9c0" />
</FdcSearchTabsCollection>
Cov lus hauv qab no XSL snippet yuav tsim ib daim ntawv teev sorted txog hrefs tabs:
<xsl:Template match = "FdcSearchTabsCollection" xml:chaw = "khaws cia">
<!– "Tagnrho cov" tab –>
<ib tug href = "javascript:ViewTab('Txhua')">Saib tag nrho cov</ib tug>
<!– Txhua tus neeg tab –>
<!– Iterate los ntawm tag nrho cov Tabs thiab tso saib qhov tseeb kev mus. –>
<xsl:rau-ib qho = "SearchTab">
<xsl:tsi select="@SortOrder"/>…
<ib tug href = "javascript:ViewTab(‘{@ TabID}’)"><xsl:tus nqi-cov select="@Label"/></ib tug>
</xsl:rau-ib><br />
</xsl:Template>
Nov yog qhov nws zoo li hauv SharePoint:
</kawg>
Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin
Hav, Paul. Nthuav kom lub XML no tsis yog siv tau, raws li txhua lub caij SearchTab muaj ob tug pas ntaus cim. Thov qhia rau kuv tias SharePoint tsis Meskas ntawd!
M.