[Vim-latex-cvs] SF.net SVN: vim-latex: [1036] trunk/vimfiles/doc
Brought to you by:
srinathava,
tmaas
From: <tm...@us...> - 2008-05-31 16:10:33
|
Revision: 1036 http://vim-latex.svn.sourceforge.net/vim-latex/?rev=1036&view=rev Author: tmaas Date: 2008-05-31 09:10:30 -0700 (Sat, 31 May 2008) Log Message: ----------- - Add new Makefile to create documentation with xsltproc - Update xsl imports to use the public http uris for the docbook xsl files. This makes it use the system xsl files when they are installed or downloads them otherwise when using xsltproc. This breaks currently breaks the creation of documentation with saxon, because it does not use system xsl files by default, http://sagehill.net/docbookxsl/UseCatalog.html explains how to probably fix this, i.e. make it use a catalog file - Add a catalog file to easily use a locally copy of the docbook xsl files Modified Paths: -------------- trunk/vimfiles/doc/latex-suite-chunk.xsl trunk/vimfiles/doc/latex-suite.xsl Added Paths: ----------- trunk/vimfiles/doc/Makefile trunk/vimfiles/doc/catalog.xml Added: trunk/vimfiles/doc/Makefile =================================================================== --- trunk/vimfiles/doc/Makefile (rev 0) +++ trunk/vimfiles/doc/Makefile 2008-05-31 16:10:30 UTC (rev 1036) @@ -0,0 +1,60 @@ +projects = latex-suite latex-suite-quickstart +htmlfiles = $(addsuffix .html, $(projects)) +txtfiles = $(addsuffix .txt, $(projects)) +cssfiles = $(addsuffix .css, $(projects)) +all = $(projects) $(htmlfiles) $(cssfiles) $(txtfiles) + + +xsltproc=xsltproc +dbv2im=../../db2vim/db2vim + +# Use for debugging: +#xsltproc=trace -e trace=file xsltproc --nonet --load-trace +# export XML_DEBUG_CATALOG = 1 + +# Specify local catalog to not use system installed dtd/xsl files +# export XML_CATALOG_FILES=catalog.xml + +# User configuration of this Makefile goes into Makefile.local +# E.g. to use a catalog file installed by the user. +-include Makefile.local + +# Default Target is to create all documentation files +all: $(all) + +# create multi page html (chunk xhtml) +$(projects): %: %.xml latex-suite-chunk.xsl latex-suite-common.xsl + $(xsltproc) -o $@/ latex-suite-chunk.xsl $< + +# create single html files +$(htmlfiles): %.html: %.xml latex-suite.xsl latex-suite-common.xsl + $(xsltproc) -o $@ latex-suite.xsl $< + +# create vim flat files +latex-suite.txt: %.txt: %.xml + $(db2vim) --prefix=ls_ $< > $@ + +latex-suite-quickstart.txt: %.txt: %.xml + $(db2vim) --prefix=lq_ $< > $@ + +# validate xml +validate: + for file in *.xml; do \ + xmllint --valid --noout $$file; \ + done + +clean: + rm -f $(htmlfiles) + rm -rf $(projects) + +# $(txtfiles) are currently in revision control, therefore they are not +# removed in the clean target +mr-proper: clean + rm -f $(txtfiles) + +upload: $(all) + rsync --delete -lrtvz $(all) shell.sourceforge.net:/home/groups/v/vi/vim-latex/htdocs/documentation/ +# Make sure that directories are group writeable, depends on bash beeing the remote shell + ssh shell.sourceforge.net chmod g+w "/home/groups/v/vi/vim-latex/htdocs/documentation/latex-suite{,-quickstart}" + +# vim:nowrap Added: trunk/vimfiles/doc/catalog.xml =================================================================== --- trunk/vimfiles/doc/catalog.xml (rev 0) +++ trunk/vimfiles/doc/catalog.xml 2008-05-31 16:10:30 UTC (rev 1036) @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<!DOCTYPE catalog + PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN" + "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> +<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> + <rewriteSystem + systemIdStartString="http://docbook.sourceforge.net/release/xsl/current" + rewritePrefix="docbook-xsl/"/> + <rewriteURI + uriStartString="http://docbook.sourceforge.net/release/xsl/current/" + rewritePrefix="docbook-xsl/" /> +</catalog> Modified: trunk/vimfiles/doc/latex-suite-chunk.xsl =================================================================== --- trunk/vimfiles/doc/latex-suite-chunk.xsl 2008-05-31 16:04:12 UTC (rev 1035) +++ trunk/vimfiles/doc/latex-suite-chunk.xsl 2008-05-31 16:10:30 UTC (rev 1036) @@ -6,7 +6,7 @@ <!-- $Id$ --> - <xsl:import href="docbook-xsl/xhtml/chunk.xsl"/> + <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/> <!-- import common customizations --> <xsl:import href="latex-suite-common.xsl"/> Modified: trunk/vimfiles/doc/latex-suite.xsl =================================================================== --- trunk/vimfiles/doc/latex-suite.xsl 2008-05-31 16:04:12 UTC (rev 1035) +++ trunk/vimfiles/doc/latex-suite.xsl 2008-05-31 16:10:30 UTC (rev 1036) @@ -6,7 +6,7 @@ <!-- $Id$ --> - <xsl:import href="docbook-xsl/xhtml/docbook.xsl"/> + <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/> <!-- import common customizations --> <xsl:import href="latex-suite-common.xsl"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |