press-release fdp-pr-en.xml, 1.1, 1.2 fdp-pr.dtd, 1.2, 1.3 fdp-pr.xsl, 1.3, 1.4

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Fri Mar 10 03:43:48 UTC 2006


Author: jtr

Update of /cvs/docs/press-release
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31067

Modified Files:
	fdp-pr-en.xml fdp-pr.dtd fdp-pr.xsl 
Log Message:
Added explicit <dateline> entity, allowing the effective date of the
press release to be explicitly set.  It is expected that the
<dateline> element will be used only as the first item in the very
first paragraph, but the DTD does not enforce this.

The generated TXT and PDF still shows the actual formatting date.



Index: fdp-pr-en.xml
===================================================================
RCS file: /cvs/docs/press-release/fdp-pr-en.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- fdp-pr-en.xml	7 Feb 2006 15:04:50 -0000	1.1
+++ fdp-pr-en.xml	10 Mar 2006 03:43:40 -0000	1.2
@@ -6,6 +6,10 @@
   </source>
   <header>A Section</header>
   <para>
+    <dateline>
+      <location>Anytown, USA</location>
+      <date format="dd-mmm-yyyy">09-MAR-2006</date>
+    </dateline>
     Veniam ut wisi tation et delenit
     <ulink url="www.redhat.com/promo/summit/"/>.
   </para>


Index: fdp-pr.dtd
===================================================================
RCS file: /cvs/docs/press-release/fdp-pr.dtd,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- fdp-pr.dtd	7 Feb 2006 17:30:59 -0000	1.2
+++ fdp-pr.dtd	10 Mar 2006 03:43:40 -0000	1.3
@@ -7,7 +7,7 @@
 <!ATTLIST fdp-pr	kind		CDATA	"PRESS RELEASE"			>
 <!ELEMENT source			(#PCDATA)				>
 
-<!ELEMENT para				(#PCDATA|ulink)*			>
+<!ELEMENT para				(#PCDATA|ulink|dateline)*	 >
 <!ELEMENT header			(#PCDATA)				>
 
 <!ELEMENT list				(item+)					>
@@ -15,4 +15,10 @@
 <!ELEMENT item				(#PCDATA|ulink)*			>
 
 <!ELEMENT ulink				EMPTY					>
-<!ATTLIST ulink		url		CDATA			#REQUIRED	>
\ No newline at end of file
+<!ATTLIST ulink		url		CDATA			#REQUIRED	>
+
+<!ELEMENT dateline                     (location,date)                 >
+<!ELEMENT location                      (#PCDATA)                      >
+<!ELEMENT date                          (#PCDATA)                      >
+<!ATTLIST date          format          (iso|dd-mmm-yyyy|mmddyyyy)
+                                                #REQUIRED  >
\ No newline at end of file


Index: fdp-pr.xsl
===================================================================
RCS file: /cvs/docs/press-release/fdp-pr.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- fdp-pr.xsl	10 Feb 2006 00:43:01 -0000	1.3
+++ fdp-pr.xsl	10 Mar 2006 03:43:40 -0000	1.4
@@ -88,6 +88,14 @@
       <xsl:apply-templates/>
     </fo:block>
   </xsl:template>
+  <xsl:template match="dateline">
+    <fo:inline font-weight="bold">
+      <xsl:value-of select="location"/>
+      <xsl:text>; </xsl:text>
+      <xsl:value-of select="date"/>
+      <xsl:text>.  </xsl:text>
+    </fo:inline>
+  </xsl:template>
   <xsl:template match="ulink">
     <fo:inline font-weight="bold">
       <xsl:value-of select="@url"/>




More information about the Fedora-docs-commits mailing list