mistake entity (was: filename)

Naoki Shigematsu sigematu at impress.co.jp
Sun Nov 30 19:54:00 UTC 2003


Hi,

> >RCS file: 
> >/usr/local/CVS/fedora-docs/install-guide/fedora-install-guide-en.xml,v
> >retrieving revision 1.1
> >diff -r1.1 fedora-install-guide-en.xml
> >12c12
> >< <!ENTITY LEGALNOTICE SYSTEM "../common/legalnotice.xml">
> 
> Would a net address be easier,

Sure -- It seems to be better to use Content Negotiation.
Example:
	index.html.en
	index.html.ja
	index.html.de

Although it is not a not good way,

It is realizable if a docbook html template is changed.
It is necessary to also change fedora-docs/*/Makefile.

It is as follows if it does by this method.

developers-guide/*.html.en
                 *.html.ja
                 *.html.de

Other ideas?

[/usr/share/xmlto/format/docbook/html]
==
--- html.default        2003-12-01 03:05:46.000000000 +0900
+++ html        2003-12-01 04:47:33.000000000 +0900
@@ -7,6 +7,11 @@
   echo "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"
   ;;
 post-process)
-  cp -- * "$OUTPUT_DIR"
+  if [ ! -z "$LANG" ]
+  then
+    for i in *; do
+      cp -- $i "$OUTPUT_DIR"/$i.$LANG
+    done
+  fi
   ;;
 esac

[$FEDORA-DOCS/*/Makefile]
==
--- Makefile.default    2003-11-22 07:39:22.000000000 +0900
+++ Makefile    2003-12-01 04:03:34.000000000 +0900
@@ -10,8 +10,9 @@
 XSLPDF         = ../xsl/main-pdf.xsl
 XSLHTML        = ../xsl/main-html.xsl
 LANG           = en
-DOCNAME        = developers-guide-$(LANG)
-XMLFILE        = $(DOCNAME).xml
+#DOCNAME        = developers-guide-$(LANG)
+DOCNAME        = developers-guide
+XMLFILE        = $(DOCNAME)-$(LANG).xml


 ######################################################
 html:

--
Naoki Shigematsu





More information about the fedora-docs-list mailing list