Просмотр исходного кода

Copyright update/cleanup

[SVN r25210]
Aleksey Gurtovoy 21 лет назад
Родитель
Сommit
dafb40e3eb

+ 5 - 9
tools/regression/xsl_reports/xsl/add_expected_results.xsl

@@ -1,15 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
- (C) Copyright MetaCommunications, Inc. 2003.
-
- Permission to use, copy, modify, distribute and sell this software
- and its documentation for any purpose is hereby granted without fee, 
- provided that the above copyright notice appears in all copies and 
- that both the copyright notice and this permission notice appear in 
- supporting documentation. No representations are made about the 
- suitability of this software for any purpose. It is provided "as is" 
- without express or implied warranty.
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 5 - 5
tools/regression/xsl_reports/xsl/common.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 0 - 105
tools/regression/xsl_reports/xsl/exslt/functions/replace/str.replace.function.xsl

@@ -1,105 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet version="1.0"
-                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                xmlns:str="http://exslt.org/strings"
-                xmlns:func="http://exslt.org/functions"
-                xmlns:exsl="http://exslt.org/common"
-                extension-element-prefixes="str exsl func">
-
-<func:function name="str:replace">
-	<xsl:param name="string" select="''" />
-   <xsl:param name="search" select="/.." />
-   <xsl:param name="replace" select="/.." />
-   <xsl:choose>
-      <xsl:when test="not($string)">
-        <func:result select="/.." />
-      </xsl:when>
-      <xsl:when test="function-available('exsl:node-set')">
-         <!-- this converts the search and replace arguments to node sets
-              if they are one of the other XPath types -->
-         <xsl:variable name="search-nodes-rtf">
-           <xsl:copy-of select="$search" />
-         </xsl:variable>
-         <xsl:variable name="replace-nodes-rtf">
-           <xsl:copy-of select="$replace" />
-         </xsl:variable>
-         <xsl:variable name="replacements-rtf">
-            <xsl:for-each select="exsl:node-set($search-nodes-rtf)/node()">
-               <xsl:variable name="pos" select="position()" />
-               <replace search="{.}">
-                  <xsl:copy-of select="exsl:node-set($replace-nodes-rtf)/node()[$pos]" />
-               </replace>
-            </xsl:for-each>
-         </xsl:variable>
-         <xsl:variable name="sorted-replacements-rtf">
-            <xsl:for-each select="exsl:node-set($replacements-rtf)/replace">
-               <xsl:sort select="string-length(@search)" data-type="number" order="descending" />
-               <xsl:copy-of select="." />
-            </xsl:for-each>
-         </xsl:variable>
-         <xsl:variable name="result">
-           <xsl:choose>
-              <xsl:when test="not($search)">
-                <xsl:value-of select="$string" />
-              </xsl:when>
-             <xsl:otherwise>
-               <xsl:call-template name="str:_replace">
-                  <xsl:with-param name="string" select="$string" />
-                  <xsl:with-param name="replacements" select="exsl:node-set($sorted-replacements-rtf)/replace" />
-               </xsl:call-template>
-             </xsl:otherwise>
-           </xsl:choose>
-         </xsl:variable>
-         <func:result select="exsl:node-set($result)/node()" />
-      </xsl:when>
-      <xsl:otherwise>
-         <xsl:message terminate="yes">
-            ERROR: function implementation of str:replace() relies on exsl:node-set().
-         </xsl:message>
-      </xsl:otherwise>
-   </xsl:choose>
-</func:function>
-
-<xsl:template name="str:_replace">
-  <xsl:param name="string" select="''" />
-  <xsl:param name="replacements" select="/.." />
-  <xsl:choose>
-    <xsl:when test="not($string)" />
-    <xsl:when test="not($replacements)">
-      <xsl:value-of select="$string" />
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:variable name="replacement" select="$replacements[1]" />
-      <xsl:variable name="search" select="$replacement/@search" />
-      <xsl:choose>
-        <xsl:when test="not(string($search))">
-          <xsl:value-of select="substring($string, 1, 1)" />
-          <xsl:copy-of select="$replacement/node()" />
-          <xsl:call-template name="str:_replace">
-            <xsl:with-param name="string" select="substring($string, 2)" />
-            <xsl:with-param name="replacements" select="$replacements" />
-          </xsl:call-template>
-        </xsl:when>
-        <xsl:when test="contains($string, $search)">
-          <xsl:call-template name="str:_replace">
-            <xsl:with-param name="string" select="substring-before($string, $search)" />
-            <xsl:with-param name="replacements" select="$replacements[position() > 1]" />
-          </xsl:call-template>      
-          <xsl:copy-of select="$replacement/node()" />
-          <xsl:call-template name="str:_replace">
-            <xsl:with-param name="string" select="substring-after($string, $search)" />
-            <xsl:with-param name="replacements" select="$replacements" />
-          </xsl:call-template>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:call-template name="str:_replace">
-            <xsl:with-param name="string" select="$string" />
-            <xsl:with-param name="replacements" select="$replacements[position() > 1]" />
-          </xsl:call-template>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:otherwise>
-  </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>

