You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by je...@apache.org on 2003/05/06 02:54:02 UTC
cvs commit: xml-forrest/src/resources/stylesheets faqv20tofaqv12.xsl
jefft 2003/05/05 17:54:02
Modified: src/resources/conf faq.xmap
src/resources/schema catalog catalog.xcat
Added: src/resources/schema/dtd/v20a faq-v20.dtd faq-v20.mod
src/resources/stylesheets faqv20tofaqv12.xsl
Log:
New faq-v20 doctype. Has <part> renamed to <faqsection>, and the <faqs> @title has become a nested element
Revision Changes Path
1.9 +7 -0 xml-forrest/src/resources/conf/faq.xmap
Index: faq.xmap
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/conf/faq.xmap,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- faq.xmap 24 Apr 2003 09:10:32 -0000 1.8
+++ faq.xmap 6 May 2003 00:54:02 -0000 1.9
@@ -18,6 +18,9 @@
<sourcetype name="faq-v12">
<document-declaration public-id="-//APACHE//DTD FAQ V1.2//EN" />
</sourcetype>
+ <sourcetype name="faq-v20a">
+ <document-declaration public-id="-//APACHE//DTD FAQ V2.0a//EN" />
+ </sourcetype>
</map:action>
</map:actions>
@@ -39,6 +42,10 @@
<map:transform src="resources/stylesheets/faq2document.xsl" />
</map:when>
<map:when test="faq-v12">
+ <map:transform src="resources/stylesheets/faq2document.xsl" />
+ </map:when>
+ <map:when test="faq-v20a">
+ <map:transform src="resources/stylesheets/faqv20tofaqv12.xsl" />
<map:transform src="resources/stylesheets/faq2document.xsl" />
</map:when>
<map:otherwise />
1.19 +4 -0 xml-forrest/src/resources/schema/catalog
Index: catalog
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/schema/catalog,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- catalog 5 May 2003 12:49:59 -0000 1.18
+++ catalog 6 May 2003 00:54:02 -0000 1.19
@@ -23,6 +23,10 @@
"dtd/v20a/document-v20.dtd"
PUBLIC "-//APACHE//ENTITIES Documentation V2.0a//EN"
"dtd/v20a/document-v20.mod"
+PUBLIC "-//APACHE//DTD FAQ V2.0a//EN"
+ "dtd/v20a/faq-v20.dtd"
+PUBLIC "-//APACHE//ENTITIES FAQ V2.0a//EN"
+ "dtd/v20a/faq-v20.mod"
-- Old DTDs --
PUBLIC "-//APACHE//DTD Documentation V1.1//EN"
1.17 +4 -0 xml-forrest/src/resources/schema/catalog.xcat
Index: catalog.xcat
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/schema/catalog.xcat,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- catalog.xcat 5 May 2003 12:49:59 -0000 1.16
+++ catalog.xcat 6 May 2003 00:54:02 -0000 1.17
@@ -23,6 +23,10 @@
uri="dtd/v20a/document-v20.dtd"/>
<public publicId="-//APACHE//ENTITIES Documentation V2.0a//EN"
uri="dtd/v20a/document-v20.mod"/>
+<public publicId="-//APACHE//DTD FAQ V2.0a//EN"
+ uri="dtd/v20a/faq-v20.dtd"/>
+<public publicId="-//APACHE//ENTITIES FAQ V2.0a//EN"
+ uri="dtd/v20a/faq-v20.mod"/>
<!-- Old DTDs -->
<public publicId="-//APACHE//DTD Documentation V1.1//EN"
1.1 xml-forrest/src/resources/schema/dtd/v20a/faq-v20.dtd
Index: faq-v20.dtd
===================================================================
<!-- ===================================================================
Apache FAQ DTD (Version 2.0)
PURPOSE:
This DTD was developed to create a simple yet powerful document
type for software FAQ's for use with the Apache projects.
It is an XML-compliant DTD and it's maintained by the Apache XML
project.
TYPICAL INVOCATION:
<!DOCTYPE faqs PUBLIC
"-//APACHE//DTD FAQ Vx.y//EN"
"faq-vxy.dtd">
where
x := major version
y := minor version
NOTES:
FAQs represent a powerful knowledge base and a very good way of solving
common user problems reducing messages on mail lists and reducing the effort
required for software installation and usage. Thid DTD want to be a common
format for FAQ interchange to allow FAQ-O-Matic-type workgroup services to
be published in other formats as well as enhancing data interchange.
AUTHORS:
Stefano Mazzocchi <st...@apache.org>
Jeff Turner <je...@apache.org>
See faq-v20.mod for the ChangeLog
COPYRIGHT:
Copyright (c) 2002-2003 The Apache Software Foundation.
Permission to copy in any form is granted provided this notice is
included in all copies. Permission to redistribute is granted
provided this file is distributed untouched in all its parts and
included files.
==================================================================== -->
<!-- =============================================================== -->
<!-- Include the Documentation DTD -->
<!-- =============================================================== -->
<!ENTITY % document PUBLIC
"-//APACHE//ENTITIES Documentation V2.0a//EN"
"document-v20.mod">
%document;
<!-- =============================================================== -->
<!-- Include the Common ISO Character Entity Sets -->
<!-- =============================================================== -->
<!ENTITY % common-charents PUBLIC
"-//APACHE//ENTITIES Common Character Entity Sets V1.0//EN"
"../common-charents-v10.mod">
%common-charents;
<!-- =============================================================== -->
<!-- Document Type Definition -->
<!-- =============================================================== -->
<!ENTITY % faq PUBLIC
"-//APACHE//ENTITIES FAQ V2.0a//EN"
"faq-v20.mod">
%faq;
<!-- =============================================================== -->
<!-- End of DTD -->
<!-- =============================================================== -->
1.1 xml-forrest/src/resources/schema/dtd/v20a/faq-v20.mod
Index: faq-v20.mod
===================================================================
<!-- ===================================================================
Apache Faq module (Version 2.0)
TYPICAL INVOCATION:
<!ENTITY % faq PUBLIC
"-//APACHE//ENTITIES FAQ Vxy//EN"
"faq-vxy.mod">
%faq;
where
x := major version
y := minor version
NOTES:
AUTHORS:
Steven Noels <st...@apache.org>
FIXME:
CHANGE HISTORY:
[Version 2.0a]
20030506 Changed <part> to <faqsection>
20030506 Changed @title on <faqs> to a nested <title> element
COPYRIGHT:
Copyright (c) 2002 The Apache Software Foundation.
Permission to copy in any form is granted provided this notice is
included in all copies. Permission to redistribute is granted
provided this file is distributed untouched in all its parts and
included files.
==================================================================== -->
<!-- =============================================================== -->
<!-- Element declarations -->
<!-- =============================================================== -->
<!ELEMENT faqs (title?, authors?, (faq|faqsection)+)>
<!ATTLIST faqs %common.att;>
<!ELEMENT faqsection (title, (faq | faqsection)+) >
<!ATTLIST faqsection %common.att;>
<!ELEMENT faq (question, answer)>
<!ATTLIST faq %common.att;>
<!ELEMENT question (%content.mix;|elaboration)*>
<!ATTLIST question %common.att;>
<!ELEMENT elaboration (%content.mix;)*>
<!ATTLIST elaboration %common.att;>
<!ELEMENT answer (%flow;)*>
<!ATTLIST answer author IDREF #IMPLIED>
<!-- =============================================================== -->
<!-- End of DTD -->
<!-- =============================================================== -->
1.1 xml-forrest/src/resources/stylesheets/faqv20tofaqv12.xsl
Index: faqv20tofaqv12.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:preserve-space elements="*" />
<!-- faq-v20x.dtd to faq-v12.dtd transformation -->
<xsl:output doctype-public="-//APACHE//DTD FAQ V1.2//EN" doctype-system="faq-v12.dtd"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="faqs">
<faqs>
<xsl:attribute name="title">
<xsl:value-of select="title"/>
</xsl:attribute>
<xsl:apply-templates/>
</faqs>
</xsl:template>
<xsl:template match="faqs/title"/>
<xsl:template match="faqsection">
<part>
<xsl:apply-templates select="node()|@*"/>
</part>
</xsl:template>
<xsl:template match="a">
<link>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="node()"/>
<xsl:apply-templates/>
</link>
</xsl:template>
<!-- the obligatory copy-everything -->
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>