You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@apache.org on 2001/12/13 18:38:39 UTC

cvs commit: xml-xalan/test/java/src/org/apache/qetest/xsl StylesheetTestlet.java

curcuru     01/12/13 09:38:39

  Modified:    test/java/src/org/apache/qetest/xsl StylesheetTestlet.java
  Log:
  Have fileref element include a baseref for use in viewResults.xsl
  
  Revision  Changes    Path
  1.8       +8 -2      xml-xalan/test/java/src/org/apache/qetest/xsl/StylesheetTestlet.java
  
  Index: StylesheetTestlet.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/java/src/org/apache/qetest/xsl/StylesheetTestlet.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StylesheetTestlet.java	2001/12/10 21:18:58	1.7
  +++ StylesheetTestlet.java	2001/12/13 17:38:39	1.8
  @@ -93,7 +93,7 @@
    * subclassing easier for alternate testing algoritims.
    *
    * @author Shane_Curcuru@lotus.com
  - * @version $Id: StylesheetTestlet.java,v 1.7 2001/12/10 21:18:58 curcuru Exp $
  + * @version $Id: StylesheetTestlet.java,v 1.8 2001/12/13 17:38:39 curcuru Exp $
    */
   public class StylesheetTestlet extends TestletImpl
   {
  @@ -278,12 +278,18 @@
                                    getDescription() + " " + datalet.getDescription())
              )
           {
  -            // Log a custom element with all the file refs first
  +            // Log a custom element with all the file refs
               // Closely related to viewResults.xsl select='fileref"
               //@todo check that these links are valid when base 
               //  paths are either relative or absolute!
               Hashtable attrs = new Hashtable();
               attrs.put("idref", (new File(datalet.inputName)).getName());
  +            try
  +            {
  +                attrs.put("baseref", System.getProperty("user.dir"));
  +            } 
  +            catch (Exception e) { /* no-op, ignore */ }
  +            
               attrs.put("inputName", datalet.inputName);
               attrs.put("xmlName", datalet.xmlName);
               attrs.put("outputName", datalet.outputName);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org