Page: http://wiki.cocoondev.org/Wiki.jsp?page=Max_X , version: 1 on Fri Jun 27 08:33:59 2003 by Max_X
New page created: + Developer of WebApplications + Page: http://wiki.cocoondev.org/Wiki.jsp?page=OpenOfficeGeneration , version: 8 on Fri Jun 27 08:09:43 2003 by 213.24.24.92 + I've copy the files 'common.xsl style_inlined.xsl table_cells.xsl table_rows.xsl + global_document.xsl main_html.xsl style_header.xsl style_mapping.xsl table_columns.xsl table.xsl' from $OO_HOME/share/xslt/xhtml in my directory /implements/xsl \\ + And edit the 'main_html.xsl':\\ + a. set the following variables\\ + <xsl:variable name="office:meta-file" select="/office:document/office:document-meta"/>\\ + <xsl:variable name="office:styles-file" select="/office:document/office:document-styles"/>\\ + <xsl:variable name="office:font-decls" select="$office:styles-file/office:font-decls"/>\\ + <xsl:variable name="office:styles" select="$office:styles-file/office:styles"/>\\ + b. edit all '/*/office:body' entries to '/office:document/*/office:body', \\ + all '$office:meta-file/*' to '$office:meta-file' \\ + in all the .xsl files, edit:\\ + all '/*/office:body' to '/office:document/*/office:body'\\ + Edit the style_headers.xsl:\\ + edit the\\ + <xsl:template name='create-css-styleheader'>\\ + <xsl:comment>\\ + <xsl:text>The CSS style header method for setting styles</xsl:text>\\ + </xsl:comment>\\ + <xsl:element name="style">\\ + <xsl:attribute name="type">text/css</xsl:attribute>\\ + <xsl:comment>\\ + <xsl:text>\\ + + </xsl:text>\\ + ...\\ + to\\ + <xsl:template name='create-css-styleheader'>\\ + <xsl:comment>\\ + <xsl:text>The CSS style header method for setting styles</xsl:text>\\ + </xsl:comment>\\ + <xsl:element name="style">\\ + <xsl:attribute name="type">text/css</xsl:attribute>\\ + <xsl:comment>\\ + <xsl:text>\\ + BODY { background-repeat: no-repeat }\\ + </xsl:text>\\ + ...\\ + <!-- additional for styles --> + <map:part src="jar:http://web/implements/sxw/{1}.sxw!/styles.xml"/> + <!-- for using the standard OO transformation --> + <map:transform src="xsl/main_html.xsl"> + <map:parameter name="metaFileURL" value="http://web/implements/sxw/{1}/meta.xml"/> + <map:parameter name="stylesFileURL" value="http://web/implements/sxw/{1}/styles.xml"/> + <map:parameter name="absoluteSourceDirRef" value="http://web/implements/sxw/{1}.sxw"/> + <map:parameter name="jaredRootURL" value="http://web/implements/sxw/{1}"/> + </map:transform> + + <!-- Uncomment this, and comment previous if you want to use html.oowriter.xsl insead of standard OO transformation - <map:transform src="xsl/html.oowriter.xsl"/> + <map:transform src="xsl/html.oowriter.xsl"/> --> ? + ++++ + <!-- additional for xml reading --> + <map:match pattern="sxw/*/**.xml"> + <map:read src="jar:http://web/implements/sxw/{1}.sxw!/{2}.xml" mime-type="text/plain"/> + </map:match> + <!-- additional for images --> + <map:match pattern="sxw/*/Pictures/*.png"> + <map:read src="jar:http://web/implements/sxw/{1}.sxw!/Pictures/{2}.png" mime-type="image/png"/> + </map:match> + + <map:match pattern="sxw/*/**.xml"> + <map:read src="jar:http://10.10.5.100/implements/sxw/{1}.sxw!/{2}.xml" mime-type="text/plain"/> + </map:match> + + <map:match pattern="sxw/*.sxw"> + <map:read src="sxw/{1}.sxw" mime-type="application/zip"/> + </map:match> +
