<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--

	v13_to_v12_sites.xsl
	
	XSL stylesheet converting a SAML 2 metadata file describing a Shibboleth
	1.3 federation into the equivalent Shibboleth 1.2 sites file.
	
	Author: <NAME> <<EMAIL>>

	$Id: v13_to_v12_sites.xsl,v 1.9 2005/03/23 17:40:48 iay Exp $
-->
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
	xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0"
	xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="urn:mace:shibboleth:1.0"
	exclude-result-prefixes="shibmeta md">

	<!--
		Version information for this file.  Remember to peel off the dollar signs
		before dropping the text into another versioned file.
	-->
	<xsl:param name="cvsId">$Id: v13_to_v12_sites.xsl,v 1.9 2005/03/23 17:40:48 iay Exp $</xsl:param>

	<!--
		Add a comment to the start of the output file.
	-->
	<xsl:template match="/">
		<xsl:comment>
			<xsl:text>&#10;&#9;***DO NOT EDIT THIS FILE***&#10;&#10;</xsl:text>
			<xsl:text>&#9;Converted by:&#10;&#10;&#9;</xsl:text>
			<xsl:value-of select="substring-before(substring-after($cvsId, ': '), '$')"/>
			<xsl:text>&#10;</xsl:text>
		</xsl:comment>
		<xsl:apply-templates/>
	</xsl:template>

	<!--Force UTF-8 encoding for the output.-->
	<xsl:output omit-xml-declaration="no" method="xml" encoding="UTF-8" indent="yes"/>

	<!--
		Selectively strip empty text nodes from the input.
	-->
	<xsl:strip-space elements="md:EntityDescriptor"/>
	
	<!--
		Map EntitiesDescriptor to SiteGroup
	-->
	<xsl:template match="md:EntitiesDescriptor">
		<SiteGroup Name="{@Name}">
			<xsl:attribute name="xsi:schemaLocation">
				<xsl:text>urn:mace:shibboleth:1.0 shibboleth.xsd </xsl:text>
				<xsl:text>http://www.w3.org/2000/09/xmldsig# xmldsig-core-schema.xsd</xsl:text>
			</xsl:attribute>
			<!--
				Pass through text blocks and comments, and interesting elements.
				These may be: EntityDescriptor or nested EntitiesDescriptor.
			--><commit_msg>Don't need ds namespace in output after all, or in the XSI data.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--

	v13_to_v12_sites.xsl
	
	XSL stylesheet converting a SAML 2 metadata file describing a Shibboleth
	1.3 federation into the equivalent Shibboleth 1.2 sites file.
	
	Author: <NAME> <<EMAIL>>

	$Id: v13_to_v12_sites.xsl,v 1.10 2005/03/23 17:51:04 iay Exp $
-->
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
	xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0"
	xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="urn:mace:shibboleth:1.0"
	exclude-result-prefixes="shibmeta md ds">

	<!--
		Version information for this file.  Remember to peel off the dollar signs
		before dropping the text into another versioned file.
	-->
	<xsl:param name="cvsId">$Id: v13_to_v12_sites.xsl,v 1.10 2005/03/23 17:51:04 iay Exp $</xsl:param>

	<!--
		Add a comment to the start of the output file.
	-->
	<xsl:template match="/">
		<xsl:comment>
			<xsl:text>&#10;&#9;***DO NOT EDIT THIS FILE***&#10;&#10;</xsl:text>
			<xsl:text>&#9;Converted by:&#10;&#10;&#9;</xsl:text>
			<xsl:value-of select="substring-before(substring-after($cvsId, ': '), '$')"/>
			<xsl:text>&#10;</xsl:text>
		</xsl:comment>
		<xsl:apply-templates/>
	</xsl:template>

	<!--Force UTF-8 encoding for the output.-->
	<xsl:output omit-xml-declaration="no" method="xml" encoding="UTF-8" indent="yes"/>

	<!--
		Selectively strip empty text nodes from the input.
	-->
	<xsl:strip-space elements="md:EntityDescriptor"/>
	
	<!--
		Map EntitiesDescriptor to SiteGroup
	-->
	<xsl:template match="md:EntitiesDescriptor">
		<SiteGroup Name="{@Name}">
			<xsl:attribute name="xsi:schemaLocation">
				<xsl:text>urn:mace:shibboleth:1.0 shibboleth.xsd</xsl:text>
			</xsl:attribute>
			<!--
				Pass through text blocks and comments, and interesting elements.
				These may be: EntityDescriptor or nested EntitiesDescriptor.
			-->
{'fraction_non_alphanumeric': 0.1803078426581969, 'fraction_numerical': 0.04910823356950892, 'mean_word_length': 4.465954606141522, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 2, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 7, 'xml': 22}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2069615', 'n_tokens_mistral': 1806, 'n_tokens_neox': 1524, 'n_words': 314}