CVS: jfor/samples directory-to-html.xsl,1.1,1.2 sitemap.xmap,1.1,1.2

Bertrand Delacretaz <[email protected]> Thu, 06 Jun 2002 00:17:34 -0700
Newsgroups gmane.text.xml.jfor.cvs
Message-ID <[email protected]>
Update of /cvsroot/jfor/jfor/samples
In directory usw-pr-cvs1:/tmp/cvs-serv6471/samples

Modified Files:
	directory-to-html.xsl sitemap.xmap 
Log Message:
samples navigation bugs corrected

Index: directory-to-html.xsl
===================================================================
RCS file: /cvsroot/jfor/jfor/samples/directory-to-html.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** directory-to-html.xsl	22 May 2002 15:53:20 -0000	1.1
--- directory-to-html.xsl	6 Jun 2002 07:17:32 -0000	1.2
***************
*** 8,11 ****
--- 8,14 ----
  $Id$
  $Log$
+ Revision 1.2  2002/06/06 07:17:32  bdelacretaz
+ samples navigation bugs corrected
+ 
  Revision 1.1  2002/05/22 15:53:20  bdelacretaz
  Cocoon 2 navigation added for samples
***************
*** 81,95 ****
  	<!-- for each file, generate a link to the XSL-FO and RTF versions -->
  	<xsl:template match="dir:file">
! 
! 		<xsl:variable name="xmlFile" select="@name"/>
! 		<xsl:variable name="rtfFile" select="concat(substring-before(@name, '.fo.xml'),'.rtf')"/>
! 
! 		<tr>
! 			<xsl:if test="position() mod 2 = 0">
! 				<xsl:attribute name ="style" >BACKGROUND-COLOR: lightgrey</xsl:attribute>
! 			</xsl:if>
! 			<td><a href="{$xmlFile}"><xsl:value-of select="$xmlFile"/></a></td>
! 			<td><a href="{$rtfFile}"><xsl:value-of select="$rtfFile"/></a></td>
! 		</tr>
  	</xsl:template>
  
--- 84,99 ----
  	<!-- for each file, generate a link to the XSL-FO and RTF versions -->
  	<xsl:template match="dir:file">
! 		<xsl:if test="contains(@name,'.xml')">
! 			<xsl:variable name="xmlFile" select="@name"/>
! 			<xsl:variable name="rtfFile" select="concat(@name,'.rtf')"/>
! 	
! 			<tr>
! 				<xsl:if test="position() mod 2 = 0">
! 					<xsl:attribute name ="style" >BACKGROUND-COLOR: lightgrey</xsl:attribute>
! 				</xsl:if>
! 				<td><a href="{$xmlFile}"><xsl:value-of select="$xmlFile"/></a></td>
! 				<td><a href="{$rtfFile}"><xsl:value-of select="$rtfFile"/></a></td>
! 			</tr>
! 		</xsl:if>
  	</xsl:template>
  

Index: sitemap.xmap
===================================================================
RCS file: /cvsroot/jfor/jfor/samples/sitemap.xmap,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** sitemap.xmap	22 May 2002 15:53:20 -0000	1.1
--- sitemap.xmap	6 Jun 2002 07:17:32 -0000	1.2
***************
*** 6,9 ****
--- 6,12 ----
  $Id$
  $Log$
+ Revision 1.2  2002/06/06 07:17:32  bdelacretaz
+ samples navigation bugs corrected
+ 
  Revision 1.1  2002/05/22 15:53:20  bdelacretaz
  Cocoon 2 navigation added for samples
***************
*** 49,54 ****
  
  			<!-- XSL-FO source -->
! 			<map:match pattern="**/*.fo.xml">
! 				<map:generate src="{1}/{2}.fo.xml"/>
  				<map:serialize type="xml"/>
  			</map:match>
--- 52,57 ----
  
  			<!-- XSL-FO source -->
! 			<map:match pattern="**/*.xml">
! 				<map:generate src="{1}/{2}.xml"/>
  				<map:serialize type="xml"/>
  			</map:match>
***************
*** 56,60 ****
  			<!-- RTF -->
  			<map:match pattern="**/*.rtf">
! 				<map:generate src="cocoon:/{1}/{2}.fo.xml"/>
  				<map:serialize type="fo2rtf"/>
  			</map:match>
--- 59,63 ----
  			<!-- RTF -->
  			<map:match pattern="**/*.rtf">
! 				<map:generate src="cocoon:/{1}/{2}"/>
  				<map:serialize type="fo2rtf"/>
  			</map:match>


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm