office-gobmx/readlicense_oo/docs
Vladimir Glazounov 91ea2262f7 CWS-TOOLING: integrate CWS jl123
2009-08-04 12:34:31 +0200 jl  r274615 : #i103742# added note regarding Berkeley update
2009-07-27 11:24:49 +0200 jl  r274351 : #i100916# applying tono's patch
2009-07-22 16:29:54 +0200 jl  r274248 : CWS-TOOLING: rebase CWS jl123 to trunk@274203 (milestone: DEV300:m53)
2009-07-21 11:49:45 +0200 jl  r274172 : #100916# syncing data base with fcntl( F_FULLSYNC) failed with an unexpected error on Mac when buiding on NFS. Although there is a fallback using fsync, it was not used because of the unexpected error
2009-07-20 09:35:42 +0200 jl  r274107 : #i100916# Applied tono's second patch
2009-07-16 16:41:24 +0200 jl  r274062 : i100916
2009-07-13 14:47:32 +0200 jl  r273936 : #i100916# deliver libdb-47.lib
2009-07-13 11:03:26 +0200 jl  r273921 : #i100916# applied tono's patches for mingw
2009-07-10 14:34:22 +0200 jl  r273895 : #i100916# renamed mingw patch
2009-07-10 14:33:36 +0200 jl  r273894 : #i100916# renamed mingw patch
2009-07-10 14:04:39 +0200 jl  r273890 : #i100916# new patch
2009-07-10 11:39:54 +0200 jl  r273882 : #i100916# updating berkeleydb
2009-07-10 11:03:16 +0200 jl  r273880 : #i100916# updating berkeleydb
2009-07-02 12:52:53 +0200 jl  r273638 : CWS-TOOLING: rebase CWS jl127 to trunk@273468 (milestone: DEV300:m51)
2009-04-08 13:32:52 +0200 jl  r270642 : #i100916#
2009-04-08 13:25:15 +0200 jl  r270639 : #i100916# new version of berkeleydb
2009-04-08 12:37:14 +0200 jl  r270634 : #i100916# changes for version 4.7.25
2009-04-08 12:36:08 +0200 jl  r270633 : #i100916# new patch file for version 4.7.25 (no encryption)
2009-08-25 11:09:20 +00:00
..
readme CWS-TOOLING: integrate CWS jl123 2009-08-25 11:09:20 +00:00
readme.dtd
readme.xsl INTEGRATION: CWS libxslt02 (1.4.98); FILE MERGED 2007-05-10 12:07:41 +00:00

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="html" doctype-public="-//W3C//DTD HTML 3.2//EN" />
  	
  <!-- inputvariable declaration -->
  <xsl:param name="os1"/>
  <xsl:param name="gui1"/>
  <xsl:param name="cp1" />
  <xsl:param name="com1"/>
  <xsl:param name="lang1"/>
  <xsl:param name="type"/>
  <xsl:param name="file"/>
  <xsl:strip-space elements="*"/>

<xsl:template match="/Readme">
  <!-- creates the HTML-output-->
  <xsl:if test="$type='html'">
   <!-- the outputname for htlm-files-->
                  <html>
	<!-- HTML utf-8 encoding enable -->
  		<head>
  			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  		</head>
  		<body>
  			<xsl:apply-templates/>
  		</body>
  	</html>
  	
  </xsl:if>
  <!-- creates the Textoutput -->
  <xsl:if test="$type='text'">
    <!-- the outputfilename for Textfiles -->
    	<xsl:apply-templates/>
  </xsl:if>
</xsl:template>

<xsl:template match="Section">
  		<xsl:apply-templates/>
</xsl:template>


<xsl:template match="Paragraph">
	<!-- match the given parameters one of the xmlattributes?  -->
	<xsl:if test="@os=$os1 or @os='all'">
		<xsl:if test="@cpuname=$cp1 or @cpuname='all'">
			<xsl:if test="@gui=$gui1 or @gui='all'">
				<xsl:if test="@com=$com1 or  @com='all'">
					<!--html-output -->
					<xsl:if test="$type='html'">
						<xsl:element name="{@style}">
							<xsl:apply-templates/>
						</xsl:element>
					</xsl:if>
					<!--text-output -->
					<xsl:if test="$type='text'">
						<xsl:if test="@style='h1' or @style='h2' or  @style='h3' or  @style='H1' or @style='H2' or  @style='H3'">
							<xsl:choose>
								<xsl:when test='$os1="WNT"'>
									<xsl:text>&#xD;&#xA;------------------------------------------------------------&#xD;&#xA;</xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:text>&#xA;------------------------------------------------------------&#xA;</xsl:text>
								</xsl:otherwise>
							</xsl:choose>								
						</xsl:if>
						<!-- enter an carriage return line feed -->
						<xsl:if test="@style='p' or @style='P'">
							<xsl:choose>
								<xsl:when test='$os1="WNT"'>
									<xsl:text>&#xD;&#xA;</xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:text>&#xA;</xsl:text>
								</xsl:otherwise>
							</xsl:choose>								
						</xsl:if>
						<xsl:apply-templates/>
						<xsl:if test="@style='h1' or @style='h2' or  @style='h3' or  @style='hr' or  @style='H1' or @style='H2' or  @style='H3' or  @style='HR'">
							<xsl:choose>
								<xsl:when test='$os1="WNT"'>
									<xsl:text>------------------------------------------------------------&#xD;&#xA;</xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:text>------------------------------------------------------------&#xA;</xsl:text>
								</xsl:otherwise>
							</xsl:choose>								
						</xsl:if>
					</xsl:if>
				</xsl:if>
			</xsl:if>
		</xsl:if>
	</xsl:if> 
</xsl:template>

<xsl:template match="List">
	<!-- creates the listoutput, the html-tags will be ignored if textoutput is choosen -->
	<xsl:choose>
	<xsl:when test="@Enum='false'">
		<ul type="circle">
			<xsl:apply-templates/>
		</ul>
	</xsl:when>
	<xsl:when test="@Enum='true'">
		<ol>
			<xsl:apply-templates/>
		</ol>
	</xsl:when>
	</xsl:choose>
</xsl:template>

<xsl:template match="List//Text">
	<!-- create the list -->
	<xsl:if test="$type='html'">
		<xsl:if test="@xml:lang=$lang1">
			<li><xsl:apply-templates/></li>
		</xsl:if>
	</xsl:if>
	<xsl:if test="$type='text'">
		<xsl:if test="@xml:lang=$lang1">
			<xsl:text>- </xsl:text>
			<xsl:apply-templates/>
			<xsl:choose>
				<xsl:when test='$os1="WNT"'>
					<xsl:text>&#xD;&#xA;</xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>&#xA;</xsl:text>
				</xsl:otherwise>
			</xsl:choose>								
		</xsl:if>
	</xsl:if>
</xsl:template>

<!-- the textoutput of normal paragraph nodes -->
<!-- these template will be used if an attribute xml:lang exists -->
<xsl:template match="Section/Paragraph/Text[@xml:lang]">
	<xsl:if test="@xml:lang=$lang1">
		<!-- make the output with the given template -->
		<xsl:call-template name="out"/>
	</xsl:if>
</xsl:template>

<!-- these template will be used if no attribute xml:lang exists -->
<xsl:template match="Section/Paragraph/Text[not (@xml:lang)]">
	<xsl:call-template name="out"/>
</xsl:template>

<!-- creates the outputtemplate out -->
<xsl:template name="out">
	<!--  creates output with an extra CR/LF -->
	<xsl:if test="@Wrap='true'">
		<xsl:if test="$type='html'">
			<xsl:element name="br"/>
			<xsl:call-template name="prelinked"/>
		</xsl:if>
		<xsl:if test="$type='text'">
			<xsl:choose>
				<xsl:when test='$os1="WNT"'>
					<xsl:text>&#xD;&#xA;</xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>&#xA;</xsl:text>
				</xsl:otherwise>
			</xsl:choose>								
			<xsl:call-template name="linked"/>
		</xsl:if>
	</xsl:if>

	<!-- here without the extra CR/LF-->
	<xsl:if test="@Wrap='false'">
		<xsl:if test="$type='html'">
			<xsl:call-template name="prelinked"/>
		</xsl:if>
		<xsl:if test="$type='text'">
			<xsl:call-template name="linked"/>
		</xsl:if>
	</xsl:if>
</xsl:template>

<xsl:template name="prelinked">
	<xsl:if test=" @style='b ' or @style='B ' or @style='i ' or @style='I ' or @style='u ' or @style='U '">
		<xsl:element name="{@style}">
			<xsl:call-template name="linked"/>
		</xsl:element>
	</xsl:if>
	<xsl:if test="@style='none'">
		<xsl:call-template name="linked"/>
	</xsl:if>
</xsl:template>

<xsl:template name="linked">
	<xsl:if test="$type='html'">
		<!--this template creates a link if the url attribute is true -->
		<xsl:if test="@url='false'">
			<xsl:apply-templates/>
		</xsl:if>
		<xsl:if test="@url='true'">
	      		<xsl:if test="@path='none'">
				<a><xsl:attribute name="href">	<xsl:apply-templates/></xsl:attribute><xsl:apply-templates/></a>	
	      		</xsl:if>
	      		<xsl:if test="@path='file'">
				<a><xsl:attribute name="href"><xsl:text>file://localhost/</xsl:text><xsl:apply-templates/></xsl:attribute><xsl:apply-templates/></a>	
	      		</xsl:if>
	      		<xsl:if test="@path='url'">
				<a><xsl:attribute name="href"><xsl:text>http://</xsl:text><xsl:apply-templates/></xsl:attribute><xsl:apply-templates/></a>	
	      		</xsl:if>
	      	</xsl:if>
	      	<!-- this code is needed for the line before an link, if not an <p> will be added-->
	      	<xsl:if test="@url='ahead'">
	      		<xsl:apply-templates/>
	      	</xsl:if>
	</xsl:if>
	<xsl:if test="$type='text'">
		<xsl:if test="@url='false'">
			<xsl:apply-templates/>
			<xsl:choose>
				<xsl:when test='$os1="WNT"'>
					<xsl:text>&#xD;&#xA;</xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>&#xA;</xsl:text>
				</xsl:otherwise>
			</xsl:choose>								
		</xsl:if>
		<xsl:if test="@url='true' or @url='ahead'">
			<xsl:apply-templates/>
		</xsl:if>
	</xsl:if>
</xsl:template>

</xsl:stylesheet>