dims 01/07/13 04:32:08
Modified: . build.xml
webapp sitemap.xmap
webapp/stylesheets/documents root2html.xsl
Log:
Patches from Daniel Rubio <[EMAIL PROTECTED]> for "Rendering XDOCS in the WAR File"
Revision Changes Path
1.25 +8 -0 xml-cocoon2/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/build.xml,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- build.xml 2001/07/13 06:49:11 1.24
+++ build.xml 2001/07/13 11:31:45 1.25
@@ -383,6 +383,14 @@
</fileset>
</copy>
+ <copy todir="${build.war}/docs/xdocs/images" filtering="off">
+ <fileset dir="${images.dir}">
+ <include name="*.gif"/>
+ <include name="*.jpg"/>
+ <include name="*.png"/>
+ </fileset>
+ </copy>
+
<copy todir="${build.war}/docs/xdocs/internal" filtering="off">
<fileset dir="${docs.dir}">
<include name="site-book.xml"/>
1.27 +12 -0 xml-cocoon2/webapp/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon2/webapp/sitemap.xmap,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- sitemap.xmap 2001/07/12 06:48:07 1.26
+++ sitemap.xmap 2001/07/13 11:31:53 1.27
@@ -366,6 +366,18 @@
<map:serialize/>
</map:match>
+ <map:match pattern="documents/images/**.gif">
+ <map:read src="docs/xdocs/images/{1}.gif" mime-type="image/gif"/>
+ </map:match>
+
+ <map:match pattern="documents/images/**.jpg">
+ <map:read src="docs/xdocs/images/{1}.jpg" mime-type="image/jpg"/>
+ </map:match>
+
+ <map:match pattern="documents/images/**.png">
+ <map:read src="docs/xdocs/images/{1}.png" mime-type="image/png"/>
+ </map:match>
+
<!-- ================ Static =========================== -->
<map:match pattern="fo">
1.3 +10 -0 xml-cocoon2/webapp/stylesheets/documents/root2html.xsl
Index: root2html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/webapp/stylesheets/documents/root2html.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- root2html.xsl 2001/07/10 16:01:00 1.2
+++ root2html.xsl 2001/07/13 11:32:01 1.3
@@ -73,4 +73,14 @@
</xsl:copy>
</xsl:template>
+<xsl:template match="body//figure">
+ <xsl:element name="img">
+ <xsl:for-each select="@*">
+ <xsl:attribute name="{name(.)}">
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ </xsl:for-each>
+ </xsl:element>
+</xsl:template>
+
</xsl:stylesheet>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]