<?xml version="1.0" encoding="us-ascii"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:ns1="ddi:instance:0_1" 
xmlns:r="ddi:reusable:0_1" 
    xmlns:c="ddi:concept:0_1" 
xmlns:s="ddi:studyunit:0_1" 
xmlns:d="ddi:datacollection:0_1" 
xmlns:l="ddi:logicalproduct:0_1"  
xmlns:pi="ddi:physicalinstance:0_1" 
xmlns:exslt="http://exslt.org/common" 
    xmlns:pd="ddi:physicaldataproduct:0_1"
    xmlns:g="ddi:group:0_1"
exclude-result-prefixes="exslt ns1 r s d l pi pd c" 
>

<xsl:param name="filename" />

<xsl:template match="/ns1:DDIInstance">
 
<html>
<head>
	<title><xsl:value-of select="s:StudyUnit/r:Citation/r:Title" /></title>
</head>

<body bgcolor="#FFFFFF">
  
<h1>DDI Structure -- <xsl:value-of select="$filename" /></h1>

<pre>
<xsl:value-of select="name()" />
<xsl:apply-templates>
	<xsl:with-param name="leader" select="'      '" />
</xsl:apply-templates>
</pre>

</body>
</html>
 
</xsl:template>

<xsl:template match="*">
<xsl:param name="leader" />
<xsl:value-of select="concat($leader,name())" /><br />
<xsl:apply-templates select="*">
	<xsl:with-param name="leader" select="concat($leader,'      ')" />
</xsl:apply-templates>
</xsl:template>

</xsl:stylesheet>

