ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: XML :: Óà XSL ÏÔʾ XML

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

XML
XML ½éÉÜ
XML µÄÓÃ;
XML Óï·¨¹æÔò
XML ÔªËØ
XML ÊôÐÔ
XML µÄÓÐЧÐÔÑéÖ¤
XML УÑéÆ÷
Ö§³Ö XML µÄä¯ÀÀÆ..
ä¯ÀÀ XML Îļþ
Óà CSS ÏÔʾ XML
Óà XSL ÏÔʾ XML
XML Êý¾Ýµº
XML ½âÎöÆ÷
ÏÖʵÖÐµÄ XML
XML ÃüÃû¿Õ¼ä
XML CDATA
XML ·þÎñÆ÷
XML Ó¦ÓóÌÐò
XMLHttpRequest ¶..
XML ±£´æÊý¾Ý

Óà XSL ÏÔʾ XML


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-29 ÐÞ¸Ä:2007-08-08 ä¯ÀÀ:5960 :: ::

With XSL you can add display information to your XML document.
ÓÃXSLÄã¿ÉÒÔΪXMLÎĵµÌí¼Ó¶ÔÓ¦µÄÏÔʾÐÅÏ¢¡£


Displaying XML with XSL
ʹÓÃXSLÏÔʾXML

XSL is the preferred style sheet language of XML.
XSLÊÇXML×îºÃµÄÑùʽ±íÓïÑÔ¡£

XSL (the eXtensible Stylesheet Language) is far more sophisticated than CSS. One way to use XSL is to transform XML into HTML before it is displayed by the browser as demonstrated in these examples:
XSL£¨¿ÉÀ©Õ¹Ñùʽ±íÓïÑÔ£©Ô¶±ÈCSS³ÉÊ죬ʹÓÃXSLµÄÒ»ÖÖ·½Ê½ÊÇ£ºÔÚXML±»ä¯ÀÀÆ÷ÏÔʾ֮ǰ£¬ÊÂÏȽ«Æäת»»³ÉHTML¸ñʽ¡£ÏÂÃæµÄ°¸ÀýºÜºÃµØ²ûÊÍÁËÕâµã:

²é¿´XMLÎļþ, XSLÑùʽ±íºÍ½á¹û¡£

Below is a fraction of the XML file. The second line, <?xml-stylesheet type="text/xsl" href="simple.xsl"?>, links the XML file to the XSL file:
ÏÂÃæÁоٵÄÊÇÕâ·ÝXMLÎļþÖÐµÄÆäÖÐÒ»¸ö´úÂë¶Î¡£µÚ¶þÐÐÓï¾ä£º<?xml-stylesheet type="text/xsl" href="simple.xsl"?> £¬ÒâÖ¸°ÑXMLÎļþÁ´½Óµ½xslÎļþÖУº

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="simple.xsl"?>
<breakfast_menu>

<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>
two of our famous Belgian Waffles
</description>

<calories>650</calories>
</food>
</breakfast_menu>

If you want to learn more about XSL, please visit our XSL tutorial.
Èç¹ûÄãÏëÁ˽â¸ü¶à¹ØÓÚXSLµÄ֪ʶ£¬Çë²éÔÄÎÒÃÇµÄ XSL ½Ì³Ì ¡£

ÆÀÂÛ (1) 1 All