Hey! I am new to XSLT and Xpath.
i need to make 3 websites which display slide shows. These slide images need to change every 5 minutes.
I have been trying to create a loop in my XSLT file to identify an image through its ID number and then move to the next ID number...and this should keep going on for an many slides are there in a website...
i need 3 different loops runnings for each website...
here is my XML code...
Code:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="t2.xsl"?>
<AC2TV>
<website>
<cc>
<slide ID = "1">C:\Personal\AC2 TV\all slides\Slide1.jpg</slide>
<slide ID = "2">C:\Personal\AC2 TV\all slides\Slide2.jpg</slide>
<slide ID="3">C:\Personal\AC2 TV\all slides\Slide3.jpg"</slide>
</cc>
</website>
<website>
<bc>
<slide ID = "1">C:\Personal\AC2 TV\all slides\Slide4.jpg"</slide>
<slide ID = "2">C:\Personal\AC2 TV\all slides\Slide5.jpg" </slide>
<slide ID = "3">C:\Personal\AC2 TV\all slides\Slide6.jpg" </slide>
</bc>
</website>
<website>
<tc>
<slide ID = "1">C:\Personal\AC2 TV\all slides\Slide7.jpg" </slide>
<slide ID = "2">C:\Personal\AC2 TV\all slides\Slide8.jpg" </slide>
<slide ID = "3">C:\Personal\AC2 TV\all slides\Slide9.jpg"</slide>
</tc>
</website>
</AC2TV>
My Xsl file so far (really coudn't do much):
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2 align="center">Control Center</h2>
<xsl:apply-templates/>
</xsl:template>
<xsl:for-each select="AC2TV/website/ControlCenter/Slide[@id=1]">
<xsl:if test="ID = 1">
</body>
</html>
Please help me...I know the discription is not very good..so plz feel free to ask questions... thanks...