jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-taglibs/xtags/xml xtags.xml
Date Mon, 26 Nov 2001 17:50:38 GMT
jstrachan    01/11/26 09:50:38

  Modified:    xtags/src/org/apache/taglibs/xtags/xslt ParamTag.java
                        StyleTag.java
               xtags/xml xtags.xml
  Added:       xtags/examples/web/test/xslt dummy.jsp dummy.xml dummy.xsl
  Log:
  Added patch to bug found by Tobias Himstedt that the <xtags:style> tag could
not accept variables of type Object. Added Tobias' test case to examples/web/test/xslt which
demonstrate it now working.
  
  Revision  Changes    Path
  1.1                  jakarta-taglibs/xtags/examples/web/test/xslt/dummy.jsp
  
  Index: dummy.jsp
  ===================================================================
  <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
  <html>
  <%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0" prefix="xtags" %>
  <%-- 
      Simple use of <xtags:style> tag
  --%>
  <body>
  <p>Test of &lt;xtags:style&gt; tag taking a Java object.</p>
  <hr>
  <xtags:style xml="dummy.xml" xsl="dummy.xsl">
    <xtags:param name="response" value="<%= response %>"/>
  </xtags:style>
  </body>
  </html>
  
  
  
  
  
  1.1                  jakarta-taglibs/xtags/examples/web/test/xslt/dummy.xml
  
  Index: dummy.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <test>abcde</test>
  
  
  1.1                  jakarta-taglibs/xtags/examples/web/test/xslt/dummy.xsl
  
  Index: dummy.xsl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet version="1.0" 
  	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  	xmlns:java="http://xml.apache.org/xslt/java"
  >
  
  
  <xsl:param name="response"/>
  <xsl:template match="test">
  	
  	<a>
  		<xsl:attribute name="href">
  			<xsl:value-of select="java:encodeURL($response, 'encoded link')"/>			
  			<!--
  			unencoded link
  			-->
  		</xsl:attribute>		
  		<xsl:value-of select="."/>
  	</a>
  	
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.3       +1 -0      jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/ParamTag.java
  
  Index: ParamTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/ParamTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ParamTag.java	2001/11/23 09:42:09	1.2
  +++ ParamTag.java	2001/11/26 17:50:38	1.3
  @@ -123,6 +123,7 @@
       }
       
       public void setValue(Object value) {
  +        System.out.println( "Setting the value to be of type: " + value.getClass() );
           this.value = value;
       }
   
  
  
  
  1.8       +1 -1      jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/StyleTag.java
  
  Index: StyleTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/StyleTag.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StyleTag.java	2001/11/23 09:42:09	1.7
  +++ StyleTag.java	2001/11/26 17:50:38	1.8
  @@ -304,7 +304,7 @@
               for ( Iterator iter = parameters.entrySet().iterator(); iter.hasNext(); ) {
                   Map.Entry entry = (Map.Entry) iter.next();
                   String name = entry.getKey().toString();
  -                String value = entry.getValue().toString();
  +                Object value = entry.getValue();
                   transformer.setParameter( name, value );
               }
           }
  
  
  
  1.16      +6 -0      jakarta-taglibs/xtags/xml/xtags.xml
  
  Index: xtags.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/xtags/xml/xtags.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- xtags.xml	2001/11/09 17:59:15	1.15
  +++ xtags.xml	2001/11/26 17:50:38	1.16
  @@ -1381,6 +1381,12 @@
     </tagtoc>
   </taglib>
   
  +<revision release="Patches" date="11/26/2001">
  +  <description>
  +    Added patch to bug found by Tobias Himstedt that the &lt;xtags:style&gt; tag
could not accept variables of type Object. Added Tobias' test case to examples/web/test/xslt
which demonstrate it now working.
  +  </description>
  +</revision>
  +
   <revision release="Patches" date="11/09/2001">
     <description>
       Upgraded XTags to support dom4j 1.1 or later. Also added full support
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message