CVS: jfor/samples directory-to-html.xsl,1.2,1.3 sitemap.xmap,1.2,1.3
Bertrand Delacretaz <[email protected]> Fri, 12 Jul 2002 07:30:50 -0700
| Newsgroups | gmane.text.xml.jfor.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jfor/jfor/samples
In directory usw-pr-cvs1:/tmp/cvs-serv21516/samples
Modified Files:
directory-to-html.xsl sitemap.xmap
Log Message:
inherit-attributes.xsl and related tests added
Index: directory-to-html.xsl
===================================================================
RCS file: /cvsroot/jfor/jfor/samples/directory-to-html.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** directory-to-html.xsl 6 Jun 2002 07:17:32 -0000 1.2
--- directory-to-html.xsl 12 Jul 2002 14:30:48 -0000 1.3
***************
*** 8,11 ****
--- 8,14 ----
$Id$
$Log$
+ Revision 1.3 2002/07/12 14:30:48 bdelacretaz
+ inherit-attributes.xsl and related tests added
+
Revision 1.2 2002/06/06 07:17:32 bdelacretaz
samples navigation bugs corrected
***************
*** 75,82 ****
--- 78,93 ----
<tr style="BACKGROUND-COLOR: yellow">
<td>XSL-FO source</td>
+ <td>(post-processed)</td>
<td>RTF conversion through jfor</td>
+ <td>(post-processed)</td>
</tr>
<xsl:apply-templates select="//dir:file"/>
</table>
+
+ <p><em>post-processed</em> means that the XSL-FO files goes through the
+ inherit-attributes.xsl transform (provided in the samples directory)
+ before being converted by jfor
+ </p>
+
</xsl:if>
</xsl:template>
***************
*** 85,90 ****
--- 96,104 ----
<xsl:template match="dir:file">
<xsl:if test="contains(@name,'.xml')">
+ <xsl:variable name="postProc" select="'pp/'"/>
<xsl:variable name="xmlFile" select="@name"/>
+ <xsl:variable name="ppXmlFile" select="concat($postProc,$xmlFile)"/>
<xsl:variable name="rtfFile" select="concat(@name,'.rtf')"/>
+ <xsl:variable name="ppRtfFile" select="concat($postProc,$rtfFile)"/>
<tr>
***************
*** 93,97 ****
--- 107,113 ----
</xsl:if>
<td><a href="{$xmlFile}"><xsl:value-of select="$xmlFile"/></a></td>
+ <td><a href="{$ppXmlFile}"><xsl:value-of select="$ppXmlFile"/></a></td>
<td><a href="{$rtfFile}"><xsl:value-of select="$rtfFile"/></a></td>
+ <td><a href="{$ppRtfFile}"><xsl:value-of select="$ppRtfFile"/></a></td>
</tr>
</xsl:if>
Index: sitemap.xmap
===================================================================
RCS file: /cvsroot/jfor/jfor/samples/sitemap.xmap,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** sitemap.xmap 6 Jun 2002 07:17:32 -0000 1.2
--- sitemap.xmap 12 Jul 2002 14:30:48 -0000 1.3
***************
*** 6,9 ****
--- 6,12 ----
$Id$
$Log$
+ Revision 1.3 2002/07/12 14:30:48 bdelacretaz
+ inherit-attributes.xsl and related tests added
+
Revision 1.2 2002/06/06 07:17:32 bdelacretaz
samples navigation bugs corrected
***************
*** 51,60 ****
</map:match>
! <!-- XSL-FO source -->
<map:match pattern="**/*.xml">
<map:generate src="{1}/{2}.xml"/>
<map:serialize type="xml"/>
</map:match>
!
<!-- RTF -->
<map:match pattern="**/*.rtf">
--- 54,78 ----
</map:match>
! <!-- post-processed XSL-FO source -->
! <map:match pattern="**/pp/*.xml">
! <map:generate src="cocoon:/{1}/{2}.xml"/>
! <map:transform src="inherit-attributes.xsl">
! <map:parameter name="debug" value="true"/>
! </map:transform>
! <map:serialize type="xml"/>
! </map:match>
!
! <!-- raw XSL-FO source -->
<map:match pattern="**/*.xml">
<map:generate src="{1}/{2}.xml"/>
<map:serialize type="xml"/>
</map:match>
!
! <!-- RTF created after post-processing the XSL-FO source -->
! <map:match pattern="**/*.rtf?PP">
! <map:generate src="cocoon:/post-processed/{1}/{2}"/>
! <map:serialize type="fo2rtf"/>
! </map:match>
!
<!-- RTF -->
<map:match pattern="**/*.rtf">
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf