<?xml version="1.0" encoding="UTF-8"?>
<!--Raymond Yee (yee@uclink.berkeley.edu) , Interactive University, University of California, Berkeley 2002-02-20 -->
<!--&nbsp; trick from http://www.mycgiserver.com/~~lisali/papers/paper.htm -->
<!DOCTYPE stylesheet [
	<!ENTITY nbsp "<xsl:text disable-output-escaping=&#34;yes&#34; 
    xmlns:xsl= &#34;http://www.w3.org/1999/XSL/Transform &#34;
    >&amp;nbsp;</xsl:text>">
]>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

	<!--output-->
	<xsl:output encoding="UTF-8" method="xml" media-type="text/xml"/>


	<!-- root template -->
	<xsl:template match="ArchObj">
		<opml version="1.0">
			<head>
				<title>Title: <xsl:value-of select="@LABEL"/></title>
				<dateCreated>Sat, 01 Oct 2000 23:24:04 GMT</dateCreated>
				<dateModified>Fri, 22 Feb 2002 18:47:48 GMT</dateModified>
				<ownerName>UNKNOWN</ownerName>
				<ownerEmail>unknown@unknown.edu</ownerEmail>
				<expansionState>3, 8, 9</expansionState>
				<vertScrollState>1</vertScrollState>
				<windowTop>182</windowTop>
				<windowLeft>40</windowLeft>
				<windowBottom>575</windowBottom>
				<windowRight>910</windowRight>
			</head>
			<body>
				<!-- put in a comment to the entire outline -->
				<outline>
					<xsl:attribute name="text">Comment: <xsl:value-of select="@LABEL" /></xsl:attribute>
					<xsl:attribute name="isComment">true</xsl:attribute>
				</outline>
				<xsl:apply-templates select="StructMap"  />
			</body>
		</opml>
	</xsl:template>
	
	<!--StructMap -->
	<xsl:template match="StructMap">
		<xsl:apply-templates select="div" />
	</xsl:template>
	
	<!--div -->
	<xsl:template match="div">
		<outline>
			<xsl:attribute name="text"><xsl:value-of select="@LABEL" /></xsl:attribute>
			<xsl:apply-templates select="fptr" />
			<!--recursive application of div -->
			<xsl:apply-templates select="div" />
		</outline>
	</xsl:template>
	
	<!--fptr -->
	<xsl:template match="fptr">
		<outline>
			<xsl:attribute name="text"><xsl:value-of select="../@LABEL"/> (<xsl:value-of select="normalize-space(id(@FILEID)/@MIMETYPE)" />)</xsl:attribute>
			<xsl:attribute name="type">link</xsl:attribute>
			<xsl:attribute name="url"><xsl:apply-templates select="id(@FILEID)" mode="link"/></xsl:attribute>
		</outline>
	</xsl:template>

	<!--file mode=link -->
	<xsl:template match="File" mode="link">
			<xsl:apply-templates select="FLocat" mode="url"/>
	</xsl:template>
	
	<!-- Flocat URL-->
	<xsl:template match="FLocat" mode="url">
		<xsl:value-of select="normalize-space(.)"/>
	</xsl:template>
	
	


</xsl:stylesheet>
