Last active
August 29, 2015 14:01
-
-
Save Jonty800/b2180783449ebefc9c18 to your computer and use it in GitHub Desktop.
I hate xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<?xml-stylesheet type="text/xsl" href="member.xsl" ?> | |
<Pupils> | |
<Pupil SpecialNeed="True"> | |
<Name> Anybody </Name> | |
<Address> | |
AnyStreet, Anywhere | |
</Address> | |
</Pupil> | |
<Pupil SpecialNeed="False"> | |
<Name> Somebody </Name> | |
<Address> | |
SomeStreet, Somewhere | |
</Address> | |
</Pupil> | |
</Pupils> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="/"> | |
<html> | |
<body> | |
<table> | |
<tr> | |
<th>Name</th> | |
<th>Address</th> | |
</tr> | |
<xsl:for-each select="Pupils/Pupil"> | |
<tr> | |
<xsl:choose> | |
<xsl:when test="@SpecialNeed='True'"> | |
<td> | |
<xsl:value-of select="Name" /> | |
</td> | |
</xsl:when> | |
<xsl:otherwise> | |
<td bgcolor='blue'> | |
<xsl:value-of select="Name" /> | |
</td> | |
</xsl:otherwise> | |
</xsl:choose> | |
<td> | |
<xsl:value-of select="Address" /> | |
</td> | |
</tr> | |
</xsl:for-each> | |
</table> | |
</body> | |
</html> | |
</xsl:template> | |
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<smil xmlns="http://www.w3.org/TR/REC-smil"> | |
<head> | |
<layout> | |
<root-layout width="500px" height="600px"/> | |
<region id="primary" width="400px" height="300px" top="50px" left="50px" right="50px" /> | |
<region id="2" width="200px" height="200px" top="350px" left="50px" /> | |
<region id="3" width="200px" height="200px" top="350px" right="50px" /> | |
</layout> | |
</head> | |
<body> | |
<par> | |
<video src="overview.avi" region="primary" /> | |
<audio src="background.mp3"/> | |
<seq> | |
<img src="Image1.bmp" region="2" begin="0s" dur="10s" /> | |
<img src="Image2.bmp" region="2" begin="10s" dur="10s" /> | |
<img src="Image3.bmp" region="2" begin="20s" dur="10s" /> | |
<img src="Image4.bmp" region="3" begin="0s" dur="10s" /> | |
<img src="Image5.bmp" region="3" begin="10s" dur="10s" /> | |
<img src="Image6.bmp" region="3" begin="20s" dur="10s" /> | |
</seq> | |
</par> | |
</body> | |
</smil> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment