Index: MDService2/branches/MDService_simple3/src/mdservice.properties
===================================================================
--- MDService2/branches/MDService_simple3/src/mdservice.properties	(revision 1878)
+++ MDService2/branches/MDService_simple3/src/mdservice.properties	(revision 1879)
@@ -20,5 +20,6 @@
 scripts.path = xsl/
 xsl.profile2VC = profile2VC.xsl
-xsl.XCQL2XPATH = XCQL2Xpath.xsl
+
+//xsl.XCQL2XPATH = XCQL2Xpath.xsl
 xsl.search2htmltable = mdset2view.xsl
 //xsl.search2htmlpage = mdset2view.xsl
@@ -27,17 +28,28 @@
 xsl.search2htmlsimple = mdset2view.xsl
 xsl.search2htmljspage = mdset2view.xsl
-xsl.sru2htmlpage = sru2view.xsl
-xsl.sru2htmltable = sru2view.xsl
+
+//xsl.sru2htmlpage = sru2view.xsl
+//xsl.sru2htmltable = sru2view.xsl
+xsl.sruscan2htmlpage = fcs/scan2view.xsl
+xsl.sruexplain2htmlpage = fcs/explain2view.xsl
+xsl.srusearchRetrieve2htmlpage = fcs/result2view_v1.xsl
 xsl.fcsscan2htmlpage = fcs/scan2view.xsl
 //xsl.fcsscan2xml = fcs/scan2view.xsl
 xsl.fcsexplain2htmlpage = fcs/explain2view.xsl
 xsl.fcssearchRetrieve2htmlpage = fcs/result2view_v1.xsl
-xsl.pazpar22htmlpage = mdset_pazpar2view.xsl
-xsl.pazpar22htmlpagelist = mdset_pazpar2view.xsl
-xsl.pazpar22htmltable = mdset_pazpar2view.xsl
+
+//xsl.pazpar22htmlpage = mdset_pazpar2view.xsl
+//xsl.pazpar22htmlpagelist = mdset_pazpar2view.xsl
+//xsl.pazpar22htmltable = mdset_pazpar2view.xsl
+
+xsl.static2htmlpage = static2view.xsl
+xsl.static2htmldetail = static2view.xsl
+
 xsl.record2htmldetail = mdinst2view.xsl
 xsl.record2htmlpage = mdinst2view.xsl
 xsl.collection2htmllist = collection2view.xsl
 xsl.collection2htmlpage = collection2view.xsl
+xsl.collection2html = collection2view.xsl
+
 xsl.model2matrix = model2matrix.xsl
 xsl.model2htmlpage = model2view.xsl
@@ -45,43 +57,41 @@
 xsl.model2htmllist = model2view.xsl
 xsl.model2htmlselect = model2view.xsl
-xsl.values2htmlpage = values2view.xsl
-xsl.values2htmllist = values2view.xsl
-xsl.terms2extract = terms_extract.xsl
-xsl.terms2htmlselect = terms2view.xsl
-xsl.terms2htmllist = terms2view.xsl
-xsl.terms2flat = terms2view.xsl
-xsl.terms2autocomplete = terms2view.xsl
-xsl.terms2htmlpage = terms2view.xsl
-xsl.terms2htmldetail = terms2view.xsl
-xsl.terms2htmltable = terms2view.xsl
-xsl.terms2sru-explain = sru_explain.xsl
 
-xsl.comp2htmlpage = comp2view.xsl
-xsl.comp2htmllist = comp2view.xsl
-xsl.comp2htmldetail = comp2view.xsl
-xsl.complist2htmllist = complist2view.xsl
-xsl.complist2htmlselect = complist2view.xsl
-xsl.complist2htmldetail = complist2view.xsl
-//xsl.dc2htmldiv = dcif2view.xsl
-//xsl.dc2htmllist = dcif2view.xsl
+//xsl.values2htmlpage = values2view.xsl
+//xsl.values2htmllist = values2view.xsl
+//xsl.terms2extract = terms_extract.xsl
+//xsl.terms2htmlselect = terms2view.xsl
+//xsl.terms2htmllist = terms2view.xsl
+//xsl.terms2flat = terms2view.xsl
+//xsl.terms2autocomplete = terms2view.xsl
+//xsl.terms2htmlpage = terms2view.xsl
+//xsl.terms2htmldetail = terms2view.xsl
+//xsl.terms2htmltable = terms2view.xsl
+//xsl.terms2sru-explain = sru_explain.xsl
 
-xsl.datcat-all2terms = datcat_all2terms.xsl
-//xsl.dcr-rdf2terms = datcat_rdf2terms.xsl
-xsl.rr-rdf2terms = datcat_rdf2terms.xsl
-xsl.dcr-dcif2terms = datcat_dcif2terms.xsl
+//xsl.comp2htmlpage = comp2view.xsl
+//xsl.comp2htmllist = comp2view.xsl
+//xsl.comp2htmldetail = comp2view.xsl
+//xsl.complist2htmllist = complist2view.xsl
+//xsl.complist2htmlselect = complist2view.xsl
+//xsl.complist2htmldetail = complist2view.xsl
+////xsl.dc2htmldiv = dcif2view.xsl
+////xsl.dc2htmllist = dcif2view.xsl
 
+//xsl.datcat-all2terms = datcat_all2terms.xsl
+////xsl.dcr-rdf2terms = datcat_rdf2terms.xsl
+//xsl.rr-rdf2terms = datcat_rdf2terms.xsl
+//xsl.dcr-dcif2terms = datcat_dcif2terms.xsl
 
-xsl.collection2html = collection2view.xsl
-xsl.complist2xmlresolved = complist_resolved.xsl
+//xsl.complist2xmlresolved = complist_resolved.xsl
 
-xsl.terms2txt = complist2termstxt.xsl
+//xsl.terms2txt = complist2termstxt.xsl
 xsl.xml2json = xml2json.xsl
 xsl.xml2sruscan = xml2sruscan.xsl
-xsl.attr2elements = attr2elements.xsl
+//xsl.attr2elements = attr2elements.xsl
 
 xsl.admin2htmlpage = cache2view.xsl
