| Revision 18,
1.7 KB
checked in by brent, 4 years ago
(diff) |
|
Adding code for IMS Transport product
|
| Line | |
|---|
| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <xsl:stylesheet xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:didl="http://www.mpeg.org/mpeg-21/2002/01-DIDL-NS" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
|---|
| 3 | |
|---|
| 4 | <xsl:template match="/"> |
|---|
| 5 | <html><head/> |
|---|
| 6 | <body> |
|---|
| 7 | <table class="documentTable" style="width: 499px;" border="0" cellpadding="0" cellspacing="0"> |
|---|
| 8 | <thead><tr><td> |
|---|
| 9 | <xsl:value-of select="'Images'"/> |
|---|
| 10 | </td></tr></thead> |
|---|
| 11 | <tbody> |
|---|
| 12 | <xsl:apply-templates select="didl:DIDL/didl:CONTAINER/didl:ITEM"/> |
|---|
| 13 | </tbody> |
|---|
| 14 | </table> |
|---|
| 15 | </body> |
|---|
| 16 | </html> |
|---|
| 17 | </xsl:template> |
|---|
| 18 | |
|---|
| 19 | <xsl:template match="didl:DIDL/didl:CONTAINER/didl:ITEM"> |
|---|
| 20 | |
|---|
| 21 | <tr> |
|---|
| 22 | <xsl:attribute name="class"> |
|---|
| 23 | <xsl:choose> |
|---|
| 24 | <xsl:when test="position() mod 2 = 1"> |
|---|
| 25 | <xsl:value-of select="'odd'"/> |
|---|
| 26 | </xsl:when> |
|---|
| 27 | <xsl:otherwise> |
|---|
| 28 | <xsl:value-of select="'even'"/> |
|---|
| 29 | </xsl:otherwise> |
|---|
| 30 | </xsl:choose> |
|---|
| 31 | </xsl:attribute> |
|---|
| 32 | <td> |
|---|
| 33 | <a> |
|---|
| 34 | <xsl:attribute name="href"> |
|---|
| 35 | <xsl:value-of select="didl:COMPONENT/didl:RESOURCE/@REF"/> |
|---|
| 36 | </xsl:attribute> |
|---|
| 37 | <xsl:value-of select="didl:DESCRIPTOR/didl:DESCRIPTOR/didl:STATEMENT"/> |
|---|
| 38 | </a> |
|---|
| 39 | </td></tr> |
|---|
| 40 | </xsl:template> |
|---|
| 41 | |
|---|
| 42 | <xsl:template match="didl:COMPONENT"> |
|---|
| 43 | </xsl:template> |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | </xsl:stylesheet> |
|---|
Note: See
TracBrowser
for help on using the repository browser.