Author: mes
Date: 2012-05-08 13:44:24 -0700 (Tue, 08 May 2012)
New Revision: 29156
Added:
core3/impl/trunk/help-impl/
core3/impl/trunk/help-impl/README.txt
core3/impl/trunk/help-impl/build.xml
core3/impl/trunk/help-impl/pom.xml
core3/impl/trunk/help-impl/src/
core3/impl/trunk/help-impl/src/docbkx/
core3/impl/trunk/help-impl/src/docbkx/images/
core3/impl/trunk/help-impl/src/docbkx/manual.xml
core3/impl/trunk/help-impl/src/main/
core3/impl/trunk/help-impl/src/main/assembly/
core3/impl/trunk/help-impl/src/main/assembly/html.xml
core3/impl/trunk/help-impl/src/main/assembly/javahelp.xml
core3/impl/trunk/help-impl/src/main/assembly/pdf.xml
core3/impl/trunk/help-impl/src/main/pdf/
core3/impl/trunk/help-impl/src/main/pdf/manual.pdf
core3/impl/trunk/help-impl/xsl/
core3/impl/trunk/help-impl/xsl/add_id_to_section.xsl
core3/impl/trunk/help-impl/xsl/copy.xsl
core3/impl/trunk/help-impl/xsl/docbook-xsl-1.75.2.zip
core3/impl/trunk/help-impl/xsl/filter_index.xsl
core3/impl/trunk/help-impl/xsl/remove_revision_history.xsl
core3/impl/trunk/help-impl/xsl/strip_images.xsl
Modified:
core3/impl/trunk/pom.xml
Log:
updated help functionality so that it builds the manual dynamically off of the
latest manual found in help-impl
Added: core3/impl/trunk/help-impl/README.txt
===================================================================
--- core3/impl/trunk/help-impl/README.txt (rev 0)
+++ core3/impl/trunk/help-impl/README.txt 2012-05-08 20:44:24 UTC (rev
29156)
@@ -0,0 +1,79 @@
+
+INTRO
+===============================================================================
+
+This is a two part project.
+
+The Maven part, driven by pom.xml, generates the documentation artifact used
by
+the rest of Cytoscape to provide documentation for the application and
+distribution.
+
+The Ant part is used to download the manual from the wiki, download all of the
+images from the wiki, and generate a PDF version of the manual. Maven does
+not execute these tasks because they take a long time, burden our wiki, and
+don't generally need to happen more than once or twice in a release cycle
+(i.e. once everyone's updated their portion of the manual).
+
+
+THE PROCEDURE
+===============================================================================
+
+90% of the time (when you don't need to update):
+------------------------------------------------
+
+1. "mvn install" should be all you need to generate the artifacts needed by
+ Cytoscape to build and deploy normally.
+
+2. There is no step 2.
+
+
+10% of the time (when you DO need to update):
+---------------------------------------------
+
+1. "ant update" will download everything, pre-process the XML, and generate
the PDF.
+
+2. Check all the newly generated files into subversion.
+
+3. "mvn install" to generate the artifacts.
+
+
+
+ANT TASK EXPLANATION
+===============================================================================
+
+"ant" Shows the usage message.
+
+"ant update" Will re-download the manual, all associated images, and
regenerate
+ the PDF version of the manual. The project should be left in a
+ a state such that everything can be added and checked
in.
+
+
+POTENTIAL GENERATION ERRORS
+===============================================================================
+
+"Error: CALS tables must specify the number of columns."
+
+
+
+This happens because you see the following structure in the docbook:
+
+ <table cols="1">
+ <caption/>
+ <tgroup>
+ <colspec colname="xxx1"/>
+
+where the number of columns is specified in the table element rather than the
+tgroup element, where it should be. The following is correct
+
+ <table>
+ <caption/>
+ <tgroup cols="1">
+ <colspec colname="xxx1"/>
+
+This is best solved by fixing the tables in the document rather than trying to
+tweak the XML. This is really a bug in how MoinMoin exports the DocBook.
+
+This problem occurs in the XML when the first row of a table spans some or all
+of the columns in the table. Simply remove this and the xml is exported
+correctly.
+
Added: core3/impl/trunk/help-impl/build.xml
===================================================================
--- core3/impl/trunk/help-impl/build.xml (rev 0)
+++ core3/impl/trunk/help-impl/build.xml 2012-05-08 20:44:24 UTC (rev
29156)
@@ -0,0 +1,245 @@
+<?xml version="1.0"?>
+<project name="Cytoscape" default="usage"
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
+
+ <artifact:pom id="mypom" file="pom.xml" />
+ <property name="basedir" value="."/>
+ <property name="xep.home" value="/cellar/users/mes/XEP"/>
+ <property name="images.dir" value="${basedir}/src/docbkx/images"/>
+ <property name="manual.dir" value="${basedir}/src/docbkx"/>
+ <propertyregex property="version" input="${mypom.version}"
regexp="(\d+\.\d+\.\d+).*" select="\1" />
+
+ <available file="${xep.home}" property="xep-exists"/>
+
+ <target name="usage">
+ <echo
message="----------------------------------------------------------"/>
+ <echo message=" Cytoscape Manual Fetching System "/>
+ <echo
message="----------------------------------------------------------"/>
+ <echo message=" "/>
+ <echo message=" Primary target:"/>
+ <echo message=" ant update # Will re-download manual
and regenerate PDF."/>
+ <echo message=" "/>
+ <echo message=" Other targets:"/>
+ <echo message=" ant fetch-manual # Just downloads manual.
"/>
+ <echo message=" ant fetch-images # Downloads manual and
images."/>
+ <echo message=" ant prep-manual # Downloads everything
and processes raw xml."/>
+ <echo message=" ant create-pdf # Runs prep-manual and
then creates the PDF (same as update)."/>
+ <echo message=" "/>
+
+<echo message="----------------------------------------------------------"/>
+ </target>
+
+
+
+ <!--==============================================================-->
+ <!-- Init conditionally -->
+ <target name="init"
+ depends="xep-init,non-xep-init"/>
+
+
+
+ <!--==============================================================-->
+ <!-- Init if XEP does not exist -->
+ <target name="non-xep-init"
+ unless="xep-exists">
+ <echo message="XEP does not exist - No PDF for you!"/>
+ </target>
+
+ <!--==============================================================-->
+ <!-- Init if XEP does exist -->
+ <target name="xep-init"
+ if="xep-exists">
+ <echo message="XEP exists - You get a PDF!"/>
+ <property name="xep.lib" value="${xep.home}/lib"/>
+ <taskdef name="xep" classname="com.renderx.xepx.ant.XEPTask"
+ classpath="${xep.lib}/XEPTask.jar"/>
+
+ <path id="classpath">
+ <fileset dir="${xep.lib}">
+ <include name="xep*.jar"/>
+ <include name="xt.jar"/>
+ </fileset>
+ <pathelement path="${xep.lib}/XEPTask.jar"/>
+ </path>
+ </target>
+
+
+ <!--==============================================================-->
+ <!-- Fetch the DocBook XML from the wiki page. -->
+ <target name="fetch-manual"
+ description="fetches the raw manual file"
+ depends="init" >
+ <get
src="http://wiki.cytoscape.org/Cytoscape_3/UserManual?action=show&mimetype=text/docbook"
+ dest="manual_raw.xml"/>
+
+ </target>
+
+
+ <!--==============================================================-->
+ <!-- Fetch the images from the wiki page. -->
+ <target name="fetch-images"
+ description="Fetches the images from the manual"
+ depends="fetch-manual" >
+
+ <!-- Correct the urls in the raw manual. -->
+ <copy file="manual_raw.xml"
+ tofile="manual_tmp_fetch_images.xml"
+ overwrite="yes"
+ encoding="utf-8">
+ <filterchain>
+ <tokenfilter>
+ <replacestring from="wiki//wiki"
+ to="wiki"/>
+ <replacestring from="&amp;#8594;"
to="&#8594;" />
+ </tokenfilter>
+ </filterchain>
+ </copy>
+
+ <!-- Strip out the image file names from the manual and create
a new ant
+ build file that will fetch them. -->
+ <xslt in="manual_tmp_fetch_images.xml"
+ out="fetch_images_tmp.xml"
+ classpathref="classpath"
+ style="xsl/strip_images.xsl"/>
+
+ <!-- Change the file destination in the build file. -->
+ <copy file="fetch_images_tmp.xml"
+ tofile="fetch_image_files.xml"
+ overwrite="yes"
+ encoding="utf-8">
+ <filterchain>
+ <tokenfilter>
+ <replaceregex pattern='dest=\S+target='
+
replace='dest="${images.dir}/'
+ flags="g"/>
+ <replacestring from='&'
to='&amp;'/>
+ </tokenfilter>
+ </filterchain>
+ </copy>
+
+ <!-- Run the new build file fetching all of the image files.
-->
+ <ant antfile="fetch_image_files.xml" target="strip"/>
+
+ <delete file="fetch_images_tmp.xml"/>
+ <delete file="fetch_image_files.xml"/>
+ <delete file="manual_tmp_fetch_images.xml"/>
+ </target>
+
+
+ <!--==============================================================-->
+ <!-- Substitute file locations and other XML problems -->
+ <target name="prep-manual"
+ description="Prep Manual XML"
+ depends="fetch-manual">
+ <!-- change this once we have images!!!!!
+ depends="fetch-images">
+ -->
+
+ <copy file="manual_raw.xml"
+ tofile="manual_tmp_prep.xml"
+ overwrite="yes"
+ encoding="utf-8">
+ <filterchain>
+ <tokenfilter>
+ <!-- this gets the images -->
+ <replaceregex
pattern='http://wiki.cytoscape.org/Cytoscape_3/UserManual\S+target='
+ replace='images/'
+ flags="g"/>
+ <replacestring from="&amp;#8592;"
to="&#8592;" />
+ <replacestring from="&amp;#8593;"
to="&#8593;" />
+ <replacestring from="&amp;#8594;"
to="&#8594;" />
+ <replacestring from="&amp;#8595;"
to="&#8595;" />
+ <replacestring from="@version@"
to="${version}" />
+ <replacestring
from="<title>Cytoscape_User_Manual</title>"
+ to=
"<title>Cytoscape User Manual</title>" />
+
+ </tokenfilter>
+ </filterchain>
+ </copy>
+
+
+ <!-- Add id to section elements
+ <xslt classpathref="classpath"
+ in="manual_tmp_prep.xml"
+ out="manual_tmp_prep2.xml"
+ style="xsl/add_id_to_section.xsl"/>
+ -->
+
+ <!-- Remove revision history
+ <xslt classpathref="classpath"
+ in="manual_tmp_prep2.xml"
+ out="${manual.dir}/manual.xml"
+ style="xsl/remove_revision_history.xsl"/>
+ -->
+
+ <!-- TEMPORARY until the above transforms get uncommented! -->
+ <copy file="manual_tmp_prep.xml"
+ tofile="${manual.dir}/manual.xml"
+ overwrite="yes"
+ encoding="utf-8"/>
+
+ <delete file="manual_tmp_prep.xml"/>
+ <delete file="manual_tmp_prep2.xml"/>
+ <delete file="manual_raw.xml"/>
+ </target>
+
+
+ <!--==============================================================-->
+ <!-- Create the manual PDF file. -->
+ <target name="create-pdf"
+ description="Create Cytoscape Manual PDF"
+ depends="prep-manual"
+ if="xep-exists">
+
+ <property name="docbook-xsl" value="docbook-xsl-1.75.2"/>
+ <property name="xsl" value="${basedir}/xsl/${docbook-xsl}"/>
+ <unzip src="${basedir}/xsl/${docbook-xsl}.zip"
+ dest="${basedir}/xsl" />
+
+ <!-- so that images scale correctly -->
+ <copy file="${manual.dir}/manual.xml"
+ tofile="manual_pdf.xml"
+ overwrite="yes"
+ encoding="utf-8">
+ <filterchain>
+ <tokenfilter>
+ <replacestring from="imagedata fileref"
+ to="imagedata
scaletofit='1' width='100%' fileref"/>
+ <replacestring from='fileref="images/'
+
to='fileref="src/docbkx/images/'/>
+ </tokenfilter>
+ </filterchain>
+ </copy>
+
+ <!-- transform the manual to fo -->
+ <xslt classpathref="classpath"
+ in="manual_pdf.xml"
+ out="manual.fo"
+ style="${xsl}/fo/docbook.xsl">
+ <param name="ulink.show" expression="0"/>
+ </xslt>
+
+
+ <!-- convert to pdf -->
+ <xep in="manual.fo"
+ out="src/main/pdf/manual.pdf"
+ format="PDF">
+ <classpath refid="classpath"/>
+ <sysproperty key="com.renderx.xep.CONFIG"
+ value="${xep.home}/xep.xml"/>
+ </xep>
+
+ <delete file="manual.fo"/>
+ <delete file="manual_pdf.xml"/>
+ <delete dir="xsl/${docbook-xsl}"/>
+ </target>
+
+ <!--==============================================================-->
+ <!-- Create the manual PDF file. -->
+ <target name="update"
+ description="Download manual and regenerated PDF"
+ depends="create-pdf">
+ </target>
+
+</project>
Added: core3/impl/trunk/help-impl/pom.xml
===================================================================
--- core3/impl/trunk/help-impl/pom.xml (rev 0)
+++ core3/impl/trunk/help-impl/pom.xml 2012-05-08 20:44:24 UTC (rev 29156)
@@ -0,0 +1,150 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <parent>
+ <artifactId>impl-parent</artifactId>
+ <groupId>org.cytoscape</groupId>
+ <version>3.0.0-alpha8-SNAPSHOT</version>
+ </parent>
+
+ <properties>
+ <bundle.symbolicName>org.cytoscape.help-impl</bundle.symbolicName>
+ <bundle.namespace>org.cytoscape.help.internal</bundle.namespace>
+ </properties>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>help-impl</artifactId>
+
+ <name>Cytoscape Help Impl (${project.artifactId})</name>
+
+ <packaging>jar</packaging>
+
+ <!-- bootstrap for cytoscape dependencies, namely the parent POM snapshots
-->
+ <repositories>
+ <repository>
+ <id>cytoscape_snapshots</id>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <name>Cytoscape Snapshots</name>
+
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/snapshots/</url>
+ </repository>
+ <repository>
+ <id>cytoscape_releases</id>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <name>Cytoscape Releases</name>
+
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/releases/</url>
+ </repository>
+ </repositories>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2.1</version>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/html.xml</descriptor>
+ <descriptor>src/main/assembly/pdf.xml</descriptor>
+ <descriptor>src/main/assembly/javahelp.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.3</version>
+ <executions>
+ <execution>
+ <id>copy-html-images</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/docbkx/html/images</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/docbkx/images</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-javahelp-images</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/docbkx/javahelp/images</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/docbkx/images</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-pdf</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/docbkx/pdf</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/pdf</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.agilejava.docbkx</groupId>
+ <artifactId>docbkx-maven-plugin</artifactId>
+ <version>2.0.9</version>
+ <executions>
+ <execution>
+ <goals>
+ <!--
+ <goal>generate-pdf</goal>
+ -->
+ <goal>generate-javahelp</goal>
+ <goal>generate-html</goal>
+ </goals>
+ <phase>generate-sources</phase>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.docbook</groupId>
+ <artifactId>docbook-xml</artifactId>
+ <version>4.4</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+</project>
+
Added: core3/impl/trunk/help-impl/src/docbkx/manual.xml
===================================================================
--- core3/impl/trunk/help-impl/src/docbkx/manual.xml
(rev 0)
+++ core3/impl/trunk/help-impl/src/docbkx/manual.xml 2012-05-08 20:44:24 UTC
(rev 29156)
@@ -0,0 +1 @@
+<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE article PUBLIC "-//OASIS//DTD
DocBook XML V4.4//EN"
"http://www.docbook.org/xml/4.4/docbookx.dtd"><article><articleinfo><title>Cytoscape_3/UserManual</title><revhistory><revision><revnumber>2</revnumber><date>2012-02-17
20:40:45</date><authorinitials>MikeSmoot</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-02-17
20:35:55</date><authorinitials>MikeSmoot</authorinitials></revision></revhistory></articleinfo><section><title><ulink
url='http://wiki.cytoscape.org/Cytoscape_3/UserManual/Cytoscape_3/UserManual/TitlePage'>Cytoscape
3.0.0 User Manual</ulink></title><para>Header and copyright information here.
</para></section><section><title><ulink
url='http://wiki.cytoscape.org/Cytoscape_3/UserManual/Cytoscape_3/UserManual/Introduction'>Introduction</ulink></title><para>Cytoscape
3.0.0 is the latest version of Cytoscape, which ... </para><para> <remark>
*/ </remark></para></section></arti!
cle>
\ No newline at end of file
Added: core3/impl/trunk/help-impl/src/main/assembly/html.xml
===================================================================
--- core3/impl/trunk/help-impl/src/main/assembly/html.xml
(rev 0)
+++ core3/impl/trunk/help-impl/src/main/assembly/html.xml 2012-05-08
20:44:24 UTC (rev 29156)
@@ -0,0 +1,16 @@
+<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>html</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}/docbkx/html</directory>
+ <outputDirectory>/</outputDirectory>
+ <fileMode>0644</fileMode>
+ </fileSet>
+ </fileSets>
+</assembly>
Added: core3/impl/trunk/help-impl/src/main/assembly/javahelp.xml
===================================================================
--- core3/impl/trunk/help-impl/src/main/assembly/javahelp.xml
(rev 0)
+++ core3/impl/trunk/help-impl/src/main/assembly/javahelp.xml 2012-05-08
20:44:24 UTC (rev 29156)
@@ -0,0 +1,16 @@
+<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>javahelp</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}/docbkx/javahelp</directory>
+ <outputDirectory>/</outputDirectory>
+ <fileMode>0644</fileMode>
+ </fileSet>
+ </fileSets>
+</assembly>
Added: core3/impl/trunk/help-impl/src/main/assembly/pdf.xml
===================================================================
--- core3/impl/trunk/help-impl/src/main/assembly/pdf.xml
(rev 0)
+++ core3/impl/trunk/help-impl/src/main/assembly/pdf.xml 2012-05-08
20:44:24 UTC (rev 29156)
@@ -0,0 +1,16 @@
+<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>pdf</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}/docbkx/pdf</directory>
+ <outputDirectory>/</outputDirectory>
+ <fileMode>0644</fileMode>
+ </fileSet>
+ </fileSets>
+</assembly>
Added: core3/impl/trunk/help-impl/src/main/pdf/manual.pdf
===================================================================
(Binary files differ)
Property changes on: core3/impl/trunk/help-impl/src/main/pdf/manual.pdf
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: core3/impl/trunk/help-impl/xsl/add_id_to_section.xsl
===================================================================
--- core3/impl/trunk/help-impl/xsl/add_id_to_section.xsl
(rev 0)
+++ core3/impl/trunk/help-impl/xsl/add_id_to_section.xsl 2012-05-08
20:44:24 UTC (rev 29156)
@@ -0,0 +1,19 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="copy.xsl"/>
+
+<xsl:output method="xml" version="1.0" encoding="UTF-8"/>
+
+<xsl:template match="section">
+ <xsl:element name="section" use-attribute-sets="create-id">
+ <xsl:apply-templates/>
+ </xsl:element>
+</xsl:template>
+
+<xsl:attribute-set name="create-id">
+ <xsl:attribute name="id">
+ <xsl:value-of select="title"/>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+</xsl:stylesheet>
Added: core3/impl/trunk/help-impl/xsl/copy.xsl
===================================================================
--- core3/impl/trunk/help-impl/xsl/copy.xsl (rev 0)
+++ core3/impl/trunk/help-impl/xsl/copy.xsl 2012-05-08 20:44:24 UTC (rev
29156)
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:template match="node( ) | @*">
+ <xsl:copy>
+ <xsl:apply-templates select="@* | node( )"/>
+ </xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet>
+
+
Added: core3/impl/trunk/help-impl/xsl/docbook-xsl-1.75.2.zip
===================================================================
(Binary files differ)
Property changes on: core3/impl/trunk/help-impl/xsl/docbook-xsl-1.75.2.zip
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: core3/impl/trunk/help-impl/xsl/filter_index.xsl
===================================================================
--- core3/impl/trunk/help-impl/xsl/filter_index.xsl
(rev 0)
+++ core3/impl/trunk/help-impl/xsl/filter_index.xsl 2012-05-08 20:44:24 UTC
(rev 29156)
@@ -0,0 +1,10 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="copy.xsl"/>
+
+<xsl:output method="xml" version="1.0" encoding="UTF-8"/>
+
+<!-- filter out the index view since we don't create index information -->
+<xsl:template match="view[name='Index']"/>
+
+</xsl:stylesheet>
Added: core3/impl/trunk/help-impl/xsl/remove_revision_history.xsl
===================================================================
--- core3/impl/trunk/help-impl/xsl/remove_revision_history.xsl
(rev 0)
+++ core3/impl/trunk/help-impl/xsl/remove_revision_history.xsl 2012-05-08
20:44:24 UTC (rev 29156)
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="copy.xsl"/>
+
+<xsl:output method="xml" version="1.0" encoding="UTF-8"/>
+
+<xsl:template match="revhistory"/>
+
+</xsl:stylesheet>
+
+
Added: core3/impl/trunk/help-impl/xsl/strip_images.xsl
===================================================================
--- core3/impl/trunk/help-impl/xsl/strip_images.xsl
(rev 0)
+++ core3/impl/trunk/help-impl/xsl/strip_images.xsl 2012-05-08 20:44:24 UTC
(rev 29156)
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0"
+ xmlns="http://www.cs.rpi.edu/HTML"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:ns1="http://www.w3.org/1999/xlink"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ >
+<xsl:output method='text' version='1.0' encoding='UTF-8' indent='yes'/>
+
+
+
+
+
+<xsl:template match="/">
+<xsl:text><?xml version="1.0"?>
+<project name="ImageStrip" default="strip">
+<target name="strip">
+</xsl:text>
+ <xsl:apply-templates
select="//inlinemediaobject/imageobject/imagedata"/>
+<xsl:text>
+</target>
+</project>
+</xsl:text>
+</xsl:template>
+
+<xsl:template match="inlinemediaobject/imageobject/imagedata">
+ <get src="<xsl:value-of select="@fileref"/>" dest="<xsl:value-of
select="@fileref"/>" ignoreerrors="yes" usetimestamp="yes"/>
+<xsl:text>
+</xsl:text>
+</xsl:template>
+
+</xsl:stylesheet>
+
+
Modified: core3/impl/trunk/pom.xml
===================================================================
--- core3/impl/trunk/pom.xml 2012-05-08 20:43:56 UTC (rev 29155)
+++ core3/impl/trunk/pom.xml 2012-05-08 20:44:24 UTC (rev 29156)
@@ -48,6 +48,7 @@
<module>sbml-impl</module>
<module>search-impl</module>
<module>session-impl</module>
+ <module>help-impl</module>
<module>swing-application-impl</module>
<module>table-browser-impl</module>
<module>table-import-impl</module>
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.