-xsl.docs2htmlpage = docs2view.xsl
-xsl.docs2htmldetail = docs2view.xsl
-xsl.docs2htmlpagetest = test2view.xsl
-xsl.static2htmlpage = static2view.xsl
-xsl.static2htmldetail = static2view.xsl
+
+//xsl.docs2htmlpage = docs2view.xsl
+//xsl.docs2htmldetail = docs2view.xsl
+//xsl.docs2htmlpagetest = test2view.xsl
Index: MDService2/branches/MDService_simple3/src/xsl/comp2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/comp2view.xsl	(revision 1878)
+++ 	(revision )
@@ -1,218 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- 
-    $Rev: 74 $ 
-    $Date: 2010-03-23 $ 
-    
-    created based on comp2schema.xsl vronk
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
-    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org"
-    xmlns:my="myFunctions">
-    <xsl:strip-space elements="*"/>
-    <xsl:include href="cmd_commons.xsl"/>
-
-    <!--  <xsl:output method="xml" encoding="UTF-8" indent="yes"/>  -->
-		
-	<xsl:param name="title" 
-		select="concat('Component view: ', if(/CMD_ComponentSpec/Header/Name/text()) then /CMD_ComponentSpec/Header/Name/text() else /CMD_ComponentSpec/CMD_Component[1]/@name)" />				
-	
-    <!--  includes-mode
-    	  and params  
-    		moved to cmd_commons.xsl -->
-    
-    <!-- main -->
-    <!-- <xsl:template match="/"> -->
-    <xsl:template name="continue-root"> 
-        <!-- Resolve all includes -->
-        <xsl:variable name="tree">
-            <xsl:apply-templates mode="include"/>
-        </xsl:variable>
-
-	        <!-- Process the complete tree -->        	        
-	        
-		<xsl:choose>
-    	 	<xsl:when test="$format='comp2htmldetail'" >
-    	 			<div id="compviewdetail">
-	    				<xsl:apply-templates select="$tree/*"/>
-	    				</div>
-    	 	</xsl:when>
-    	 	<xsl:when test="$format='comp2htmllist'" >    	 		
-    	 		<div id="compviewlist">
-    	 			<xsl:apply-templates select="$tree/*" mode="list"/>
-    	 		</div>
-    	 	</xsl:when>
-    	 	<xsl:otherwise>
-    	 			<div id="compviewdefault">
-	    	 			<xsl:apply-templates select="$tree/*" />
-	    	 		</div>
-    	 	</xsl:otherwise>
-    	 </xsl:choose>
-
-
-    </xsl:template>
-    
-
-    <!-- generate actual HTML(?)-view -->
-    <xsl:template match="/CMD_ComponentSpec">
-							
-				<div class="comp_detail">
-					<ul id="starttree" class="treeview">
-					<xsl:apply-templates />
-					</ul>
-				</div>				
-	</xsl:template>
-		
-		
-	<xsl:template match="Header">
-		<div class="note">
-			<xsl:apply-templates />
-		</div>
-	</xsl:template>
-				
-    <!--  generic -->
-    <xsl:template match="*">
-		<div class="elem"><span class="label"><xsl:value-of select="name()" />:</span>
-		<span class="value" ><xsl:value-of select="text()" /></span></div>		
-	</xsl:template>
-	
-	
-    <xsl:template match="CMD_Component">
-		<li>
-			<div class="cmdcomp"><h2><span class="cmdcomp_name" ><xsl:value-of select="@name" /></span>
-				<span  class="sub" ><xsl:value-of select="@filename" /><xsl:text> </xsl:text><xsl:apply-templates select="@ConceptLink" />
-				   	<xsl:if test="@CardinalityMin | @CardinalityMax" >
-						<span><xsl:value-of select="concat('{',@CardinalityMin, '..', @CardinalityMax,'}')" /></span>			
-					</xsl:if>		
-				</span>				
-			   	<xsl:if test="number(@CardinalityMax) &gt; 1 or @CardinalityMax='unbounded'" >
-					<span class="cmd cmd_add"><xsl:text> </xsl:text></span>			
-				</xsl:if>	
-			</h2>			
-			<xsl:apply-templates select="AttributeList"/> 				
-		 </div>
-     
-          <!--<xsl:apply-templates select="./AttributeList"/>	                
-          <xsl:apply-templates select="./CMD_Element"/> -->
-          <!-- process all components at one level deeper (recursive call) -->
-          <!-- <xsl:apply-templates select="./CMD_Component"/> -->          
-         
-				<ul>
-          <xsl:apply-templates select="*[not(name()='AttributeList')]"/> 
-         </ul>
-
-			<!-- </div>		 -->
-		</li>
-	</xsl:template>
-		
-	<xsl:template match="CMD_Element">
-	<li>
-		<div class="cmdelem"><span class="cmdelem_name"><xsl:value-of select="@name" /></span>
-		<span  class="sub" ><xsl:apply-templates select="@ConceptLink" />
-			<span>[<xsl:value-of select="concat('{',@CardinalityMin, '..', @CardinalityMax,'}')" /></span>
-		</span>
-		<!--<br/>		
-		  <input type="text" id="q_{@name}" value="" name="q_{@name}" /> 
-		<xsl:if test="number(@CardinalityMax) &gt; 1 or @CardinalityMax='unbounded'" >
-			<span class="cmd cmd_add"><xsl:text> </xsl:text></span>			
-		</xsl:if>		
-			-->
-			
-			<span><xsl:call-template name="valuescheme" /></span>		
-			<xsl:apply-templates select="AttributeList" />
-		</div>	
-	</li>
-	</xsl:template>
-	
-	<xsl:template name="valuescheme" >			
-		<xsl:if test="ValueScheme | @ValueScheme | Type" >
-			<span class="valuescheme">		
-				[<xsl:if test="@ValueScheme"><xsl:value-of select="concat('xs:',@ValueScheme)"/></xsl:if>
-				 <xsl:if test="Type"><xsl:value-of select="concat('xs:',Type)"/></xsl:if>
-				  <xsl:for-each select="ValueScheme/enumeration/item[position() &lt; $display_values_limit]" >
-					<span class="elem_value"><xsl:value-of select="." /></span>, </xsl:for-each>
-					<xsl:if test="count(ValueScheme/enumeration/item) &gt; $display_values_limit" >
-					...|<xsl:value-of select="count(.//item)"/> / <xsl:value-of select="string-length(ValueScheme)"/>|
-					</xsl:if>
-				]
-			
-			</span>
-		</xsl:if>	
-	</xsl:template>
-	
-	<xsl:template match="@ConceptLink">
-		<span class="conceptlink">[<a href="{my:rewriteURL(.)}" ><xsl:value-of select="my:shortURL(.)" /></a>]</span>				
-	</xsl:template>
-
-	<xsl:template match="@ComponentId">
-		<span class="componentid"><xsl:value-of select="." /></span>				
-	</xsl:template>
-
-	<xsl:template match="AttributeList">
-		<div class="attributes">
-				<xsl:apply-templates />
-		</div>				
-	</xsl:template>
-	
-	<xsl:template match="Attribute">
-		<span class="attribute">@<xsl:value-of select="Name"/>
-			<span><xsl:call-template name="valuescheme" /></span>		
-		</span>				
-	</xsl:template>
-
-
-
- <!--  LIST  --> 
- 
- <xsl:template match="/CMD_ComponentSpec" mode="list">
-			<xsl:apply-templates select="Header" mode="list"/> 
-		<!--   srcfile:<xsl:value-of select="$src_file" /> -->
-			
-				<ul id="starttree" class="treeview">
-					<xsl:apply-templates select="CMD_Component" mode="list">
-					</xsl:apply-templates> 
-				</ul>				
-	</xsl:template>
-			
-	<xsl:template match="Header" mode="list">
-		<div class="note">
-			<xsl:apply-templates />
-		</div>
-	</xsl:template>
-
-  <xsl:template match="CMD_Component" mode="list">
-  		<xsl:variable name="detail_uri" select="if(@ComponentId) then concat($detail_comp_prefix, my:extractID(@ComponentId)) else concat($detail_profile_prefix, my:extractID(parent::CMD_ComponentSpec/Header/ID))" />
-		<li><a href="{$detail_uri}" ><xsl:value-of select="@name" /></a>
-			<span class="data comppath" ><xsl:value-of select="my:context(.)" /></span>
-			
-		<span class="cmd cmd_filter"><xsl:text> </xsl:text></span><span class="cmd cmd_detail" ><xsl:text> </xsl:text></span>
-		<!--
-		<div class="cmdcomp"><h2><xsl:value-of select="@name" />
-		<span  class="sub" ><xsl:value-of select="@filename" /><xsl:text> </xsl:text><xsl:apply-templates select="@ConceptLink" />
-		</span>
-		</h2>			-->
-		<ul>
-    	<xsl:apply-templates select="./*" mode="list"/> 
-    </ul>
-    </li>
-
-	</xsl:template>
-			
-	<xsl:template match="CMD_Element" mode="list">
-			<li><xsl:value-of select="@name" />
-				<span class="data comppath" ><xsl:value-of select="my:context(.)" /></span>
-				<span class="cmd cmd_filter"><xsl:text> </xsl:text></span><span class="cmd cmd_detail" ><xsl:text> </xsl:text></span>
-			</li>
-			
-		<!--
-		<span  class="sub" ><xsl:apply-templates select="@ConceptLink" /></span></h4>		
-			<span>[<xsl:value-of select="concat('{',@CardinalityMin, '..', @CardinalityMax,'}')" /></span>
-			<span><xsl:call-template name="valuescheme" /></span>		
-		</div>		 
-		-->
-	</xsl:template>
-	
-
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/complist2terms.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/complist2terms.xsl	(revision 1878)
+++ 	(revision )
@@ -1,240 +1,0 @@
-﻿<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet
-  version="2.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:xs="http://www.w3.org/2001/XMLSchema"
-  xmlns:my="myFunctions"
-  xmlns:dcif="http://www.isocat.org/ns/dcif"   
->
-<!-- 
-<purpose> generate lists for Terms (CMDI-Elements, CMDI-components, Datcats)
- based on the Components-list (provided by CompReg).
-		strategy:  regard CMD_Component, CMd_Element, ConceptLink</purpose>
-<params>
-<param name="isocat_file">the DCIF-Metadata-Profile</param>
-</params>
-<history>
-	<change on="2010-07-10" type="created" by="vr">from complist2stats.xsl</change>	
-</history>
--->
-<xsl:include href="cmd_commons.xsl"/>
-    
-<xsl:param name="isocat_file" select="'../DCR/isocat_profile_5_dcif.xml'" />
-
-<xsl:param name="title" select="'Terms'" />
-
-<xsl:variable name="isocat" select="document($isocat_file)" />
-
-<xsl:variable name="concepts_nolang" 
-	select="//@ConceptLink[not(starts-with(.,'http://cdb.iso.org/lg/'))]" />
-
-
-
-<xsl:template name="continue-root">
-		<!--  <ul class="treeview"> -->
-		<xsl:call-template name="list-terms" />
-		<!--   </ul> -->
-</xsl:template>			
-
-<xsl:template name="summary-overall">
-		<table>
-		<tbody>
-			<tr><td>profileDescription</td><td align="right"><xsl:value-of select="count(//profileDescription)"/></td></tr>			
-			<tr><td>componentDescription</td><td align="right"><xsl:value-of select="count(//componentDescription)"/></td></tr>			
-			<tr><td>CMD_ComponentSpec</td><td align="right"><xsl:value-of select="count(//CMD_ComponentSpec)"/></td></tr>
-			<tr><td>profiles</td><td align="right"><xsl:value-of select="count(//CMD_ComponentSpec[@isProfile='true'])"/></td></tr>
-			<tr><td>CMD_Component</td><td align="right"><xsl:value-of select="count(//CMD_Component)"/></td></tr>			
-			<tr><td>distinct CMD_Component</td><td align="right"><xsl:value-of select="count(distinct-values(//CMD_Component/@name))"/></td></tr>			
-			<tr><td>CMD_Element</td><td align="right"><xsl:value-of select="count(//CMD_Element)"/></td></tr>						
-			<tr><td>distinct CMD_Element</td><td align="right"><xsl:value-of select="count(distinct-values(//CMD_Element/@name))"/></td></tr>						
-			<tr><td>CMD_Elements without ConceptLink</td><td align="right"><xsl:value-of select="count(distinct-values(//CMD_Element[@ConceptLink='' or not(@ConceptLink)]/@name))"/></td></tr>						
-			<tr><td>conceptlinks</td><td align="right"><xsl:value-of select="count(//@ConceptLink)"/></td></tr>						
-			<tr><td>conceptlinks (without lang-codes ISO639)</td><td align="right"><xsl:value-of select="count($concepts_nolang)"/></td></tr>						
-			<tr><td>distinct conceptlinks (without lang-codes)</td><td align="right"><xsl:value-of select="count(distinct-values($concepts_nolang))"/></td></tr>						
-			<tr><td>distinct CMD_Elem-conceptlinks</td><td align="right"><xsl:value-of select="count(distinct-values($concepts_nolang[parent::CMD_Element]))"/></td></tr>						
-			<tr><td>datcats in isocat-profile:Metadata#5</td><td align="right"><xsl:value-of select="count($isocat//dcif:dataCategory)"/></td></tr>						
-			
-			<tr><td>elem matrix</td><td align="right"><xsl:value-of select="count($term_matrix/Term)"/></td></tr>						
-			<tr><td>distinct profile-elem</td><td align="right"><xsl:value-of select="count(distinct-values($term_matrix/Term/concat(@profile,@elem)))"/></td></tr>
-			<tr><td>distinct profile-datcat</td><td align="right"><xsl:value-of select="count(distinct-values($term_matrix/Term/concat(@profile,@datcat)))"/></td></tr>
-			<tr><td>distinct parent-elem</td><td align="right"><xsl:value-of select="count(distinct-values($term_matrix/Term/concat(@parent,@elem)))"/></td></tr>
-			<tr><td>distinct profile-parent-elem</td><td align="right"><xsl:value-of select="count(distinct-values($term_matrix/Term/concat(@profile,@parent,@elem)))"/></td></tr>
-			
-		</tbody>
-</table>
-	
-</xsl:template>			
-
-
-<xsl:template name="summary-profiles">
-	
-	<table>
-		<caption>Profiles |<xsl:value-of select="count(//profileDescription)" />|</caption>
-		<thead><tr><th>name</th><th>|elem|</th><th>|distinct elems|</th><th>|distinct @ConceptLinks|</th></tr></thead>
-		<tbody>		
-				<xsl:for-each select="//profileDescription" >
-					<xsl:sort select="name" order="ascending"/>					
-						<tr><td><xsl:value-of select="name"/></td>									
-							<td align="right"><xsl:value-of select="count(.//CMD_Element)"/></td>
-							<td align="right"><xsl:value-of select="count(distinct-values(.//CMD_Element/@name))"/></td>
-							<td align="right"><xsl:value-of select="count(distinct-values(.//CMD_Element/@ConceptLink))"/></td>
-			
-						</tr>
-					
-				</xsl:for-each>
-		</tbody>
-	</table>
-
-</xsl:template>
-	
-<xsl:template name="list-terms">
-	
-	<div id="term-list" >
-		<span class="box_heading" >Elements</span> <span class="note">|<xsl:value-of select="count($term_matrix/Term)" />/<xsl:value-of select="count(distinct-values($term_matrix/Term/@elem))" />|</span>
-		
-			<ul>
-				<xsl:for-each-group select="$term_matrix/Term" group-by="lower-case(@elem)">
-					<xsl:sort select="lower-case(@elem)" order="ascending"/>					
-						<li><span class="term_detail_caller" ><a href="{@elem}" ><xsl:value-of select="@elem"/></a></span>
-							
-									<span class="note" >
-										|<xsl:value-of select="count(distinct-values(current-group()/@datcat))"/>/
-											<xsl:value-of select="count(distinct-values(current-group()/@profile))"/>/
-											<xsl:value-of select="count(current-group())"/>|
-											<!-- <xsl:value-of select="count(distinct-values(current-group()//node()[not(name()='CMD_Element')]/@ConceptLink))"/> -->
-									</span>
-									<span class="cmd cmd_filter"><xsl:text> </xsl:text></span><span class="cmd cmd_detail" ><xsl:text> </xsl:text></span><span class="cmd cmd_columns" ><xsl:text> </xsl:text></span>
-								<div class="term_detail" >
-									<div class="box_heading"><xsl:value-of select="@elem"/></div>
-										<ul>
-											<xsl:for-each-group select="current-group()" group-by="@datcat">
-												<li><xsl:value-of select="my:shortURL(@datcat)"/>
-													<ul>
-														<xsl:for-each-group select="current-group()" group-by="@profile" >
-															<li><xsl:value-of select="@profile" />
-																	<ul>
-																		<xsl:for-each select="current-group()/@comppath" >
-																				<li><span class="cmd cmd_filter"><xsl:text> </xsl:text></span> <span class="cmd cmd_detail"><xsl:text> </xsl:text></span> <span class="cmd cmd_columns"><xsl:text> </xsl:text></span>
-																					<a href="{.}" ><xsl:value-of select="." /></a></li>
-																		</xsl:for-each>
-																	</ul>
-															</li>
-														</xsl:for-each-group>
-													</ul>
-												</li>						
-											</xsl:for-each-group>
-										</ul>
-								</div>							
-						
-						</li>
-				</xsl:for-each-group>
-			</ul>	
-	</div>
-</xsl:template>
-	
-<xsl:template name="list-datcats">
-	
-	<table>
-		<caption>DatCats |<xsl:value-of select="count(distinct-values($term_matrix/Term/@datcat))" />| <span class="note">* Click on numbers to see detail </span></caption>
-				<thead><tr><th rowspan="2">id</th><th rowspan="2">name</th>
-					<th colspan="3" >count </th><th rowspan="2">elems</th></tr>
-					<tr><th>profile*</th><th >all*</th><th>elems</th> </tr>		</thead>
-		<tbody>		
-				<xsl:for-each-group select="$term_matrix/Term" group-by="@datcat">
-					<xsl:sort select="lower-case(@datcat)" order="ascending"/>					
-						<tr><td valign="top"><xsl:value-of select="my:shortURL(@datcat)"/></td>
-						<td valign="top"><xsl:value-of select="my:rewriteURL(@datcat)"/></td>
-						<td valign="top" align="right">
-							<span class="term_detail_caller" ><xsl:value-of select="count(distinct-values(current-group()/@profile))"/></span>
-							<div class="term_detail" >
-									<div class="box_heading"><xsl:value-of select="my:rewriteURL(@datcat)"/></div>
-									<ul>
-										<xsl:for-each select="distinct-values(current-group()/@profile)" >
-											<li><xsl:value-of select="." /></li>
-										</xsl:for-each>
-									</ul>
-								</div>							
-						</td>
-						<td valign="top" align="right">
-							<span class="term_detail_caller" ><xsl:value-of select="count(current-group())"/></span>
-							<div class="term_detail" >
-									<div class="box_heading"><xsl:value-of select="my:rewriteURL(@datcat)"/></div>
-									<ul>
-										<xsl:for-each-group select="current-group()" group-by="@profile" >
-											<li><xsl:value-of select="@profile" />
-													<ul>
-														<xsl:for-each select="current-group()/@comppath" >
-																<li><xsl:value-of select="." /></li>
-														</xsl:for-each>
-													</ul>
-											</li>
-										</xsl:for-each-group>
-									</ul>
-								</div>							
-						</td>
-						<td valign="top" align="right"><xsl:value-of select="count(distinct-values(current-group()/@elem))"/></td>						
-							
-						<td width="40%">						
-								<xsl:for-each select="distinct-values(current-group()/@elem)">
-									<xsl:sort select="." />
-									<xsl:value-of select="."/>,
-								</xsl:for-each>
-						</td>												
-						</tr>					
-				</xsl:for-each-group>
-		</tbody>
-	</table>
-	</xsl:template>
-
-	<!--
-	obsolete 
-<xsl:function name="m:shorturl" >
-	<xsl:param name="url" />
-	<xsl:value-of select="replace($url, 'http://www.isocat.org/datcat/','isocat:')" />	
-</xsl:function>	
-
-<xsl:function name="m:resolve" >
-	<xsl:param name="url" />	
-	<xsl:message>1:<xsl:value-of select="$url" /></xsl:message>
-	<xsl:variable name="field" select="'name'" />
-	<xsl:variable name="datcat"  select="$isocat//dcif:dataCategory[@pid=$url]" />	
-	<xsl:value-of select="$datcat/@name" />
-	<xsl:message><xsl:value-of select="$datcat/@name" /></xsl:message>
-</xsl:function>	
-
-<xsl:function name="m:resolve" >
-	<xsl:param name="url" />
-	<xsl:param name="field" />
-	<xsl:message>2:<xsl:value-of select="$url" /></xsl:message>
-	<xsl:variable name="datcat"  select="$isocat//dcif:dataCategory[@pid=$url]" />	
-	<xsl:value-of select="$datcat/@*[name()=$field]" />
-	
-</xsl:function>	
--->
-
-<xsl:template name="obsolete">
-
- <!--
- <style type="text/css">
- 		.term_detail { text-align: left; border: 1px solid #666699; background-color: #ccccff; position:absolute; }
- 		.term_detail ul { padding-left: 16px; }
- 		.hilight { background-color: #ccccff;}
- 		.box_heading {font-weight:bold;}
- </style>
-
-			<script type="text/javascript">			
-				$(function(){
-					
-					$('.term_detail').hide();
-					
-					$('.term_detail_caller').click(function() {
-									$(this).parent().find('.term_detail').toggle();
-									$(this).parents('tr').toggleClass('hilight');
-								});
-				});
-			</script>
- -->
-</xsl:template>			
-
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/complist2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/complist2view.xsl	(revision 1878)
+++ 	(revision )
@@ -1,89 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--     
-    $Date: 2010-05-09 $ 
-    
-    created based on comp2view.xsl vronk
-
-<sample>
-	<componentDescription>
-		<id>clarin.eu:cr1:c_1272022528362</id>
-		<description>Type of data collection</description>
-		<name>Datacollection</name>
-		<registrationDate>04/26/2010 12:12:52 CEST</registrationDate>
-		<creatorName>Folkert de Vriend</creatorName>
-		â
-		<ns2:href>
-		http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/clarin.eu:cr1:c_1272022528362
-		</ns2:href>
-		<groupName>CLARIN-Nl</groupName>
-	</componentDescription>
-</sample>
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
-    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org"
-    xmlns:my="myFunctions" >
-    <xsl:strip-space elements="*"/>
-    <xsl:include href="cmd_commons.xsl"/>
-
-    <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
-
-	<xsl:param name="title" 
-		select="concat('Component view: ', if(/CMD_ComponentSpec/Header/Name/text()) then /CMD_ComponentSpec/Header/Name/text() else /CMD_ComponentSpec/CMD_Component[1]/@name)" />				
-			
-	    
-    <!-- main -->
-    <!-- <xsl:template match="/"> -->
-    <xsl:template name="continue-root"> 
-        
-          <!-- Process the complete tree -->        	        
-	      
-				<xsl:choose>
-	    	 	<xsl:when test="$format='complist2htmldetail'" >
-			      <div id="complist">
-			      		<table class="show">
-			      			<caption>Profiles in Component Registry</caption>
-			      			<thead>
-			      				<tr><th>name id</th><th>date author</th><th>description</th></tr>
-			      			</thead>
-		    	 				<xsl:apply-templates select="/*/*" mode="detail" />
-		    	 			</table>
-  	  	 		</div>
-		   	 	</xsl:when>		   	 	
-	    	 	<xsl:when test="$format='complist2htmlselect'" >    	 					      
-			      		<select id="profile-select" class="cmds-ui-elem-stretch">		
-		    	 				<xsl:apply-templates select="/*/*" mode="select"/>		    	 				
-		    				</select>	    	 				    		
-	    	 	</xsl:when>
-	    	 	<xsl:otherwise>
-	    	 			<div id="complist">
-			      		<ul>		
-		    	 				<xsl:apply-templates select="/*/*" />
-		    	 			</ul>
-		    			</div>	 
-	    	 	</xsl:otherwise>
-    	 </xsl:choose>
-			
-    </xsl:template>
-    
-    <!-- generate actual HTML(?)-view -->
-  <xsl:template match="/*/*">
-		<li><span><a href="{my:rewriteURL(id)}" ><xsl:value-of select="name" /></a></span></li>			
-	</xsl:template>
-
-  <xsl:template match="/*/*" mode="detail">
-  	<!--  concat($detail_complist_prefix, my:extractID(id)) -->
-		<tr><td><b><a href="{my:rewriteURL(id)}" ><xsl:value-of select="name" /></a></b></td>
-			<td><xsl:value-of select="substring(registrationDate,1,10)" /><br/>
-			<xsl:value-of select="creatorName" />
-			</td>
-			<td><xsl:value-of select="description" /></td>
-		</tr>			
-	</xsl:template>
-	
-	<xsl:template match="/*/*" mode="select">
-		<option value="{my:extractID(id)}" ><xsl:value-of select="name" /></option>			
-	</xsl:template>
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/complist_resolved.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/complist_resolved.xsl	(revision 1878)
+++ 	(revision )
@@ -1,41 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--     
-    $Date: 2010-05-09 $ 
-    
-    created based on complist2view.xsl vronk
-
-<sample>
-	<componentDescription>
-		<id>clarin.eu:cr1:c_1272022528362</id>
-		<description>Type of data collection</description>
-		<name>Datacollection</name>
-		<registrationDate>04/26/2010 12:12:52 CEST</registrationDate>
-		<creatorName>Folkert de Vriend</creatorName>
-		â
-		<ns2:href>
-		http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/clarin.eu:cr1:c_1272022528362
-		</ns2:href>
-		<groupName>CLARIN-Nl</groupName>
-	</componentDescription>
-</sample>
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
-    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org"
-    xmlns:my="myFunctions" >
-    <xsl:strip-space elements="*"/>
-    <xsl:include href="cmd_commons.xsl"/>
-
-    <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
-
-		<xsl:param name="title" select="'ComplistResolved'" />				
-		<xsl:param name="_format"  select="'default'"/> <!-- table|list -->
-		
-
-<xsl:template name="continue-root">   
-  <xsl:apply-templates mode="include"/>
-      <!-- Resolve all includes -->
-  <!-- <xsl:variable name="tree"> </xsl:variable>  -->         
-</xsl:template>
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/datcat_all2terms.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/datcat_all2terms.xsl	(revision 1878)
+++ 	(revision )
@@ -1,52 +1,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet
-  version="2.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:xs="http://www.w3.org/2001/XMLSchema"
-  xmlns:my="myFunctions"
-  	xmlns:dcif="http://www.isocat.org/ns/dcif"
- >
-<!-- 
-<purpose> generate a termMatrix out of all datcats based on terms_setup.xml  </purpose>
-<strategy>fetch and concat the individual Termsets </strategy>
-<params>
-<param name=""></param>
-</params>
-<history>
-	<change on="2010-10-10" type="created" by="vr"></change>
-</history>
--->
-<xsl:import href="cmd_commons.xsl"/>
-
-<xsl:output method="xml" indent="yes" > </xsl:output>
-
-<xsl:param name="title" select="'Datcat terms all'"></xsl:param>
-
-<xsl:template name="continue-root">
-	<xsl:apply-templates  />
-</xsl:template>
-
-<xsl:template match="dcif:dataCategorySelection" >
-
-</xsl:template>
-
-<xsl:template match="Termsets" >
-	<xsl:copy>
-		<xsl:message>count dcr/rd termsets:<xsl:value-of select="count(Termset[@type='dcr' or @type='rr'])" /></xsl:message>
-		<xsl:apply-templates select="Termset[@type='dcr' or @type='rr']" />
-	</xsl:copy>
-</xsl:template>
-
-<xsl:template match="Termset" >
-	<xsl:variable name="resolved_termset_uri" select="concat($datcats_terms_uri,@id)" />
-	
-	<xsl:variable name="termset" select="document($resolved_termset_uri)" />
-	
-	<xsl:copy>
-		<xsl:copy-of select="@*" />
-		<xsl:copy-of select="$termset/Termset/*" />			
-	</xsl:copy>
-	
-</xsl:template>
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/datcat_dcif2terms.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/datcat_dcif2terms.xsl	(revision 1878)
+++ 	(revision )
@@ -1,92 +1,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet
-  version="2.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:xs="http://www.w3.org/2001/XMLSchema"
-  xmlns:my="myFunctions"
-  	xmlns:dcif="http://www.isocat.org/ns/dcif"
- >
-<!-- 
-<purpose> generate a termMatrix for a datcat-profile (dcif-based = isocat: http://www.isocat.org/rest/profile/5)</purpose>
-<strategy>map from rdf to Terms </strategy>
-<params>
-<param name=""></param>
-</params>
-<history>
-	<change on="2010-10-10" type="created" by="vr"></change>
-</history>
--->
-<xsl:import href="cmd_commons.xsl"/>
-
-<xsl:output method="xml" indent="yes" > </xsl:output>
-
-<xsl:param name="title" select="'Datcat terms'"></xsl:param>
-
-<xsl:template name="continue-root">
-<xsl:message>count terms:<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" /></xsl:message>
-	<xsl:apply-templates select="/dcif:dataCategorySelection" />
-</xsl:template>
-
-<xsl:template match="dcif:dataCategorySelection" >
-	<Termset id="isocat{if($lang!=$default_lang) then $lang else ''}" label="{concat(@name, ' [', $lang ,']')}" >		
-		<xsl:apply-templates select="dcif:dataCategory" />		
-	</Termset>
-</xsl:template>
-
-<!-- <Term elem="TextCorpusProfile" datcat="" corresponding_component="" parent="" context=".TextCorpusProfile" 
-name="TextCorpusProfile" count="8" count_text="199" count_distinct_text="87" path="TextCorpusProfile"/>
- -->
- 
- <!--  handling compressed dcif-format -->
-<xsl:template match="dcif:dataCategory[@name]" >
-	<Term type="datcat" name="{@name}" datcat="{@pid}" id="{@identifier}">		
-		<xsl:for-each select="@*" >
-			<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
-		</xsl:for-each>
-	</Term>
-</xsl:template>
-
- <!--  handling full dcif-format -->
-<xsl:template match="dcif:dataCategory" >
-	<xsl:variable name="n" >
-		<xsl:choose>
-			<xsl:when test=".//dcif:name[@xml:lang=$lang]">
-				<xsl:value-of select=".//dcif:name[@xml:lang=$lang]" />
-			</xsl:when>
-			<xsl:when test=".//dcif:name[@xml:lang=$default_lang]">
-				<xsl:value-of select=".//dcif:name[@xml:lang=$default_lang]" />
-			</xsl:when>
-			<xsl:when test=".//dcif:name">
-				<xsl:value-of select=".//dcif:name" />
-			</xsl:when>
-			<xsl:when test=".//dcif:dataElementName">
-				<xsl:value-of select=".//dcif:dataElementName" />
-			</xsl:when>
-			<xsl:otherwise>
-				<xsl:value-of select=".//dcif:identifier" />
-			</xsl:otherwise>
-		</xsl:choose>
-	</xsl:variable>
-	
-	<!--  <xsl:variable name="datcat" select="my:shortURL(@pid)" />  -->
-				
-	<Term type="datcat" name="{$n}" datcat="{@pid}" id="{.//dcif:identifier}">
-		<xsl:copy-of select="dcif:administrationRecord/*" />
-		<xsl:choose>
-		<xsl:when test=".//dcif:languageSection[language=$lang]" >
-			<xsl:for-each select=".//dcif:languageSection[language=$lang]//*[@xml:lang=$lang]" >			
-					<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
-			</xsl:for-each>			
-		</xsl:when>
-		<xsl:otherwise>
-			<xsl:for-each select=".//dcif:languageSection[1]//*[exists(text()) and text()!='']" >			
-					<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
-			</xsl:for-each>
-		</xsl:otherwise>
-		</xsl:choose>
-						
-		<!--   probably need to add conceptual domain! -->
-	</Term>
-</xsl:template>
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/datcat_rdf2terms.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/datcat_rdf2terms.xsl	(revision 1878)
+++ 	(revision )
@@ -1,97 +1,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet
-  version="2.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:xs="http://www.w3.org/2001/XMLSchema"
-  xmlns:my="myFunctions"
-  xmlns:owl="http://www.w3.org/2002/07/owl#" 
-  xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:dcam="http://purl.org/dc/dcam/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
->
-<!-- 
-<purpose> generate a termMatrix for a datcat-profile (rdf-based = dublincore: http://dublincore.org/2008/01/14/dcelements.rdf#)</purpose>
-<strategy>map from rdf to Terms </strategy>
-<params>
-<param name=""></param>
-</params>
-<history>
-	<change on="2010-10-10" type="created" by="vr"></change>
-</history>
--->
-<xsl:import href="cmd_commons.xsl"/>
-
-<xsl:output method="xml" indent="yes" > </xsl:output>
-
-<xsl:param name="title" select="'Datcat terms'"></xsl:param>
-
-<xsl:template name="continue-root">
-
-	<xsl:message>continue in :<xsl:value-of select="name()" /></xsl:message>
-			<xsl:choose>    	 	
-	    	 	 <xsl:when test="contains($format,'rr-rdf')" >
-	    	 	 <xsl:message>count rels:<xsl:value-of select="count(/rdf:RDF/rdf:Description)" /></xsl:message>    	 						
-	    	 	 <xsl:message>src_file:<xsl:value-of select="$src_file" /></xsl:message>
-	    	 	 <xsl:message>root_uri:<xsl:value-of select="$root_uri" /></xsl:message>
-  	    	 		<xsl:call-template name="rr" />    	 		    
-	    	 	</xsl:when>
-	    	 	 <xsl:when test="//rdf:Property" >
-	    	 	 	<xsl:message>count terms:<xsl:value-of select="count(//rdf:Property)" /></xsl:message>	    	 	
-					<xsl:apply-templates select="/rdf:RDF/rdf:Description" mode="init" />
-				</xsl:when>				
-	    	 	<xsl:otherwise>
-	    	 			<xsl:apply-templates select="/rdf:RDF/rdf:Description[1]"  mode="init" />
-				</xsl:otherwise>
-			</xsl:choose>
-</xsl:template>
-
-<xsl:template match="rdf:Description" mode="init" >
-	<Termset id="{@rdf:about}" label="{dcterms:title}" >
-		<!-- different structures in:  
-			dcelements: -->
-		<xsl:apply-templates select="/rdf:RDF/rdf:Property" />
-		<!-- and dcterms: -->
-		<xsl:apply-templates select="/rdf:RDF/rdf:Description[position() &gt; 1]" mode="dcterm" />
-		
-	</Termset>
-</xsl:template>
-
-<xsl:template name="rr">
-	<xsl:variable name="rrroot"  select="rdf:RDF" />
- <Termset type="rr" >
-  <!--  TODO: we have to match on ID/url! -->
- 	<xsl:copy-of select="$terms_setup//Termset[@type='rr']/@*"  />
-	<xsl:for-each select="distinct-values(.//@rdf:about)" > <!--  .//@rdf:resource| -->
-		<xsl:variable name="datcat1" select="." />	
-		<Term type="rel" datcat="{$datcat1}"  >		
-			<xsl:for-each select="$rrroot/rdf:Description[@rdf:about=$datcat1]" >		
-				<Term type="rel" reltype="{name(*[1])}" datcat="{*/@rdf:resource}" />				
-			</xsl:for-each>
-			<!--  <xsl:for-each select="$rrroot/rdf:Description[*/@rdf:resource=$datcat1]" >
-				<Term type="rel"  name="y" ref="{@rdf:about}" />				
-			</xsl:for-each> -->		
-		 </Term>
-	</xsl:for-each>
-</Termset>
-
-</xsl:template>
-
-
-<!-- <Term elem="TextCorpusProfile" datcat="" corresponding_component="" parent="" context=".TextCorpusProfile" 
-name="TextCorpusProfile" count="8" count_text="199" count_distinct_text="87" path="TextCorpusProfile"/>
- -->
-<xsl:template match="rdf:Property" >
-	<Term type="datcat" name="{rdfs:label}" datcat="{@rdf:about}" id="{@rdf:about}">
-		<xsl:for-each select="*" >
-			<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
-		</xsl:for-each>
-	</Term>
-</xsl:template>
-
-<xsl:template match="rdf:Description" mode="dcterm" >
-	<Term type="datcat" name="{rdfs:label}" datcat="{@rdf:about}" id="{@rdf:about}">
-		<xsl:for-each select="*" >
-			<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
-		</xsl:for-each>
-	</Term>
-</xsl:template>
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/dcif2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/dcif2view.xsl	(revision 1878)
+++ 	(revision )
@@ -1,169 +1,0 @@
-﻿<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet
-  version="1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:xs="http://www.w3.org/2001/XMLSchema"
-	xmlns:dcif="http://www.isocat.org/ns/dcif"   
-	xmlns:xml="http://www.w3.org/XML/1998/namespace"
-	 xmlns:my="myFunctions"
->
-<!-- 
-<purpose> generate a reduced html-view of a dcif-info</purpose>
-<params>
-<param name=""></param>
-</params>
-<history>
-	<change on="2010-03-26" type="created" by="vr">from model2htmlsnippet.xsl</change>	
-</history>
--->
-
-<xsl:output method="xml" />
-
-<xsl:include href="cmd_commons.xsl"/>
-
-<!-- 
-<xsl:param name="format" />
-<xsl:param name="lang" select="'en'" /> 
-
-<xsl:param name="mode" select="'div'" />
-<xsl:param name="base_uri" select="'http://www.isocat.org/datcat/'" />
-<xsl:param name="detail_uri_prefix"  select="'isocat/htmldiv'"/>
--->
-
-<xsl:param name="title" >
-	<xsl:choose>
-		<xsl:when test="count(/dcif:dataCategorySelection/dcif:dataCategory) &gt; 1" >
-			<xsl:text>isocatDCSelection |</xsl:text>			
-			<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" /><xsl:text>| (</xsl:text>			 
-			<xsl:value-of select="concat(my:extractID(//dcif:dataCategory[1]/@pid), //dcif:identifier[1])" /><xsl:text>)</xsl:text>			
-		</xsl:when>
-		<xsl:otherwise>
-		<xsl:text>isocatDC: </xsl:text><xsl:value-of select="concat(my:extractID(//dcif:dataCategory[1]/@pid), //dcif:identifier[1])" /> 
-		</xsl:otherwise>		
-	</xsl:choose>
-	
-</xsl:param>
-
-
-
-<xsl:template name="continue-root" >
-	<!-- <h1><xsl:value-of select="$title"/></h1> -->
-<xsl:message>count DCs:<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" /></xsl:message>
-	<xsl:choose>
-		<xsl:when test="count(/dcif:dataCategorySelection/dcif:dataCategory) &gt; 1" >
-			<xsl:choose>
-				<xsl:when test="contains($format,'htmllist')">
-					<xsl:apply-templates select="/dcif:dataCategorySelection" mode="list" />
-				</xsl:when>
-				<xsl:otherwise>
-						<xsl:apply-templates select="/dcif:dataCategorySelection"/> 
-				</xsl:otherwise>		
-			</xsl:choose>				
-		</xsl:when>
-		<xsl:otherwise>
-				<xsl:apply-templates select="/dcif:dataCategorySelection/dcif:dataCategory"/> 
-		</xsl:otherwise>		
-	</xsl:choose>
-	
-
-	
-	
-</xsl:template>	
-
-<xsl:template match="dcif:dataCategorySelection" >
-	<div>
-	<h3>DCSelection: <xsl:apply-templates select="@name" /></h3>
-		<div class="header">
-		|<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" />|
-			<xsl:value-of select="dcif:globalInformation" />
-		</div>
-			
-		<table>
-			<tr>
-				<th>PID</th>
-				<th>identifier</th>
-				<th>name</th>
-				<th>definition</th>
-				<th>type</th>
-				<th>owner</th>		
-			</tr>	
-		<xsl:apply-templates select="dcif:dataCategory" mode="table" />
-		</table>					
-	</div>	
-	
-</xsl:template>	
-
-<xsl:template match="dcif:dataCategory" mode="table">
-	<tr>
-		<td><xsl:value-of select="my:extractID(@pid)" /></td>
-		<td><xsl:value-of select="@identifier" /></td>
-		<td><xsl:value-of select="@name" /></td>
-		<td><xsl:value-of select="@definition" /></td>
-		<td><xsl:value-of select="@type" /></td>
-		<td><xsl:value-of select="@owner" /></td>		
-	</tr>
-</xsl:template>	
-
-<xsl:template match="dcif:dataCategorySelection"  mode="list">
-	<div>
-	<h3>DCSelection: <xsl:apply-templates select="@name" /></h3>
-		<div class="header">
-		|<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" />|
-			<xsl:value-of select="dcif:globalInformation" />
-		</div>
-			
-		<ul>	
-			<xsl:apply-templates select="dcif:dataCategory" mode="list" />
-		</ul>					
-	</div>	
-	
-</xsl:template>	
-
-
-<xsl:template match="dcif:dataCategory" mode="list">
-		<li><div class="cmds-elem-plus">		
-			<span><a href="{my:rewriteURL(@pid)}" >
-						<xsl:value-of select="@name" /></a></span>
-						<div class="detail">
-							<xsl:value-of select="@definition" /><br/>
-							<xsl:value-of select="@type" />,<xsl:value-of select="@owner" />
-						</div>
-			</div>
-		</li>
-</xsl:template>	
-
-<xsl:template match="dcif:dataCategory" >
-
-	<div>
-	<h4><xsl:value-of select="concat(my:extractID(@pid), ': ', .//dcif:identifier)" /> 
-	</h4>
-		<xsl:apply-templates select=".//dcif:creationDate | .//dcif:profile | .//dcif:definition[@xml:lang=$lang]
-			" />					
-	</div>	
-	
-</xsl:template>	
-	
-	
-<xsl:template match="*" >
-	<!-- <xsl:param name="lv" select="1" />-->
-	<!--<xsl:variable name="lv" select="count(ancestor::d)" /> -->
-	<xsl:if test="string-length(.//text()) &gt; 1" >
-		<xsl:variable name="has_text" >
-			<xsl:choose>
-				<xsl:when test="normalize-space(text())='Unspecified'">unspecified</xsl:when>
-				<xsl:when test="not(normalize-space(text())='')">text</xsl:when>				
-				<xsl:otherwise>empty</xsl:otherwise>
-			</xsl:choose>
-			
-		</xsl:variable>
-		<div class="cmds-elem-prop value-{$has_text}" >
-		<span class="label"><xsl:value-of select="name()" />
-		<xsl:if test="@xml:lang" >(<xsl:value-of select="@xml:lang" />)</xsl:if>: </span>
-		<span class="value"><xsl:value-of select="text()" /></span>
-			<xsl:apply-templates select="*" />					
-		</div>	
-	</xsl:if>
-</xsl:template>	
-
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/fsls2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/fsls2view.xsl	(revision 1878)
+++ 	(revision )
@@ -1,126 +1,0 @@
-﻿<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet
-  version="2.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<!-- 
-<purpose> convert fsls to html-list-snippet</purpose>
-<params>
-<param name=""></param>
-</params>
-<history>
-	<change on="2009-11-15" type="created" by="vr">based on fs_view.xsl</change>	
-	<change on="2010-01-17" type="changed" by="vr">added hack: replace .xml -> .html (in name)</change>	
-	<change on="2010-03-28" type="created" by="vr">based on fsls2htmllist.xsl</change>	
-</history>
-<sample> result
-	<ul id="browser" class="filetree treeview-famfamfam treeview">
-		<li><span class="folder">Folder 1</span>
-			<ul>
-				<li><span class="folder">Item 1.1</span>
-					<ul>
-</sample>
--->
-
-<xsl:import href="cmd_commons.xsl" />
-
-<xsl:param name="size_lowerbound">0</xsl:param>
-<xsl:param name="max_depth">2</xsl:param>
-<xsl:param name="show">file</xsl:param> <!-- file -->
-<xsl:param name="sort">name</xsl:param> <!-- s=size|n=name|t=time -->
-<xsl:param name="style_dir" />
-<xsl:param name="name_col_width" >50%</xsl:param>
-<xsl:param name="basedir" >../..</xsl:param>
-
-<xsl:param name="format" />
-
-<xsl:decimal-format name="european" decimal-separator=',' grouping-separator='.' />
-
-<xsl:param name="title" >Index: <xsl:value-of select="/d/@n"/></xsl:param>
-
-<xsl:template name="continue-root" >
-	<div>
-	<ul class="filetree treeview">
-		<xsl:apply-templates select="*" >							
-		</xsl:apply-templates>			
-	</ul>
-	</div>
-</xsl:template>
-
-<xsl:template match="d" >
-	<xsl:variable name="lv" select="count(ancestor::d)" />
-	
-	<li><span class="folder"><xsl:value-of select="@n" /></span>		
-	
-		<xsl:if test="$lv&lt;$max_depth or $max_depth=0">
-			<ul>
-				<xsl:choose>
-					<xsl:when test="$sort='s'">				
-						<xsl:apply-templates select="d[sum(.//f/@s[.!=''])&gt;=$size_lowerbound]" >
-								<xsl:sort order="descending" select="sum(.//f/@s[.!=''])" data-type="number" />
-						</xsl:apply-templates>		
-					</xsl:when>
-					<xsl:otherwise>
-						<xsl:apply-templates select="d[sum(.//f/@s[.!=''])&gt;=$size_lowerbound]" >
-								<xsl:sort order="ascending" select="@*[name()=$sort]" />
-						</xsl:apply-templates>		
-					</xsl:otherwise>
-				</xsl:choose>
-				
-				
-				<xsl:if test="contains($show,'file')" >
-					<xsl:choose>
-						<xsl:when test="$sort='s'">				
-							<xsl:apply-templates select="f[@s&gt;$size_lowerbound or @s='']" >
-								<xsl:sort order="descending" data-type="number" select="@s" />
-							</xsl:apply-templates>
-						</xsl:when>
-						<xsl:otherwise>
-							<xsl:apply-templates select="f[@s&gt;$size_lowerbound or @s='']" >
-									<xsl:sort order="ascending" select="@*[name()=$sort]" />
-							</xsl:apply-templates>
-						</xsl:otherwise>
-					</xsl:choose>
-					
-				</xsl:if>
-				
-		</ul>
-		
-	</xsl:if>
-	</li>
-</xsl:template>
-
-<xsl:template match="f">
-<xsl:variable name="href" ><xsl:call-template name="path"/>
-	</xsl:variable>
-	
-	
-	<li><span class="{@x}">
-		<a target="detail">
-				<xsl:attribute name="href" ><xsl:call-template name="fn" /></xsl:attribute>
-					<xsl:call-template name="fn" /></a>
-		</span></li>	
-</xsl:template>
-
-<xsl:template name="fn" >
-	<xsl:choose>
-		<xsl:when test="ends-with(@n,'.xml')" >
-				<xsl:value-of select="concat(substring-before(@n,'.xml'),'.html')" />
-		</xsl:when>
-		<xsl:otherwise>
-			<xsl:value-of select="@n" />
-		</xsl:otherwise>
-	</xsl:choose>
-	
-</xsl:template>
-
-
-<xsl:template name="dir" >
-	<xsl:for-each select="ancestor::d" ><xsl:value-of select="@n" />/</xsl:for-each>	
-</xsl:template>
-
-<xsl:template name="path" >
-	<xsl:text>file://</xsl:text><xsl:value-of select="$basedir" />/<xsl:call-template name="dir"/><xsl:value-of select="@n" />		
-</xsl:template>
-
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/mdset_pazpar2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/mdset_pazpar2view.xsl	(revision 1878)
+++ 	(revision )
@@ -1,441 +1,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet
-  version="2.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:xs="http://www.w3.org/2001/XMLSchema"
-  xmlns:saxon="http://saxon.sf.net/"
-  xmlns:my="myFunctions" 
->
-<!-- 
-<purpose> generate html view (probably various formats of a MDRepository response.</purpose>
-<params>
-<param name=""></param>
-</params>
-<history>	
-	<change on="2010-03-26" type="created" by="vr">based on cmdi/scripts/cmdinst2view.xsl</change>	
-</history>
--->
- <xsl:import href="model2matrix.xsl"/>
-<xsl:import href="terms2view.xsl"/> 
-	<xsl:import href="cmd_commons.xsl"/>
-	<xsl:import href="util_xml_ay.xsl"/>
-
-<xsl:output method="html" />
-
-<!-- <xsl:param name="format" select="'table'" /> table|list|detail -->
-<xsl:param name="cols" >auto
-	<!--  Id,Title,Location
-<col label="id">Id</col>
-<col label="id">idno</col>
-<col label="name">Name</col>
-<col label="title">Title</col>
-<col label="title">title</col>
-<col label="loc" >Location</col>
-<col label="loc" >pubPlace</col>
-<col label="lang" >language</col>
-
- -->
-</xsl:param>
-
-<xsl:param name="mode" select="'html'" />
-<xsl:param name="title" >
-	<xsl:text>MDRecordSet </xsl:text>
-</xsl:param>
-
-	<xsl:param name="numberOfRecords" >
-		<xsl:value-of select="/searchRetrieveResponse/numberOfRecords | /show/total"></xsl:value-of>
-	</xsl:param>
-	
-	<xsl:variable name="records" >
-		<xsl:choose>
-			<xsl:when test="exists(/show/hit)">
-				<xsl:copy-of select="/show/hit"  />
-			</xsl:when>				
-			<xsl:otherwise>
-				<xsl:copy-of select="/searchRetrieveResponse/records/record"  />
-			</xsl:otherwise>
-		</xsl:choose>
-	</xsl:variable>
-
-<xsl:variable name="columns" >
-<!-- <xsl:message>COLUMNS: <xsl:value-of select="$cols" /><xsl:value-of select="string-length($cols)" /></xsl:message>  -->
-	<xsl:variable name="colarray" select="tokenize($cols,',')"/>
-	<xsl:for-each select="$colarray" >
-		<col key="{.}" label="{replace(.,'^.*\.([^.]+)$','$1')}" xpath_osbolete="{replace(.,'\.','/')}" xpath="{my:index2xpath(.)}" />
-		<!-- if (contains(.,'.')) then reverse(.) else . -->
-	</xsl:for-each>
-	<xsl:if test="count($colarray)=0" >	
-		<xsl:copy-of select="$autocolumns"></xsl:copy-of>
-		 <xsl:message>AUTOCOLUMNS: <xsl:copy-of select="$autocolumns" /><xsl:value-of select="count($autocolumns)" /></xsl:message> 
-	</xsl:if>
-	
-</xsl:variable>
-
-<xsl:variable name="autocolumns" >
-	<xsl:variable name="precompute">
-		<xsl:for-each-group select="//Components//*[not(*)][exists(text())]" group-by="name()" >			
-			<xsl:sort select="sum(current-group()/string-length(string-join(text(),';')))" order="descending" />
-			<!-- <xsl:message>precomputing: <xsl:value-of select="name()" />
-				count: <xsl:value-of select="count(current-group())" /> sum:<xsl:value-of select="sum(current-group()/string-length(string-join(text(),';')))" /></xsl:message> -->
-			<col key="{name()}" label="{name()}" xpath="{name()}" />
-		</xsl:for-each-group>
-	</xsl:variable>
-	 <!-- <xsl:message>precompute: <xsl:copy-of select="$precompute" /><xsl:value-of select="count($precompute)" /></xsl:message>-->
-	<xsl:copy-of select="$precompute/*[position() &lt; $autocolumns_limit]"></xsl:copy-of> 
-</xsl:variable>
-
-<xsl:template name="continue-root" >
-
-<xsl:for-each select="searchRetrieveResponse | show" >
-	
-	<xsl:if test="not(contains($format, 'htmlsimple'))">
-		<xsl:call-template name="header" />
-	</xsl:if>
-	
-	<!--DEBUG:<code><xsl:copy-of select="$records" /></code>
-	;format=<xsl:value-of select="$format"/> (<xsl:value-of select="contains($format, 'htmlpagelist')" />)-->
-	<xsl:choose>
-				<xsl:when test="contains($format,'htmltable')">
-					<xsl:call-template name="record-table" />
-				</xsl:when>				
-				<xsl:when test="contains($format,'htmllist')">
-					<xsl:apply-templates select="records" mode="list" />
-				</xsl:when>				
-				<xsl:when test="contains($format, 'htmldetail')">
-					<xsl:apply-templates select="records" mode="detail" />
-				</xsl:when>
-				<xsl:when test="contains($format, 'htmlpagelist')">
-					<xsl:call-template name="record-list" />
-					<!-- <xsl:apply-templates select="$records" mode="list" />-->
-				</xsl:when>		
-				<xsl:when test="contains($format, 'htmlpage')">
-<!--					<xsl:apply-templates select="records" mode="table" />-->
-						<xsl:call-template name="record-list" />
-				</xsl:when>
-				<xsl:when test="contains($format, 'htmlsimple')">
-					<xsl:apply-templates select="records" mode="simple" />
-				</xsl:when>		
-				<xsl:otherwise>mdset_pazpar2view: unrecognized format: <xsl:value-of select="$format" /></xsl:otherwise>
-	</xsl:choose>
-</xsl:for-each>	
-
-</xsl:template>	
-	
-	
-<xsl:template match="*" >
-	<!-- <xsl:param name="lv" select="1" />-->
-	<!--<xsl:variable name="lv" select="count(ancestor::d)" /> -->
-	<!-- <xsl:if test="string-length(string-join(.//text(),'')) &gt; 1" > -->		 
-		<xsl:variable name="has_text" >
-			<xsl:choose>
-			<!-- FIXME: text()[1] ? is that safe?-->
-				<xsl:when test="normalize-space(text()[1])='Unspecified'">unspecified</xsl:when>
-				<xsl:when test="not(normalize-space(text()[1])='')">text</xsl:when>				
-				<xsl:otherwise>empty</xsl:otherwise>
-			</xsl:choose>
-			
-		</xsl:variable>
-		<div class="elem {$has_text}" ><span class="elem_name"><xsl:value-of select="name()" />:</span>
-		<span class="elem_value"><xsl:value-of select="text()" /></span>
-			<xsl:apply-templates select="*" />					
-		</div>
-	
-</xsl:template>	
-	
-	<!--
-sample header:	
-<numberOfRecords>524</numberOfRecords>
-    <echoedSearchRetrieveRequest>//Title[contains(.,'an')] /db/cmdi-mirror/silang_data 1 50</echoedSearchRetrieveRequest>
-    <diagnostics>50</diagnostics>
-    -->
-<xsl:template name="header">
-	<div class="result-header" >
-	<xsl:attribute name="max_value"><xsl:value-of select="$numberOfRecords" /></xsl:attribute>
-	<xsl:variable name="cnt_hits" select="number(diagnostics|/show/num)" />
-	<span class="data activeclients" ><xsl:value-of select="/show/activeclients" /></span>;
-	<span class="data status" ><xsl:value-of select="/show/status" /></span>;
-	<span class="label" >hits: </span><span class="value hilight"><xsl:value-of select="$numberOfRecords" /></span>;
-	<span class="label" >from:</span><span><input type="text" class="value start_record paging-input"><xsl:attribute name="value">
-    <xsl:value-of select="$startRecord"/>
-  </xsl:attribute>
-	</input></span>
-	<span class="label" >max:</span><span><input type="text" class="value maximum_records paging-input" ><xsl:attribute name="value">
-    <xsl:value-of select="if(number($cnt_hits) &lt; number($maximumRecords)) then $cnt_hits else $maximumRecords"/>    
-	</xsl:attribute></input></span>
-		
-  <span class="cmd cmd_reload" />  
-<!--	<button class="reload">reload</button>-->
-	<span class="cmd cmd_prev">	
-	<xsl:choose>
-		<xsl:when test="$startRecord = '1'">
-			<xsl:attribute name="disabled">disabled</xsl:attribute>
-		</xsl:when>
-		</xsl:choose>
-	</span>
-	<span class="cmd cmd_next">	
-	<xsl:choose>
-		<xsl:when test="$maximumItems &gt;= $numberOfRecords">
-			<xsl:attribute name="disabled">disabled</xsl:attribute>
-		</xsl:when>
-		</xsl:choose>
-	</span>
-	<span class="cmd cmd_detail" />	
-	<!--  <div class='ui-context-dialog ui-widget-content columns-wrapper'>  -->
-		<div class='ui-widget-content columns-wrapper'>
-			<div class='cmds'><span class="cmd cmd_reload" /><span class="cmd cmd_save" /><span class="cmd cmd_savenew" /></div>
-			<div class='query-columns'>
-			<label>Columns</label>
-				<xsl:call-template name="columns" />
-			</div>
-		</div>
-				
-    </div>
-    <div class="note" ><span class="label" >echo: </span><span class="value"><xsl:value-of select="echoedSearchRetrieveRequest" /></span>;<span class="label" >duration: </span><span class="value"><xsl:value-of select="extraResponseData/duration" /></span>;</div>
-</xsl:template>	
-
-<xsl:template name="columns">
-	<table>
-	<tr><td valign="top">
-	<div class="columns-selected" >	
-	<!-- 
-		<span class="label">selected columns</span>
-		<ul class="query-columnslist">
-			<xsl:for-each select="$columns/*">
-  				<li><xsl:value-of select="@label"/><span class='cmd cmd_del'/></li>
-  			</xsl:for-each>
-  		</ul>
-	 -->
-  	</div>
-  	</td><td valign="top">
-  		<div>
-  		  	<span class="label" >format:</span>
-			<select class="value-format">
-			
-			<option value="htmltable">
-				<xsl:choose>
-				<xsl:when test="contains($format, 'htmltable')">
-					<xsl:attribute name="selected">selected</xsl:attribute>
-				</xsl:when>
-				</xsl:choose><xsl:text>table</xsl:text>		
-			</option>
-			<option value="htmllist">
-				<xsl:choose>
-				<xsl:when test="contains($format, 'htmllist')">
-					<xsl:attribute name="selected">selected</xsl:attribute>
-				</xsl:when>
-				</xsl:choose><xsl:text>list</xsl:text>
-			</option>
-			</select>
-		</div>
-  	<xsl:if test="extraResponseData/usedProfiles" >
-  		<div class="used-profiles">
-	  		<span class="label">used profiles in whole result</span>
-			<ul>
-				<xsl:for-each select="extraResponseData/usedProfiles/profile" >
-					<li><a href="{@id}" ><xsl:value-of select="@name"/></a><span class="note">|<xsl:value-of select="@count"/>|</span></li>
-				</xsl:for-each>
-			</ul>
-		</div>
-	</xsl:if>
-	</td></tr>	
-	<xsl:variable name="resultSummary" >		
-		<!-- wrap in <Terms> to make digestible for model2matrix -->
-		<xsl:variable name="terms" >
-			<Terms>
-			<!-- TODO: if already provided by mdrepo, use that, otherwise DIY -->		
-			<xsl:choose>
-				<xsl:when test="extraResponseData/resultSummary"><xsl:copy-of select="extraResponseData/resultSummary/Term" /></xsl:when>
-				<xsl:otherwise>
-					<xsl:call-template name="xml-ay">
-						<xsl:with-param name="dataset" select="$records"></xsl:with-param>
-					</xsl:call-template>
-				</xsl:otherwise>
-			</xsl:choose>
-			</Terms>
-		</xsl:variable>
-		<!-- <xsl:apply-templates select="$terms" mode="matrix" />-->
-		<xsl:copy-of select="$terms"></xsl:copy-of>
-	</xsl:variable> 	
-		<!--<xsl:message><xsl:copy-of select="$resultSummary"></xsl:copy-of></xsl:message>-->
-	
-	<tr><td colspan="2">	
-	<div class="result-summary">	
-		<span class="label">structure summary of shown result</span>	
-		<!--  calling template in terms2view.xsl -->		
-		<xsl:apply-templates select="$resultSummary" mode="terms-tree" />		
-	</div>	
-	</td></tr>
-	</table>
-</xsl:template>
-
-
-<xsl:template match="records" mode="table">
-    
-	<table class="show">		
-		<thead><tr><th>pos</th>		
-			<xsl:for-each select="$columns/*">
-  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
-  			</xsl:for-each>  			
-		</tr></thead>
-		<tbody>		
-			<xsl:apply-templates select="CMD" mode="table" />			
-		</tbody>
-	</table>
-
-</xsl:template>
-
-	<xsl:template name="record-table">
-		
-		<table class="show">		
-			<thead><tr><th>pos</th>		
-				<xsl:for-each select="$columns/*">
-					<th title="{@key}" ><xsl:value-of select="@label"/></th>
-				</xsl:for-each>  			
-			</tr></thead>
-			<tbody>		
-				<xsl:apply-templates select="$records" mode="tablerow" />			
-			</tbody>
-		</table>
-		
-	</xsl:template>
-	
-	<xsl:template name="record-list" >
-    
-	<table class="show">		
-		<thead><tr><th>pos</th><th>record</th>			  			
-		</tr></thead>
-		<tbody>		
-			<xsl:apply-templates select="$records" mode="listitem" />			
-		</tbody>
-	</table>
-
-</xsl:template>
-	
-	
-
-<!-- FIXME:   there should be a @match=`record` template to make it SRU-compatible -->
-
-<xsl:template match="*" mode="tablerow">
-
-	<xsl:variable name="curr_record" select="." />
-	<xsl:variable name="fields" >
-		<xsl:for-each select="$columns/*">
-	  			<!-- <td ><xsl:value-of select="$curr_cmd//*[name()=current()]" /></td> -->
-	<!--  	<xsl:message><xsl:copy-of select="."></xsl:copy-of> </xsl:message> -->
-	 				 <xsl:variable name="curr_col_xpath" select="@xpath" />
-	  			<td> 			
-	  				<xsl:for-each select="$curr_record">
-	  					<xsl:call-template name="format-field" >
-	  						<xsl:with-param name="elems" select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
-	  					</xsl:call-template> 					
-	  				
-	  				</xsl:for-each>
-	  			</td>
-	  			</xsl:for-each>
-	  </xsl:variable>
-
-	<xsl:call-template name="record-table-row" >
-		<xsl:with-param name="fields" select="$fields" />
-	</xsl:call-template>
-	
-</xsl:template>
-
-<xsl:template match="hit" mode="listitem">
-
-		<xsl:variable name="curr_record" select="." />			
-		<xsl:variable name="cmd_sel_fields" >			
-			<xsl:for-each select="$columns/*">
- 				<xsl:variable name="curr_col_xpath" select="@xpath" />  			 			
-  				<xsl:for-each select="$curr_record">  				
-  					<xsl:copy-of select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
-  				</xsl:for-each>  			
-  			</xsl:for-each>
-  		</xsl:variable>
-		<xsl:variable name="fields" >
-			<div>
-				<xsl:apply-templates select="$cmd_sel_fields" mode="format-xmlelem" />
-			</div>
-		</xsl:variable>
-
-	<xsl:call-template name="record-table-row" >
-		<xsl:with-param name="fields" select="$fields" />
-	</xsl:call-template>
-											
-</xsl:template>
-
-
-<xsl:template name="record-table-row">
-<xsl:param name="fields" />
-<!-- @field absolute_position compute records position over whole recordset, ie add `startRecord` (important when paging)
- -->
-	<xsl:variable name="absolute_position" select="if (number($startRecord)=number($startRecord)) then number($startRecord) + position() - 1 else  position()" />
-	
-		<tr>
-		<td rowspan="2">
-			<xsl:choose>
-				<xsl:when test="exists(.//MdSelfLink)" >
-					<xsl:choose>
-						<xsl:when test="contains($format, 'htmlsimple')" >
-						<a class="internal" href="{concat('../../record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository)}" >
-								<xsl:value-of select="$absolute_position" />
-						</a>						
-						</xsl:when>
-						<xsl:otherwise>
-						<a class="internal" href="{concat('record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository)}" >
-								<xsl:value-of select="$absolute_position" />
-						</a>
-						</xsl:otherwise>
-					</xsl:choose>
-					<span class="cmd cmd_detail" ></span>				
-					<span class="cmd cmd_save" ></span>						
-				</xsl:when>
-				<xsl:otherwise><xsl:value-of select="$absolute_position" /></xsl:otherwise>
-			</xsl:choose>
-		</td>		
-		<td colspan="{count($columns/*)}" >
-				<xsl:call-template name="getContext" />
-			<div class="title" ><xsl:call-template name="getName" /></div>			
-		</td>
-		</tr>
-		<tr>
-			<xsl:copy-of select="$fields" />						
-		</tr>									
-</xsl:template>
-
-
-<xsl:template match="records" mode="simple">
-    
-    <form action="" method="get">
-				<input type="text" name="q" ><xsl:attribute name="value"><xsl:value-of select="$q"/></xsl:attribute> </input>
-				
-				<input type="submit" value="Submit" > </input><br/>
-				<label>startRecord: </label><input type="text" name="startRecord" ><xsl:attribute name="value"><xsl:value-of select="$startRecord"/></xsl:attribute> </input><br/>
-				<label> maxRecords: </label><input type="text" name="maximumRecords" ><xsl:attribute name="value"><xsl:value-of select="$maximumRecords"/></xsl:attribute> </input>
-	</form>
-	<table class="show">		
-		<thead><tr><th>pos</th>		
-			<xsl:for-each select="$columns/*">
-  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
-  			</xsl:for-each>  			
-		</tr></thead>
-		<tbody>	
-			<xsl:apply-templates select="CMD" mode="table" />	 			
-		</tbody>
-	</table>
-
-</xsl:template>
-
-<xsl:template name="getContext" >
-		<!--	<div class="is-part-of collections" ><xsl:value-of select=".//IsPartOf" /> </div>-->
-	<div class="ispartof-list"><span class="label">in: </span>
-		<xsl:apply-templates select="location" /> >
-	</div>
-</xsl:template>	
-	
-<xsl:template match="location" >
-		<!-- <a class="internal" href="{concat($default_prefix, my:encodePID(.))}"><xsl:value-of select="." /></a> >-->
-		<a class="external" href="{@id}"><xsl:value-of select="@name" /></a> +
-</xsl:template>
-
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/sru2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/sru2view.xsl	(revision 1878)
+++ 	(revision )
@@ -1,404 +1,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet
-  version="2.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:xs="http://www.w3.org/2001/XMLSchema"
-  xmlns:saxon="http://saxon.sf.net/"
-  xmlns:my="myFunctions"
-  xmlns:sru="http://www.loc.gov/zing/srw/"
-  xmlns:ccs="http://clarin.eu/schema/ccs-v1.0" 
->
-<!-- 
-<purpose> generate html view (probably various formats of a MDRepository response.</purpose>
-<params>
-<param name=""></param>
-</params>
-<history>	
-	<change on="2010-03-26" type="created" by="vr">based on cmdi/scripts/cmdinst2view.xsl</change>	
-</history>
--->
-
-<!-- <xsl:import href="model2matrix.xsl"/>
-<xsl:import href="terms2view.xsl"/> -->
-
-<xsl:output method="html" />
-
-<xsl:include href="cmd_commons.xsl"/>
-
-<!-- <xsl:param name="format" select="'table'" /> table|list|detail -->
-<xsl:param name="cols" >Id,Title,Location
-<!-- 
-<col label="id">Id</col>
-<col label="id">idno</col>
-<col label="name">Name</col>
-<col label="title">Title</col>
-<col label="title">title</col>
-<col label="loc" >Location</col>
-<col label="loc" >pubPlace</col>
-<col label="lang" >language</col>
-
- -->
-</xsl:param>
-
-<!--<xsl:param name="mode" select="'html'" />-->
-<xsl:param name="title" >
-	<xsl:text>MDRecordSet </xsl:text>
-</xsl:param>
-
-<xsl:variable name="columns" >
-<!-- <xsl:message>COLUMNS: <xsl:value-of select="$cols" /><xsl:value-of select="string-length($cols)" /></xsl:message>  -->
-	<xsl:variable name="colarray" select="tokenize($cols,',')"/>
-	<xsl:for-each select="$colarray" >
-		<col key="{.}" label="{replace(.,'^.*\.([^.]+)$','$1')}" xpath_osbolete="{replace(.,'\.','/')}" xpath="{my:index2xpath(.)}" />
-		<!-- if (contains(.,'.')) then reverse(.) else . -->
-	</xsl:for-each>
-	<xsl:if test="count($colarray)=0" >	
-		<xsl:copy-of select="$autocolumns"></xsl:copy-of>
-		<!-- <xsl:message>AUTOCOLUMNS: <xsl:copy-of select="$autocolumns" /><xsl:value-of select="count($autocolumns)" /></xsl:message> -->
-	</xsl:if>
-	
-</xsl:variable>
-
-<xsl:variable name="autocolumns" >
-	<xsl:variable name="precompute">
-		<xsl:for-each-group select="//Components//*[not(*)][exists(text())]" group-by="name()" >			
-			<xsl:sort select="sum(current-group()/string-length(string-join(text(),';')))" order="descending" />
-			<!-- <xsl:message>precomputing: <xsl:value-of select="name()" />
-				count: <xsl:value-of select="count(current-group())" /> sum:<xsl:value-of select="sum(current-group()/string-length(string-join(text(),';')))" /></xsl:message> -->
-			<col key="{name()}" label="{name()}" xpath="{name()}" />
-		</xsl:for-each-group>
-	</xsl:variable>
-	 <!-- <xsl:message>precompute: <xsl:copy-of select="$precompute" /><xsl:value-of select="count($precompute)" /></xsl:message>-->
-	<xsl:copy-of select="$precompute/*[position() &lt; $autocolumns_limit]"></xsl:copy-of> 
-</xsl:variable>
-
-<xsl:template name="continue-root" >
-
-<xsl:for-each select="sru:searchRetrieveResponse" >
-	<xsl:if test="not(contains($format, 'htmlsimple'))">
-		<xsl:call-template name="header" />
-	</xsl:if>
-	<xsl:choose>
-				<xsl:when test="contains($format,'htmltable')">
-					<xsl:apply-templates select="sru:records" mode="table" />
-				</xsl:when>				
-				<xsl:when test="contains($format,'htmllist')">
-					<xsl:apply-templates select="records" mode="list" />
-				</xsl:when>				
-				<xsl:when test="contains($format, 'htmldetail')">
-					<xsl:apply-templates select="records" mode="detail" />
-				</xsl:when>
-				<xsl:when test="contains($format, 'htmlpage')">
-					<xsl:apply-templates select="sru:records" mode="table" />
-				</xsl:when>
-				<xsl:when test="contains($format, 'htmlpagelist')">
-					<xsl:apply-templates select="records" mode="list" />
-				</xsl:when>		
-				<xsl:when test="contains($format, 'htmlsimple')">
-					<xsl:apply-templates select="sru:records" mode="simple" />
-				</xsl:when>		
-				<xsl:otherwise>mdset2view: unrecognized format: <xsl:value-of select="$format" /></xsl:otherwise>
-	</xsl:choose>
-</xsl:for-each>	
-	
-</xsl:template>	
-	
-	
-<xsl:template match="*" >
-	<!-- <xsl:param name="lv" select="1" />-->
-	<!--<xsl:variable name="lv" select="count(ancestor::d)" /> -->
-	<!-- <xsl:if test="string-length(string-join(.//text(),'')) &gt; 1" > -->		 
-		<xsl:variable name="has_text" >
-			<xsl:choose>
-			<!-- FIXME: text()[1] ? is that safe?-->
-				<xsl:when test="normalize-space(text()[1])='Unspecified'">unspecified</xsl:when>
-				<xsl:when test="not(normalize-space(text()[1])='')">text</xsl:when>				
-				<xsl:otherwise>empty</xsl:otherwise>
-			</xsl:choose>
-			
-		</xsl:variable>
-		<div class="elem {$has_text}" ><span class="elem_name"><xsl:value-of select="name()" />:</span>
-		<span class="elem_value"><xsl:value-of select="text()" /></span>
-			<xsl:apply-templates select="*" />					
-		</div>
-	
-</xsl:template>	
-	
-	<!--
-sample header:	
-<numberOfRecords>524</numberOfRecords>
-    <echoedSearchRetrieveRequest>//Title[contains(.,'an')] /db/cmdi-mirror/silang_data 1 50</echoedSearchRetrieveRequest>
-    <diagnostics>50</diagnostics>
-    -->
-<xsl:template name="header">
-	<div class="result-header" >
-	<xsl:attribute name="max_value"><xsl:value-of select="numberOfRecords" /></xsl:attribute>
-	<xsl:variable name="cnt_hits" select="number(diagnostics)" />
-	
-	<span class="label" >hits: </span><span class="value hilight"><xsl:value-of select="numberOfRecords" /></span>;
-	<span class="label" >from:</span><span><input type="text" class="value start_record paging-input"><xsl:attribute name="value">
-    <xsl:value-of select="$startRecord"/>
-  </xsl:attribute>
-	</input></span>
-	<span class="label" >max:</span><span><input type="text" class="value maximum_records paging-input" ><xsl:attribute name="value">
-    <xsl:value-of select="if(number($cnt_hits) &lt; number($maximumRecords)) then $cnt_hits else $maximumRecords"/>    
-  </xsl:attribute></input></span>
-  <span class="cmd cmd_reload" />  
-<!--	<button class="reload">reload</button>-->
-	<span class="cmd cmd_prev">	
-	<xsl:choose>
-		<xsl:when test="$startRecord = '1'">
-			<xsl:attribute name="disabled">disabled</xsl:attribute>
-		</xsl:when>
-		</xsl:choose>
-	</span>
-	<span class="cmd cmd_next">	
-	<xsl:choose>
-		<xsl:when test="$maximumRecords &gt; numberOfRecords or $maximumRecords = numberOfRecords">
-			<xsl:attribute name="disabled">disabled</xsl:attribute>
-		</xsl:when>
-		</xsl:choose>
-	</span>
-	<span class="cmd cmd_detail" />	
-	<!--  <div class='ui-context-dialog ui-widget-content columns-wrapper'>  -->
-		<div class='ui-widget-content columns-wrapper'>
-			<div class='cmds'><span class="cmd cmd_reload" /><span class="cmd cmd_save" /><span class="cmd cmd_savenew" /></div>
-			<div class='query-columns'>
-			<label>Columns</label>
-				<xsl:call-template name="columns" />
-			</div>
-		</div>	  
-    </div>
-    <div class="note" ><span class="label" >echo: </span><span class="value"><xsl:value-of select="echoedSearchRetrieveRequest" /></span>;<span class="label" >duration: </span><span class="value"><xsl:value-of select="extraResponseData/duration" /></span>;</div>
-</xsl:template>	
-
-<xsl:template name="columns">
-	<table>
-	<tr><td valign="top">
-	<div class="columns-selected" >	
-	<!-- 
-		<span class="label">selected columns</span>
-		<ul class="query-columnslist">
-			<xsl:for-each select="$columns/*">
-  				<li><xsl:value-of select="@label"/><span class='cmd cmd_del'/></li>
-  			</xsl:for-each>
-  		</ul>
-	 -->
-  	</div>
-  	</td><td valign="top">
-  		<div>
-  		  	<span class="label" >format:</span>
-			<select class="value-format">
-			
-			<option value="htmltable">
-				<xsl:choose>
-				<xsl:when test="contains($format, 'htmltable')">
-					<xsl:attribute name="selected">selected</xsl:attribute>
-				</xsl:when>
-				</xsl:choose><xsl:text>table</xsl:text>		
-			</option>
-			<option value="htmllist">
-				<xsl:choose>
-				<xsl:when test="contains($format, 'htmllist')">
-					<xsl:attribute name="selected">selected</xsl:attribute>
-				</xsl:when>
-				</xsl:choose><xsl:text>list</xsl:text>
-			</option>
-			</select>
-		</div>
-  	<xsl:if test="extraResponseData/usedProfiles" >
-  		<div class="used-profiles">
-	  		<span class="label">used profiles in whole result</span>
-			<ul>
-				<xsl:for-each select="extraResponseData/usedProfiles/profile" >
-					<li><a href="{@id}" ><xsl:value-of select="@name"/></a><span class="note">|<xsl:value-of select="@count"/>|</span></li>
-				</xsl:for-each>
-			</ul>
-		</div>
-	</xsl:if>
-	</td></tr>	
-	<xsl:variable name="resultSummary" >		
-		<!-- wrap in <Terms> to make digestible for model2matrix -->
-		<xsl:variable name="terms" >
-			<Terms>
-			<!-- TODO: if already provided by mdrepo, use that, otherwise DIY -->		
-			<xsl:choose>
-				<xsl:when test="extraResponseData/resultSummary"><xsl:copy-of select="extraResponseData/resultSummary/Term" /></xsl:when>
-				<xsl:otherwise>
-				<!-- TODO! -->
-				</xsl:otherwise>
-			</xsl:choose>
-			</Terms>
-		</xsl:variable>
-		<xsl:apply-templates select="$terms" mode="matrix" />
-	</xsl:variable> 	
-	<!--   <xsl:message><xsl:value-of select="$resultSummary/*/name()" /> </xsl:message> -->
-	
-	<tr><td colspan="2">	
-	<div class="result-summary">	
-		<span class="label">structure summary of shown result</span>	
-		<!--  calling template in terms2view.xsl -->
-		<xsl:apply-templates select="$resultSummary" mode="terms-tree" />		
-	</div>	
-	</td></tr>
-	</table>
-</xsl:template>
-
-<xsl:template match="sru:records" mode="table">
-    
-	<table class="show">		
-		<thead><tr><th>pos</th>
-			<th title="bibl" >Bibl</th>
-			<th title="kwic" >View</th>
-			
-		<!--<xsl:for-each select="$columns/*">
-  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
-  			</xsl:for-each>-->  			
-		</tr></thead>
-		<tbody>		
-			<xsl:apply-templates select="sru:record" mode="table" />			
-		</tbody>
-	</table>
-
-</xsl:template>
-
-
-<xsl:template match="records" mode="list">
-    
-	<table class="show">		
-		<thead><tr><th>pos</th><th>record</th>			  			
-		</tr></thead>
-		<tbody>		
-			<xsl:apply-templates select="CMD" mode="list" />			
-		</tbody>
-	</table>
-
-</xsl:template>
-
-<!-- FIXME:   there should be a @match=`record` template to make it SRU-compatible -->
-
-<xsl:template match="sru:record" mode="table">
-
-	<xsl:variable name="curr_record" select="." />
-	<xsl:variable name="fields" >
-		<td>
-			<xsl:value-of select=".//ccs:f[@key='bibl']" />
-		</td>
-		<td>
-			<xsl:apply-templates select=".//ccs:DataView[@type='w']"  mode="kwic" />
-		</td>
-		<!--
-		<xsl:for-each select="$columns/*">
-			<!-\- <td ><xsl:value-of select="$curr_cmd//*[name()=current()]" /></td> -\->
-			<!-\-  	<xsl:message><xsl:copy-of select="."></xsl:copy-of> </xsl:message> -\->
-	 				 <xsl:variable name="curr_col_xpath" select="@xpath" />
-	  			<td> 			
-	  				<xsl:for-each select="$curr_record">
-	  					<xsl:call-template name="format-field" >
-	  						<xsl:with-param name="elems" select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
-	  					</xsl:call-template> 					
-	  				
-	  				</xsl:for-each>
-	  			</td>
-	  			</xsl:for-each>-->
-	  </xsl:variable>
-
-	<xsl:call-template name="record-table-row" >
-		<xsl:with-param name="fields" select="$fields" />
-	</xsl:call-template>
-	
-</xsl:template>
-
-<xsl:template match="*" mode="kwic">	
-	<xsl:choose>
-		<xsl:when test="name()='kw'"><b><xsl:value-of select="normalize-space(.)" /> </b>	</xsl:when> 
-			<xsl:otherwise><xsl:value-of select="normalize-space(.)" /></xsl:otherwise>
-	</xsl:choose>
-</xsl:template>
-	
-<xsl:template match="CMD" mode="list">
-
-		<xsl:variable name="curr_record" select="." />			
-		<xsl:variable name="cmd_sel_fields" >
-			<xsl:for-each select="$columns/*">
- 				<xsl:variable name="curr_col_xpath" select="@xpath" />  			 			
-  				<xsl:for-each select="$curr_record">  				
-  					<xsl:copy-of select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
-  				</xsl:for-each>  			
-  			</xsl:for-each>
-  		</xsl:variable>
-		<xsl:variable name="fields" >
-			<div>
-				<xsl:apply-templates select="$cmd_sel_fields" mode="format-xmlelem" />
-			</div>
-		</xsl:variable>
-
-	<xsl:call-template name="record-table-row" >
-		<xsl:with-param name="fields" select="$fields" />
-	</xsl:call-template>
-											
-</xsl:template>
-
-
-<xsl:template name="record-table-row">
-<xsl:param name="fields" />
-<!-- @field absolute_position compute records position over whole recordset, ie add `startRecord` (important when paging)
- -->
-	<xsl:variable name="absolute_position" select="if (number($startRecord)=number($startRecord)) then number($startRecord) + position() - 1 else  position()" />
-	
-		<tr>
-		<td rowspan="2">
-			<xsl:choose>
-				<xsl:when test="exists(.//MdSelfLink)" >
-					<xsl:choose>
-						<xsl:when test="contains($format, 'htmlsimple')" >
-						<a class="internal" href="{concat('../../record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository)}" >
-								<xsl:value-of select="$absolute_position" />
-						</a>						
-						</xsl:when>
-						<xsl:otherwise>
-						<a class="internal" href="{concat('record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository)}" >
-								<xsl:value-of select="$absolute_position" />
-						</a>
-						</xsl:otherwise>
-					</xsl:choose>
-					<span class="cmd cmd_detail" ></span>				
-					<span class="cmd cmd_save" ></span>						
-				</xsl:when>
-				<xsl:otherwise><xsl:value-of select="$absolute_position" /></xsl:otherwise>
-			</xsl:choose>
-		</td>		
-		<td colspan="{count($columns/*)}" >
-				<xsl:call-template name="getContext" />
-			<div class="title" ><xsl:call-template name="getName" /></div>			
-		</td>
-		</tr>
-		<tr>
-			<xsl:copy-of select="$fields" />						
-		</tr>									
-</xsl:template>
-
-
-<xsl:template match="records" mode="simple">
-    
-    <form action="" method="get">
-				<input type="text" name="q" ><xsl:attribute name="value"><xsl:value-of select="$q"/></xsl:attribute> </input>
-				
-				<input type="submit" value="Submit" > </input><br/>
-				<label>startRecord: </label><input type="text" name="startRecord" ><xsl:attribute name="value"><xsl:value-of select="$startRecord"/></xsl:attribute> </input><br/>
-				<label> maxItems: </label><input type="text" name="maximumRecords" ><xsl:attribute name="value"><xsl:value-of select="$maximumRecords"/></xsl:attribute> </input>
-	</form>
-	<table class="show">		
-		<thead><tr><th>pos</th>		
-			<xsl:for-each select="$columns/*">
-  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
-  			</xsl:for-each>  			
-		</tr></thead>
-		<tbody>	
-			<xsl:apply-templates select="CMD" mode="table" />	 			
-		</tbody>
-	</table>
-
-</xsl:template>
-
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/sru_explain.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/sru_explain.xsl	(revision 1878)
+++ 	(revision )
@@ -1,89 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<xsl:output method="xml" />
-<xsl:param name="server" />
-<xsl:param name="port" />
-<xsl:param name="basepath" />
-
-<xsl:template  match="/" ><zs:explainResponse xmlns:zs="http://www.loc.gov/zing/srw/">
-	<zs:version>1.2</zs:version>
-	<zs:record>
-	<zs:recordSchema>http://explain.z3950.org/dtd/2.0/</zs:recordSchema>
-	<zs:recordPacking>xml</zs:recordPacking>
-	<zs:recordData>
-	<explain xmlns="http://explain.z3950.org/dtd/2.0/">
-      <serverInfo>
-	<host>localhost</host>
-	<port>8080</port>
-	<database>MDService2/sru</database>
-      </serverInfo>
-      <databaseInfo>
-	<title>MDService</title>
-	<description lang="en" primary="true">CLARIN MDService</description>
-      </databaseInfo>
-      
-      <schemaInfo>
-          <schema name="dc" identifier="info:srw/schema/1/dc-v1.1">
-            <title>Simple Dublin Core</title>
-          </schema>          
-
-        </schemaInfo>
-        <indexInfo>
-          <set name="dc" identifier="info:srw/cql-context-set/1/dc-v1.1" />
-          <index>
-            <title lang="en">Title</title>
-            <map>
-              <name set="dc">title</name>
-            </map>
-          </index>
-        </indexInfo>
-        <configInfo>
-          <default type="numberOfRecords">25</default>
-          <setting type="maximumRecords">100</setting>
-          <supports type="proximity" />
-        </configInfo>
-    </explain></zs:recordData></zs:record></zs:explainResponse>
-</xsl:template>
-
-	<xsl:template match="/other">
-<sru:explainResponse xmlns:sru="http://www.loc.gov/zing/srw/">
- <sru:version>1.1</sru:version>
- <sru:record>
-   <sru:recordPacking>XML</sru:recordPacking>
-   <sru:recordSchema>http://explain.z3950.org/dtd/2.1/</sru:recordSchema>
-   <sru:recordData>
-
-   <zr:explain xmlns:zr="http://explain.z3950.org/dtd/2.1/">
-     <zr:serverInfo protocol="SRU" version="1.2" transport="http"
-                    method="GET">
-        <zr:host><xsl:value-of select="$server" /></zr:host>
-        <zr:port><xsl:value-of select="$port" /></zr:port>
-        <zr:database><xsl:value-of select="$basepath" /></zr:database>
-     </zr:serverInfo>
-     <zr:databaseInfo>
-       <title lang="en" primary="true">CLARIN MDService SRU</title>
-     </zr:databaseInfo>
-     <zr:indexInfo>
-       <zr:set name="dc" identifier="info:srw/cql-context-set/1/dc-v1.1"/>
-        <zr:index>
-          <zr:map><zr:name set="dc">title</zr:name></zr:map>
-        </zr:index>
-     </zr:indexInfo>
-     <zr:schemaInfo>
-        <zr:schema name="dc" identifier="info:srw/schema/1/dc-v1.1">
-          <zr:title>Simple Dublin Core</zr:title>
-        </zr:schema>
-     </zr:schemaInfo>
-     <zr:configInfo>
-         <zr:default type="numberOfRecords">1</zr:default>
-         <zr:setting type="maximumRecords">50</zr:setting>
-         <zr:supports type="proximity"/>
-     </zr:configInfo>
-    </zr:explain>
-
-   </sru:recordData>
- </sru:record>
-</sru:explainResponse>
-	</xsl:template>
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/terms_extract.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/terms_extract.xsl	(revision 1878)
+++ 	(revision )
@@ -1,34 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--     
-    created based on complist_resolved.xsl vronk
-
-<sample>
-	<Termsets>
-		<Termset>
-			<Term>
-			...			
-		</Termset>
-		...
-	</Termsets	
-</sample>
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
-    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org"
-    xmlns:my="myFunctions" >
-    <xsl:strip-space elements="*"/>
-    <!-- <xsl:include href="cmd_commons.xsl"/>  -->
-
-    <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
-
-<xsl:param name="q" />		
-
-<xsl:template match="/">
-    <Termsets>
-<!--		extract-Q:<xsl:value-of select="$q" />	-->
-<!--		extract-root-node:<xsl:value-of select="/*/name()" />  -->
-	<xsl:copy-of select="/Termsets/Termset[@id=$q or $q='all']" />  
-	</Termsets>
-</xsl:template>
-</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/util_xml_ay.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/util_xml_ay.xsl	(revision 1878)
+++ 	(revision )
@@ -1,82 +1,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
-   xmlns:exsl="http://exslt.org/common"
-   extension-element-prefixes="exsl">
-
-<!--
-analyzes the structure of xml-input: 
-	output: all xpaths
-	strategy: 2 steps! : 
-		1. flatten verbalize elements
-		2. aggregate 
--->
-
-<!-- <xsl:key name="names" match="NAME" use="concat('',@aliastype)"/> -->
-
-<xsl:key name="elem_names" match="elem" use="."/>
-
-<!--
-<xsl:key name="divided_elems" match="*[@part]" use="concat(name(),':',@part)"/>
-<xsl:key name="person_unique" match="NXElem[@boldtype='Person']" use="concat(names/NXElem[xtype='default']/token,occs/NXElem[1]/occLocation,events/NXElem[xtype='birth']/date)"/>
--->
-
-<xsl:param name="dataset" select="/" />
-
-<xsl:variable name="flatted" >
-      <xsl:call-template name="flatten" />
-   </xsl:variable>
-	
-<xsl:template name="xml-ay" >
-   <xsl:param name="dataset" select="$dataset"></xsl:param>
-		
-    	<xsl:variable name="summarized">    	   
-      	<xsl:call-template name="summarize" >
-      	   <xsl:with-param name="flatted">
-      	      <xsl:call-template name="flatten">
-      	         <xsl:with-param name="dataset" select="$dataset"></xsl:with-param>
-      	      </xsl:call-template>
-      	   </xsl:with-param>    	   
-      	</xsl:call-template>
-    	</xsl:variable>
-      <xsl:copy-of select="$summarized"></xsl:copy-of>
-</xsl:template>
-
-<xsl:template name="flatten">
-   <xsl:param name="dataset" select="$dataset"></xsl:param>
-   <xsl:variable name="flatted">
-	<flatted>
-	<xsl:for-each select="$dataset//*" >
-	     <elem n="{name()}">
-				<xsl:call-template name="path" />				
-			</elem>		
-	</xsl:for-each>
-	</flatted></xsl:variable>   
-   <xsl:copy-of select="$flatted"></xsl:copy-of>
-</xsl:template>
-
-<xsl:template name="summarize" >
-   <xsl:param name="flatted" ></xsl:param>
-   <xsl:message>count flatted <xsl:value-of select="count($flatted/flatted/elem)"></xsl:value-of></xsl:message>
-<!-- match="flatted"
-	 <xsl:for-each select="flatted/elem[generate-id() = generate-id(key('elem_names',.)[1])]" > -->
-	<xsl:for-each-group select="$flatted/flatted/elem" group-by=".">	
-		<Term name="{@n}" path="{.}" count="{count(current-group())}" />		
-	</xsl:for-each-group>
-</xsl:template>
-
-<xsl:template name="path" >
-	<xsl:for-each select="ancestor::*" ><xsl:value-of select="name()" />/</xsl:for-each><xsl:value-of select="name()" />
-</xsl:template>
-
-
-<!--
-<xsl:template match="*[1]">
-<xsl:param name="path" />
-	<xsl:value-of select="name()" />
-	<xsl:value-of select="count(../*[name()=name(current())])" />
-	<xsl:text>&#xD;&#xA;</xsl:text>
-		<xsl:apply-templates	/>
-</xsl:template>
--->
-
-</xsl:stylesheet>
