cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gree...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xslt XSLTProcessor.java
Date Thu, 08 Mar 2001 23:05:08 GMT
greenrd     01/03/08 15:05:08

  Modified:    .        changes.xml
               src/org/apache/cocoon/processor/xslt XSLTProcessor.java
  Log:
  recognition of text/xml and application/xml as valid stylesheet mime types
  
  Revision  Changes    Path
  1.221     +5 -1      xml-cocoon/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/changes.xml,v
  retrieving revision 1.220
  retrieving revision 1.221
  diff -u -r1.220 -r1.221
  --- changes.xml	2001/03/08 11:55:21	1.220
  +++ changes.xml	2001/03/08 23:05:07	1.221
  @@ -4,7 +4,7 @@
   
   <!--
     History of Cocoon changes   
  -  $Id: changes.xml,v 1.220 2001/03/08 11:55:21 greenrd Exp $ 
  +  $Id: changes.xml,v 1.221 2001/03/08 23:05:07 greenrd Exp $ 
   -->
   
   <changes title="History of Changes">
  @@ -18,6 +18,10 @@
     </devs>
   
    <release version="@version@" date="@date@">
  +  <action dev="RDG" type="update" due-to="Eric A. Sirois" due-to-email="easirois@hotmail.com">
  +   XSLTProcessor now recognises text/xml and application/xml mime-types in <?xml-stylesheet?>
PIs
  +   as stylesheets, not just text/xsl.
  +  </action>
     <action dev="RDG" type="fix">
      Caching memory wastage fixes for XIncludeProcessor and ProducerFromFile (identical to
the XSLTProcessor
      bug fix in a previous version). These bugs could theoretically have caused OutOfMemoryErrors,
so
  
  
  
  1.31      +4 -3      xml-cocoon/src/org/apache/cocoon/processor/xslt/XSLTProcessor.java
  
  Index: XSLTProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xslt/XSLTProcessor.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- XSLTProcessor.java	2001/03/08 10:52:37	1.30
  +++ XSLTProcessor.java	2001/03/08 23:05:08	1.31
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSLTProcessor.java,v 1.30 2001/03/08 10:52:37 greenrd Exp $ --
  +/*-- $Id: XSLTProcessor.java,v 1.31 2001/03/08 23:05:08 greenrd Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -75,7 +75,7 @@
    * This class implements an XSLT processor.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.30 $ $Date: 2001/03/08 10:52:37 $
  + * @version $Revision: 1.31 $ $Date: 2001/03/08 23:05:08 $
    */
   
   public class XSLTProcessor implements Actor, Processor, Status, Defaults, Cacheable {
  @@ -195,7 +195,8 @@
               Hashtable attributes = Utils.getPIPseudoAttributes((ProcessingInstruction)
pis.nextElement());
   
               String type = (String) attributes.get("type");
  -            if ((type != null) && (type.equals("text/xsl"))) {
  +            if ((type != null) && (type.equals("text/xsl") || type.equals ("text/xml")
|| 
  +                                   type.equals ("application/xml"))) {
                   String url = (String) attributes.get("href");
                   if (url != null) {
                       Object local = null;
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message