CODE EXAMPLE 2-1Sample Content Descriptor Template (Continued)

Content-Name: <xsl:value-of select="/ContentItem/Name"/>

Content-Version: <xsl:value-of select="/ContentItem/Version"/>

Content-Vendor: <xsl:value-of select="/ContentItem/Vendor"/>

Content-URL: <xsl:value-of select="/ContentItem/DownloadURL"/>

Content-Size: <xsl:value-of select="/ContentItem/Size"/>

Confirm-URL: <xsl:value-of select="/ContentItem/ConfirmURL"/> </xsl:template>

</xsl:stylesheet>

Viewing Content Descriptor Templates

1.From the Catalog Manager administration console, click Devices on the main menu bar.

2.Click the Templates tab.

The Content Descriptor Templates page is displayed, showing the currently defined templates.

The following information is displayed for each template:

Template Name - The name of the template.

MIME Type - The MIME type associated with the template.

Extension - The extension of the files that use the template. The extension must be preceded by a period (.). For example, .cod. This extension is also used as the name of the template. For example, cod.xsl.

To view the properties for a specific template, click the template name. The properties page shows the name, MIME type, extension, and XSL description of the template.

Chapter 2 Catalog Manager 77

Page 95
Image 95
Sun Microsystems 5 manual Viewing Content Descriptor Templates