First page Back Continue Last page Graphics
Continuation of Notes
Notes:
Here is our student transcript with an embedded style sheet. The PI identifying the style sheet points to an element within this document via its ID value, rather than to an external URI. Notice however that all the xsl elements become part of the document tree.
<?xml version="1.0" standalone="no" ?>
<?xml-stylesheet type="text/xsl" href="#id(transcriptstyle)"?>
<transcript>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
id="transcriptstyle">
<xsl:template match="/">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>
<xsl:template match="report">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="order">
<P>
<xsl:value-of select="."/>
</P>
</xsl:template>
</xsl:stylesheet>
<student id="STU12345" name="Humpty Dumpty" status="active">
<!-- student data… -->
</student>
<!-- term data… -->
</transcript>