+ 0 - 4
tools/regression/xsl_reports/xsl/exslt/functions/replace/str.replace.xsl

@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:func="http://exslt.org/functions" xmlns:str="http://exslt.org/strings" version="1.0" extension-element-prefixes="str" str:doc="http://www.exslt.org/str">
-   <import href="str.replace.function.xsl"/>
-</stylesheet>

+ 0 - 4
tools/regression/xsl_reports/xsl/exslt/str.xsl

@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:str="http://exslt.org/Strings" version="1.0" extension-element-prefixes="str" str:doc="http://www.exslt.org/str">
-   <import href="functions/replace/str.replace.xsl"/>
-</stylesheet>

+ 5 - 5
tools/regression/xsl_reports/xsl/issues_page.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 5 - 5
tools/regression/xsl_reports/xsl/links_page.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 10 - 0
tools/regression/xsl_reports/xsl/produce_expected_results.xsl

@@ -1,4 +1,14 @@
 <?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+
+-->
+
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version="1.0">
 

+ 5 - 5
tools/regression/xsl_reports/xsl/result_page.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 5 - 5
tools/regression/xsl_reports/xsl/summary_page.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 10 - 0
tools/regression/xsl_reports/xsl/test/test_re_match.xml

@@ -1,3 +1,13 @@
+<!--
+
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+
+-->
+
 <root>
 
 <test pattern="" text="" />

+ 5 - 5
tools/regression/xsl_reports/xsl/test/test_re_match.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 5 - 9
tools/regression/xsl_reports/xsl/v2/add_expected_results.xsl

@@ -1,15 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
- (C) Copyright MetaCommunications, Inc. 2003.
-
- Permission to use, copy, modify, distribute and sell this software
- and its documentation for any purpose is hereby granted without fee, 
- provided that the above copyright notice appears in all copies and 
- that both the copyright notice and this permission notice appear in 
- supporting documentation. No representations are made about the 
- suitability of this software for any purpose. It is provided "as is" 
- without express or implied warranty.
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 5 - 5
tools/regression/xsl_reports/xsl/v2/common.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 5 - 5
tools/regression/xsl_reports/xsl/v2/issues_page.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 5 - 5
tools/regression/xsl_reports/xsl/v2/links_page.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 10 - 0
tools/regression/xsl_reports/xsl/v2/produce_expected_results.xsl

@@ -1,4 +1,14 @@
 <?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+
+-->
+
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version="1.0">
 

+ 5 - 5
tools/regression/xsl_reports/xsl/v2/result_page.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 10 - 0
tools/regression/xsl_reports/xsl/v2/runners.xsl

@@ -1,4 +1,14 @@
 <?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+
+-->
+
 <xsl:stylesheet 
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:exsl="http://exslt.org/common"

+ 5 - 5
tools/regression/xsl_reports/xsl/v2/summary_page.xsl

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

粤ICP备19079148号