db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1375441 - in /db/derby/docs/trunk: build.xml lib/map2htmtoc.xsl
Date Tue, 21 Aug 2012 09:17:31 GMT
Author: kahatlen
Date: Tue Aug 21 09:17:29 2012
New Revision: 1375441

URL: http://svn.apache.org/viewvc?rev=1375441&view=rev
Log:
DERBY-5359: Missing xmlns attribute for html element in docs

Modify the style sheets so that they include the xmlns attribute when
generating XHTML output.

Modified:
    db/derby/docs/trunk/build.xml
    db/derby/docs/trunk/lib/map2htmtoc.xsl

Modified: db/derby/docs/trunk/build.xml
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/build.xml?rev=1375441&r1=1375440&r2=1375441&view=diff
==============================================================================
--- db/derby/docs/trunk/build.xml (original)
+++ db/derby/docs/trunk/build.xml Tue Aug 21 09:17:29 2012
@@ -59,6 +59,19 @@ limitations under the License.
     <copy todir="${dita.output.dir}/images">
       <fileset dir="${dita.src.dir}/images"/>
     </copy>
+
+    <!--
+        DERBY-5359: The XSL style sheets don't insert an xmlns
+        attribute in the generated XHTML output. Modify them so that
+        they do insert one.
+    -->
+    <replaceregexp
+        match="^(&lt;xsl:stylesheet) (version)"
+        replace="\1 xmlns=&quot;http://www.w3.org/1999/xhtml&quot; \2"
+        flags="m"
+        encoding="UTF-8">
+      <fileset dir="${dita.dir}/xsl/xslhtml" includes="*.xsl"/>
+    </replaceregexp>
   </target>
 
   <target name="check.dita">

Modified: db/derby/docs/trunk/lib/map2htmtoc.xsl
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/lib/map2htmtoc.xsl?rev=1375441&r1=1375440&r2=1375441&view=diff
==============================================================================
--- db/derby/docs/trunk/lib/map2htmtoc.xsl (original)
+++ db/derby/docs/trunk/lib/map2htmtoc.xsl Tue Aug 21 09:17:29 2012
@@ -2,6 +2,7 @@
 <!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
 
 <xsl:stylesheet version="1.0"
+                xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:saxon="http://icl.com/saxon"
                 extension-element-prefixes="saxon"



Mime
View raw message