Difference between revisions of "XML"
Jump to navigation
Jump to search
(Created page with "== Sites == * [https://www.w3schools.com/xml/default.asp w3schools XML]") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
* [https://www.w3schools.com/xml/default.asp w3schools XML] | * [https://www.w3schools.com/xml/default.asp w3schools XML] | ||
| + | |||
| + | |||
| + | |||
| + | Inclure un fichier XSL dans XML | ||
| + | <syntaxhighlight lang="xml"> | ||
| + | <?xml-stylesheet type="text/xsl" href="breakfast_menu.xsl" ?> | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | |||
| + | RSS | ||
| + | <syntaxhighlight lang="xml"> | ||
| + | <?xml version="1.0" encoding="UTF-8"?> | ||
| + | <html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
| + | <body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE"> | ||
| + | |||
| + | <xsl:for-each select="rss/channel"> | ||
| + | <h2><xsl:value-of select="title"/></h2> | ||
| + | </xsl:for-each> | ||
| + | |||
| + | <xsl:for-each select="rss/channel/item"> | ||
| + | <div> | ||
| + | <a href=''><h3><xsl:value-of select="title"/></h3></a> | ||
| + | <xsl:value-of select="link"/> | ||
| + | <div><xsl:value-of select="description"/></div> | ||
| + | </div> | ||
| + | |||
| + | </xsl:for-each> | ||
| + | |||
| + | </body> | ||
| + | </html> | ||
| + | </syntaxhighlight> | ||
Latest revision as of 15:11, 20 May 2020
Sites[edit]
Inclure un fichier XSL dans XML <syntaxhighlight lang="xml"> <?xml-stylesheet type="text/xsl" href="breakfast_menu.xsl" ?> </syntaxhighlight>
RSS
<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE">
<xsl:for-each select="rss/channel">
<xsl:value-of select="title"/>
</xsl:for-each>
<xsl:for-each select="rss/channel/item">
<a href=>
<xsl:value-of select="title"/>
</a><xsl:value-of select="link"/>
<xsl:value-of select="description"/>
</xsl:for-each>
</body> </html> </syntaxhighlight>