<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:CxF="http://colorexchangeformat.com/v2">
	<xsl:output method="xml"/>
	<xsl:template match="/">
		<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
			<color_library>
				<colorlib_h>
					<xsl:attribute name="memo3">
						<xsl:value-of select="//CxF:Palette/@PaletteName"/>
					</xsl:attribute>
					<xsl:for-each select="//CxF:Color">
						<xsl:attribute name="color_name">
							<xsl:value-of select="@ColorName"/>
						</xsl:attribute>
						<xsl:attribute name="rgb_r">
							<xsl:value-of select="round(CxF:ColorSpaceRGB/CxF:Red * 255)"/>
						</xsl:attribute>
						<xsl:attribute name="rgb_g">
							<xsl:value-of select="round(CxF:ColorSpaceRGB/CxF:Green * 255)"/>
						</xsl:attribute>
						<xsl:attribute name="rgb_b">
							<xsl:value-of select="round(CxF:ColorSpaceRGB/CxF:Blue * 255)"/>
						</xsl:attribute>
					</xsl:for-each>
				</colorlib_h>
			</color_library>
		</document>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2009. Progress Software Corporation. All rights reserved.

<metaInformation>
	<scenarios>
		<scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="..\..\..\..\..\tmp\misc\COLORMAPPING\ColorMunki.xml" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="yes" profilemode="0" profiledepth=""
		          profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal"
		          customvalidator="">
			<advancedProp name="sInitialMode" value=""/>
			<advancedProp name="bXsltOneIsOkay" value="true"/>
			<advancedProp name="bSchemaAware" value="true"/>
			<advancedProp name="bXml11" value="false"/>
			<advancedProp name="iValidation" value="0"/>
			<advancedProp name="bExtensions" value="true"/>
			<advancedProp name="iWhitespace" value="0"/>
			<advancedProp name="sInitialTemplate" value=""/>
			<advancedProp name="bTinyTree" value="true"/>
			<advancedProp name="bWarnings" value="true"/>
			<advancedProp name="bUseDTD" value="false"/>
			<advancedProp name="iErrorHandling" value="fatal"/>
		</scenario>
	</scenarios>
	<MapperMetaTag>
		<MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no">
			<SourceSchema srcSchemaPath="ColorMunki.xml" srcSchemaRoot="CxF:CxF" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/>
		</MapperInfo>
		<MapperBlockPosition>
			<template match="/"></template>
		</MapperBlockPosition>
		<TemplateContext></TemplateContext>
		<MapperFilter side="source"></MapperFilter>
	</MapperMetaTag>
</metaInformation>
-->