XSLT½Ì³Ì
XSL´ú±í¿ÉÀ©³äÑùʽ±íÓïÑÔ
ΪÁËÊÊÓ¦»ùÓÚXMLµÄÑùʽ±íÓïÑÔµÄÐèÒª£¬ÍòÎ¬ÍøÁªÃË£¨W3C£©¿ªÊ¼·¢Õ¹XSL¡£
XSLT´ú±íXSLµÄ±ä¸ï¡£ÔÚÕâ¸ö½Ì³ÌÀÄã»áѧµ½ÈçºÎͨ¹ýXSLT°ÑXMLÎĵµ×ª»»³É±ðµÄ°æÊ½¡ª¡ªÀýÈçXHTML¡£
XSLT ²Î¿¼
XSLT ÔªËØ
À´×ÔW3C²Î¿¼±ê×¼Ëù¶¨Ò壨XSLT°æ±¾1.0£©µÄXSLTÔªËØ¡£
XSLT º¯Êý
XSLT°üº¬Á˳¬¹ý100¸öÄÚÖú¯Êý¡£ÓÐЩÊÇΪÁË×Ö·û´®Öµ£¬Êý×ÖÖµ£¬Êý¾ÝºÍʱ¼ä±È½Ï¹ØÏµ£¬½ÚµãºÍOName²Ù×÷£¬ÐòÁвÙ×÷£¬²¼¶û£¨Âß¼£©Öµ£¬ÒÔ¼°¸ü¶à¡£
ÄÚÈÝĿ¼
XSL ÓïÑÔ
Defines the sub-languages of XSL: XSLT, XPath and XSL-FO.
XSLµÄ×ÓÓïÑÔ£ºXSLT£¬XPathºÍXSL-FO¡£
XSLT ½éÉÜ
An introduction to XSLT. What it is, and
what it can do.
ÓйØXSLTµÄ½éÉÜ£¬ËüµÄ¸ÅÄÒÔ¼°ËüµÄÓÃ;
XSLT ä¯ÀÀÆðÆ÷
Overview of browser support for XSLT.
Á˽âÏÂÄÄЩä¯ÀÀÆ÷Ö§³ÖXSLT
XSLT Transformation
How XSLT can be used to transform XML documents into XHTML documents.
ÔõÑù²ÅÄÜÈÃXSLT½«XMLÎĵµ×ª»»³ÉΪXHTMLÎĵµ
XSLT Templates
The <xsl:template> element contains rules to apply when a specified node is
matched.
µ±Ò»¸öÖ¸¶¨µÄµãÎǺϵÄʱºò<xsl:template>ÔªËØËùº¬¹æÔò¾Í¿ÉÒÔÉúЧ
XSLT <xsl:value-of> ÔªËØ
The <xsl:value-of> element extracts the value of a selected node.
<xsl:value-of>ÔªËØÓÃÓÚѡȡѡÔñ½ÚµãÖµ¡£
XSLT <xsl:for-each> ÔªËØ
The <xsl:for-each> element allows you to do looping in XSL.
<xsl:for-each>ÔªËØÔÊÐíÔÚXSLTÀïʹÓÃÑ»·Óï¾ä¡£
XSLT <xsl:sort> ÔªËØ
The <xsl:sort> element is used to sort the output.
<xsl:sort>ÔªËØÓÃÓÚ¶Ô½á¹û½øÐзÖÀà¡£
XSLT <xsl:if> ÔªËØ
The <xsl:if> element is used to put a conditional test against the content
of the XML file.
<xsl:if>ÔªËØµÄ×÷ÓÃÊÇ£º¶ÔXMLÎļþµÄÄÚÈÝÉèÖÃÒ»¸öÌõ¼þÓï¾ä¡£
XSLT <xsl:choose> ÔªËØ
The <xsl:choose> element is used in conjunction with <xsl:when> and
<xsl:otherwise> to express multiple conditional tests.
<xsl:choose>ÔªËØÍ¨¹ý<xsl£ºwhen>ºÍ<xsl:otherwise>Ò»ÆðÅäºÏÊÇÓÃÀ´±í´ï¶àÖÖÌõ¼þÓï¾ä¡£
XSLT <xsl:apply-templates> ÔªËØ
The <xsl:apply-templates> element applies a template rule to the current
element or to the current element's child nodes.
<xsl:apply-templates>ÔªËØÊǰÑÄ£°åÓ¦Óõ½µ±Ç°ÔªËØ»òµ±Ç°ÔªËصÄ×Ó½ÚµãÉÏ¡£
λÓÚ¿Í»§¶ËµÄXSL
How to transform an XML document to an XHTML
document on the client.
Èç¹ûÄãµÄä¯ÀÀÆ÷Ö§³ÖXSLT£¬Ëü¿ÉÒÔÔÚÄãµÄä¯ÀÀÆ÷ÖаÑÎļþת»»³ÉXHTML¡£
λÓÚ·þÎñÆ÷¶ËµÄXSL
How to transform an XML document to an XHTML document on the server.
ÒòΪ²»ÊÇËùÓеÄä¯ÀÀÆ÷¶¼Ö§³ÖXSLT£¬ËùÒÔÈËÃÇÌá³öÁËÒ»¸öÔÚ·þÎñÆ÷¶Ë°ÑXMLת»»³ÉXHTMLµÄ½â¾ö·½°¸¡£