From raymond76@example.com  Tue Mar 14 16:49:20 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 43785 invoked from network); 14 Mar 2000 16:49:20 -0000
Received: from nic.cafax.se (raymond76@example.com)
  by locus.apache.org with SMTP; 14 Mar 2000 16:49:20 -0000
Received: (from dirkx@localhost)
        by nic.cafax.se (8.9.1a/8.9.1)
        id RAA05421 for raymond76@example.com;
        Tue, 14 Mar 2000 17:49:17 +0100 (MET)
Date: Tue, 14 Mar 2000 17:49:17 +0100 (MET)
From: Dirk-Willem van Gulik <raymond76@example.com>
Message-Id: <raymond76@example.com>
To: raymond76@example.com
Subject: test to cvs
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

done

From raymond76@example.com  Tue Mar 14 17:22:04 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 68678 invoked by uid 500); 14 Mar 2000 17:22:04 -0000
Delivered-To: raymond76@example.com
Received: (qmail 68665 invoked by uid 1011); 14 Mar 2000 17:22:03 -0000
Date: 14 Mar 2000 17:22:03 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: test


From raymond76@example.com  Tue Mar 14 17:24:25 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 72470 invoked by uid 1011); 14 Mar 2000 17:24:25 -0000
Date: 14 Mar 2000 17:24:25 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang License

dirkx       00/03/14 09:24:25

  Modified:    .        License
  Log:
  Just testing
  
  Revision  Changes    Path
  1.5       +0 -1      xml-xang/License
  
  Index: License
  ===================================================================
  RCS file: /home/cvs/xml-xang/License,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -u -r1.4 -r1.5
  --- License	2000/03/14 17:06:34	1.4
  +++ License	2000/03/14 17:24:25	1.5
  @@ -50,7 +50,6 @@
    * individuals on behalf of the Apache Software Foundation and was
    * originally based on software copyright (c) 1999, DataChannel, Inc.
    * <http://www.datachannel.com/>.
  - *
    * For more information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  
  
  

From raymond76@example.com  Wed Mar 22 23:20:02 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 36661 invoked by uid 1021); 22 Mar 2000 23:20:02 -0000
Date: 22 Mar 2000 23:20:01 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang make.include make.include2 Makefile

mdierken    00/03/22 15:20:01

  Added:       .        make.include make.include2 Makefile
  Log:
  Initial cut at make system
  
  Revision  Changes    Path
  1.1                  xml-xang/make.include
  
  Index: make.include
  ===================================================================
  ###########################################################
  # Common variables and targets for Xang
  #
  # See Makefile for important environment notes
  #
  ###########################################################
  
  ###########################################################
  # Project-specific variables and rules
  #
  # You should not need to edit these
  ###########################################################
  JAVAX = .java
  CLASSX = .class
  JARX  = .jar
  OBJS  = $(SRCS:%.java=%.class)
  
  # A simple marker file created to show last compile time
  # Note subdirectories may reset the name!
  SINCE_FILE       = since.last
  
  # Relative directory (usually from ./src/.) where class files are to go
  CLASS_DIR        = classes
  
  CURRENT_DIR      = .
  
  JARNAME = xang$(JARX)
  
  ###########################################################
  # Environment-specific tools and flags definitions
  #
  # You may need to edit these if you're not using
  # a standard JDK or the tools aren't on the path.
  ###########################################################
  JAVA       = java
  JAVAC      = javac
  JAVACFLAGS = -g -d $(CLASS_DIR)
  # JAVACFLAGS = -g:none -O -d $(CLASS_DIR)
  JAR        = jar
  JARFLAGS   = cf0
  JAVADOC    = javadoc
  # Note that the xdocs subdir requires the use of at least JDK 1.2,
  # even though the src code will compile with JDK 1.1.8 (or equivalent)
  JAVA12       = java
  JAVAC12      = javac
  JAVADOC12  = javadoc
  RM         = rm -f
  CP         = cp -f
  UPDIR      := ..
  
  # Decide if we're on unix or DOS
  ifeq (,$(findstring usr,$(PATH)))
  # DOS
  PATHSEP := \\
  CLPATHSEP := ;
  else 
  # UNIX
  PATHSEP := /
  CLPATHSEP := :
  endif
  
  ###########################################################
  # Main targets definitions
  ###########################################################
  .PHONY: makeall
  makeall: all
  
  .PHONY: clean
  clean888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4
  	$(RM) *.class $(JARNAME) *~ *.bak *.o *.obj *.dll $(SINCE_FILE)
  
  .PHONY: makesubdirs
  makesubdirs:
  	@for i in $(SUBDIRS) ; \
  	do \
  	(cd $$i; echo making Xang engine in "$(CURRENT_DIR)/$$i..."; \
  	$(MAKE) CURRENT_DIR=$(CURRENT_DIR)/$$i $(MFLAGS) -f Makefile JAVACFLAGS="$(JAVACFLAGS)" all); \
  	done
  
  .PHONY: makedocs
  makedocs:
  	@for i in xdocs ; \
  	do \
  	(cd $$i; echo making x-docs in "$(CURRENT_DIR)/$$i..."; \
  	$(MAKE) CURRENT_DIR=$(CURRENT_DIR)/$$i $(MFLAGS) -f Makefile all); \
  	done
  
  .PHONY: makesamples
  makesamples:
  	@for i in samples ; \
  	do \
  	(cd $$i; echo making samples in "$(CURRENT_DIR)/$$i..."; \
  	$(MAKE) CURRENT_DIR=$(CURRENT_DIR)/$$i $(MFLAGS) -f Makefile all); \
  	done
  
  .PHONY: cleansubdirs
  cleansubdirs:
  	-@for i in $(SUBDIRS) ; \
  	do \
  	(cd $$i; echo cleaning in "$(CURRENT_DIR)/$$i..."; \
  	$(MAKE) CURRENT_DIR=$(CURRENT_DIR)/$$i -f make_xang $(MFLAGS) clean); \
  	done
  
  .PHONY: cleandocs
  cleandocs:
  	@for i in docs ; \
  	do \
  	(cd $$i; echo cleaning up docs "$(CURRENT_DIR)/$$i..."; \
  	$(MAKE) CURRENT_DIR=$(CURRENT_DIR)/$$i $(MFLAGS) -f Makefile clean); \
  	done
  
  .PHONY: cleansamples
  cleansamples:
  	@for i in samples ; \
  	do \
  	(cd $$i; echo cleaning up samples "$(CURRENT_DIR)/$$i..."; \
  	$(MAKE) CURRENT_DIR=$(CURRENT_DIR)/$$i $(MFLAGS) -f Makefile clean); \
  	done
  
  # End of file
  
  
  1.1                  xml-xang/make.include2
  
  Index: make.include2
  ===================================================================
  ###########################################################
  # Common definitions and main 'compile' rule for xpath and xslt.
  #
  # See Makefile for important environment notes
  #
  ###########################################################
  
  # Note this is separate from the variable in make.include
  CLASSESDIR = classes
  
  # Add other required dirs to the classpath
  FESI_CLASSPATH := ..$(PATHSEP)fesi.jar
  EXTRA_CLASSPATH := $(FESI_CLASSPATH)$(CLPATHSEP)$(CLASSESDIR)$(CLPATHSEP)$(CLASSPATH)
  
  sincelast: $(SINCE_FILE)
  $(SINCE_FILE): $(SRCS)
  	-mkdir $(CLASSESDIR)
  	$(JAVAC) $(JAVACFLAGS) -classpath "$(EXTRA_CLASSPATH)" $?
  	touch $(SINCE_FILE)
  
  
  
  
  
  1.1                  xml-xang/Makefile
  
  Index: Makefile
  ===================================================================
  ###########################################################
  # Makefile for xml-xang, a Web Application Framework
  #
  # Please note the following assumptions!
  #  - See make.include for system tools definitions. We assume
  #    that each of these tools are on the path and properly setup.
  #  
  #  - Use GNU make or an equivalent.  On Win32, you can see
  #    http://sourceware.cygnus.com/cygwin for a port. 
  #  
  #  - With JDK 1.1.7B or earlier, a 'make all' may fail the first
  #    time. Try running it again twice, and everything should work.
  #    Note that when using JDK 1.2.x, it all works fine. We'll work on it.
  #  
  #  - Note the several attempts to determine if we're on WinXX or Unix:
  #    ifeq (,$(findstring usr,$(PATH)))
  #    Feel free to modify to work for your machine, and suggest a better
  #    way to create a platform-independent makefile.
  #  
  #  - The docs directory currently requires javadoc from the JDK 1.2.x
  #    You may need to edit make.include 'JAVADOC12' for your system.
  #
  #  - Yes, we plan to move to an 'Ant' based make system soon
  #    (Ant is from jakarta.apache.org and is a Java-based make)
  ###########################################################
  
  include make.include
  
  EXTRA_CLASSPATH = .
  
  SUBDIRS = java/src
  
  ###########################################################
  # Main targets definitions
  #
  # Note that make.include also defines common targets
  ###########################################################
  all: makesubdirs makejar makesamples makedocs
  
  build: makesubdirs makejar
  
  # Create a distribution module
  dist: makedist
  
  docs: makedocs
  
  samples: makesamples
  
  # Need to do something here for passing debug flags
  debug: clean makesubdirs makejar
  
  # Need to do something here for passing debug flags
  release: clean makesubdirs makejar
  
  jars: $(JARNAME)
  
  makejar: $(JARNAME)
  
  
  PROPPATH = org/apache/xang/xap
  $(JARNAME)888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4
  	$(CP) java/src/$(PROPPATH)/*.cfg java/src/$(CLASS_DIR)/$(PROPPATH)/.
  	echo -n "Jarring ../$@ "
  	cd java/src/$(CLASS_DIR) 
  	$(JAR) $(JARFLAGS) ../../$@ org
  	echo "done"
  
  XANG     := xang
  XVERSION   = _0_0_1
  CPR = cp -Rvf
  .PHONY: makedist
  makedist:
  	echo Making distribution $(XANG)$(XVERSION); \
  	mkdir $(XANG)$(XVERSION) ; \
  	$(CP) * $(XANG)$(XVERSION) ; \
  	$(CPR) xdocs $(XANG)$(XVERSION) ; \
  	$(CPR) build $(XANG)$(XVERSION) ; \
  	$(CPR) samples $(XANG)$(XVERSION) ; \
  	$(CPR) java/src $(XANG)$(XVERSION) ; \
  	$(JAR) -cf $(XANG)$(XVERSION)$(JARX) $(XANG)$(XVERSION); \
  	echo NOTE: You may wish to manually sign this!
  
  # Subsidiary targets are defined in make.include
  clean888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 cleansubdirs cleandocs cleansamples
  
  
  
  

From raymond76@example.com  Wed Mar 22 23:20:10 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 36735 invoked by uid 1021); 22 Mar 2000 23:20:10 -0000
Date: 22 Mar 2000 23:20:10 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/src Makefile Makefile.incl

mdierken    00/03/22 15:20:10

  Added:       java/src Makefile Makefile.incl
  Log:
  Initial cut at make system
  
  Revision  Changes    Path
  1.1                  xml-xang/java/src/Makefile
  
  Index: Makefile
  ===================================================================
  include Makefile.incl
  # Makefile for directory .
  #
  # This makefile depends on the following environment variables
  # already being defined:
  #
  #   JAVAC   Java compiler (with options)
  #   RM      Host delete file command (with options)
  #
  # In addition, the CLASSPATH environment variable must
  # include the absolute path of the base source directory.
  
  TARGETS=org/apache/xang
  SUBDIRS=
  PROJECT=Xang
  
  all: compile 
  
  dirs:
  	@for i in $(SUBDIRS) ; \
  	do \
  	(echo Making ${PROJECT} in $$i; $(MAKE) -C $$i ); \
  	done
  
  # Gotta love 'find'
  compile: ${TARGETS}
  	@for i in $(TARGETS) ; \
  	do \
  	(echo Compiling $$i;find . -name "*.java" -exec ${JAVAC} $(JAVACFLAGS) {} \; ); \
  	done
  	
  	
  .SUFFIXES:
  
  .SUFFIXES: .class .java
  
  .java.class:
  	${JAVAC} $<
  
  clean:
  	${MAKE} -C org clean
  
  apidocs: ../docs/apiDocs/index.html
  ../docs/apiDocs/index.html: classfiles_updated
  
  	${JDK12BIN}/javadoc -windowtitle "${PROJECT} ${PRODUCVERSION_DOT} API" \
  		-splitindex -header "${PROJECT} ${PRODUCTVERSION_DOT}" \
  		-version  \
  		-d ../docs/apiDocs ${PACKAGES}
  
  jars: source samples
  
  source: ../bin/${JARFILE}
  ../bin/${JARFILE}: classfiles_updated
  
  #########################################
  #copy the .class files under src
  #-src/org/apache/xang/
  	${MKDIR} ../class/org/apache/xang
  	${CPR}  ../src/org/apache/xang/*.class  			../class/org/apache/xang
  
  #make the first jar file
  	echo ${PRODUCTVERSION}> ../class/${PROJECT}_Ver_${PRODUCTVERSION}.info
  	cd ../class;${JAR} ../bin/${JARFILE} *.info org; cd ../src        
  ###################################
  #copy the .class files under samples
  samples: ../bin/${SAMPLESJARFILE}
  ../bin/${SAMPLESJARFILE}: classfiles_updated
  
  #-samples/dom
  
  	${MKDIR} ../class/xang
  	${CP}  ../samples/xang/*.class  ../class/xang
  
  #Make the second jar file
  
  	cd ../class;${JAR} ../bin/${SAMPLESJARFILE} ${PROJECT}_Ver_${PRODUCTVERSION}.info dom sax ui;cd ../src
  
  # copy the license, ANT build file, Status file, and READMEs
  	${CP}  ../build.xml ../README ../Readme.html ../STATUS ../bin
  
  
  package_src:
  
  ##################################################
  #copy the .java .dtd files under src
  
  #-src/org/apache/xang
  	${MKDIR} ../source/src/org/apache/xang
  	${CPR}  ../src/org/apache/xang/*.java  			../source/src/org/apache/xang
  
  ###################################
  #copy the .xap files under samples
  
  #-samples/xap
  
  	${MKDIR} ../source/samples/xap
  	${CP}  ../samples/xap/*.xap  ../source/samples/xap
  
  #########################################
  #copy the Makefiles under src
  
  #-src/org/apache/xang
  	${CP}  ../src/org/apache/xang/Makefile  			../source/src/org/apache/xang
  
  ###
  #copy the Makefiles and the batch files at higher levels
  #-source
  	${CP}  ../Makefile    ../source
  
  #-source
  	${CP}  ../BuildAll.bat    ../source
  
  #-source
  	${CP}  ../BuildAll    ../source
  
  #-src
  	${CP}  ../src/Makefile    ../source/src
  
  #-src
  	${CP}  ../src/Makefile.incl    ../source/src
  
  #-src/org
  	${CP}  ../src/org/Makefile    ../source/src/org
  
  #-src/org/apache
  	${CP}  ../src/org/apache/Makefile    ../source/src/org/apache
  
  #-src/org/apache/xang
  	${CP}  ../src/org/apache/xang/Makefile    ../source/src/org/apache/xang
  
  ###################################
  #copy the Makefiles under samples
  
  
  ###
  #copy higher levels Makefiles
  
  #-samples
  	${CP}  ../samples/Makefile  ../source/samples
  
  # copy the license, ANT build file, Status file, and READMEs
  	${CP}  ../build.xml ../README ../Readme.html ../STATUS ../source
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  1.1                  xml-xang/java/src/Makefile.incl
  
  Index: Makefile.incl
  ===================================================================
  
  #
  # Define the environment commands and/or utilities
  #
  JAR = jar c0vf 
  #JAVAC = javac
  JAVAC = jvc
  RM = -rm 
  
  #define MKDIR and CP for unix machines
  MKDIR = mkdir -p 
  CP = cp
  #
  # Define the version strings
  #
  PRODUCTVERSION = 0_0_1
  PRODUCTVERSION_DOT = 0.0.1
  PRODUCTNAME = Xang
  
  #define the jar file names
  
  JARFILE = xang.jar
  SAMPLESJARFILE = xangSamples.jar
  
  #define the package value	
  PACKAGES = org.apache.xang \
             org.apache.xang.net \
             org.apache.xang.util \
             org.apache.xang.xap \
             org.apache.xang.scriptEngine \
  
  
  BINZIPFILE = ${PRODUCTNAME}-J-bin.${PRODUCTVERSION_DOT}.zip
  SRCZIPFILE = ${PRODUCTNAME}-J-src.${PRODUCTVERSION_DOT}.zip
  
  BINTARFILE = ${PRODUCTNAME}-J-bin.${PRODUCTVERSION_DOT}.tar
  SRCTARFILE = ${PRODUCTNAME}-J-src.${PRODUCTVERSION_DOT}.tar
  
  BINJARFILE = ${PRODUCTNAME}-J-bin.${PRODUCTVERSION_DOT}.jar
  SRCJARFILE = ${PRODUCTNAME}-J-src.${PRODUCTVERSION_DOT}.jar
  
  
  

From raymond76@example.com  Fri Mar 24 01:36:31 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 98776 invoked by uid 1021); 24 Mar 2000 01:36:31 -0000
Date: 24 Mar 2000 01:36:31 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang make.include Makefile

mdierken    00/03/23 17:36:31

  Modified:    .        make.include Makefile
  Log:
  More changes. Still some hardcoded values.
  
  Revision  Changes    Path
  1.2       +1 -1      xml-xang/make.include
  
  Index: make.include
  ===================================================================
  RCS file: /home/cvs/xml-xang/make.include,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- make.include	2000/03/22 23:20:01	1.1
  +++ make.include	2000/03/24 01:36:31	1.2
  @@ -73,7 +73,7 @@
   makesubdirs:
   	@for i in $(SUBDIRS) ; \
   	do \
  -	(cd $$i; echo making Xang engine in "$(CURRENT_DIR)/$$i..."; \
  +	(cd $$i; echo Making Xang engine in "$(CURRENT_DIR)/$$i"; \
   	$(MAKE) CURRENT_DIR=$(CURRENT_DIR)/$$i $(MFLAGS) -f Makefile JAVACFLAGS="$(JAVACFLAGS)" all); \
   	done
   
  
  
  
  1.2       +5 -5      xml-xang/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvs/xml-xang/Makefile,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile	2000/03/22 23:20:01	1.1
  +++ Makefile	2000/03/24 01:36:31	1.2
  @@ -56,14 +56,14 @@
   
   makejar: $(JARNAME)
   
  -
   PROPPATH = org/apache/xang/xap
  +
   $(JARNAME)888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4
   	$(CP) java/src/$(PROPPATH)/*.cfg java/src/$(CLASS_DIR)/$(PROPPATH)/.
  -	echo -n "Jarring ../$@ "
  -	cd java/src/$(CLASS_DIR) 
  -	$(JAR) $(JARFLAGS) ../../$@ org
  -	echo "done"
  +	cd java/src/classes ; \
  +	$(JAR) $(JARFLAGS) $@ .
  +	
  +	
   
   XANG     := xang
   XVERSION   = _0_0_1
  
  
  

From raymond76@example.com  Fri Mar 24 01:36:40 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 98833 invoked by uid 1021); 24 Mar 2000 01:36:40 -0000
Date: 24 Mar 2000 01:36:40 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/src Makefile Makefile.incl

mdierken    00/03/23 17:36:40

  Modified:    java/src Makefile Makefile.incl
  Log:
  More changes. Still some hardcoded values.
  
  Revision  Changes    Path
  1.2       +12 -5     xml-xang/java/src/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/src/Makefile,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile	2000/03/22 23:20:10	1.1
  +++ Makefile	2000/03/24 01:36:39	1.2
  @@ -10,24 +10,31 @@
   # In addition, the CLASSPATH environment variable must
   # include the absolute path of the base source directory.
   
  -TARGETS=org/apache/xang
  +TARGETS=org/apache/xang/xap org/apache/xang/util org/apache/xang/util/encoding
  +
   SUBDIRS=
  +
   PROJECT=Xang
  +PROJ_ROOT	= d:/projects/apache/modules/xml-xang
  +CLASS_DIR   = java/src/classes
   
  -all: compile 
  +all: dirs compile
   
   dirs:
   	@for i in $(SUBDIRS) ; \
   	do \
  -	(echo Making ${PROJECT} in $$i; $(MAKE) -C $$i ); \
  +	(echo Making ${PROJECT} in $$i; $(MAKE) -C $$i  ); \
   	done
   
  -# Gotta love 'find'
   compile: ${TARGETS}
   	@for i in $(TARGETS) ; \
   	do \
  -	(echo Compiling $$i;find . -name "*.java" -exec ${JAVAC} $(JAVACFLAGS) {} \; ); \
  +	( echo Compiling $$i; \
  +	  cd $$i ; \
  +	  ${JAVAC} -g -d $(PROJ_ROOT)/$(CLASS_DIR) *.java; \
  +	  cd ${PWD} ); \
   	done
  +
   	
   	
   .SUFFIXES:
  
  
  
  1.2       +2 -2      xml-xang/java/src/Makefile.incl
  
  Index: Makefile.incl
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/src/Makefile.incl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.incl	2000/03/22 23:20:10	1.1
  +++ Makefile.incl	2000/03/24 01:36:39	1.2
  @@ -3,8 +3,8 @@
   # Define the environment commands and/or utilities
   #
   JAR = jar c0vf 
  -#JAVAC = javac
  -JAVAC = jvc
  +JAVAC = javac
  +#JAVAC = jvc
   RM = -rm 
   
   #define MKDIR and CP for unix machines
  
  
  

From raymond76@example.com  Fri Mar 24 22:22:04 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 23764 invoked by uid 1021); 24 Mar 2000 22:22:04 -0000
Date: 24 Mar 2000 22:22:04 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/src/org/apache/xang/net/http/object/impl/debug DebugHTTPObjectServer.java DebugHTTPServletRequest.java DebugHTTPServletResponse.java DebugServletInputStream.java DebugServletOutputStream.java

mdierken    00/03/24 14:22:03

  Modified:    java/src/org/apache/xang/net/http/object/impl/debug
                        DebugHTTPObjectServer.java
                        DebugHTTPServletRequest.java
                        DebugHTTPServletResponse.java
                        DebugServletInputStream.java
                        DebugServletOutputStream.java
  Log:
  no message
  
  Revision  Changes    Path
  1.3       +4 -4      xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugHTTPObjectServer.java
  
  Index: DebugHTTPObjectServer.java
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugHTTPObjectServer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DebugHTTPObjectServer.java	2000/03/14 00:49:38	1.2
  +++ DebugHTTPObjectServer.java	2000/03/24 22:22:02	1.3
  @@ -49,9 +49,9 @@
    *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation and was
  - * originally based on software copyright (c) 1999, International
  - * Business Machines, Inc., http://www.apache.org.  For more
  - * information on the Apache Software Foundation, please see
  + * originally based on software copyright (c) 1999, DataChannel, Inc., http://www.datachannel.com
  + * For more information on the Apache Software Foundation, please see
  +
    * <http://www.apache.org/>.
    */
   
  @@ -196,5 +196,5 @@
       /////////
       String realPath="";
   
  -    public final static String RCS_STRING = "$Workfile: DebugHTTPObjectServer.java $ " + "$Revision: 1.2 $";
  +    public final static String RCS_STRING = "$Workfile: DebugHTTPObjectServer.java $ " + "$Revision: 1.3 $";
   }
  
  
  
  1.3       +20 -3     xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugHTTPServletRequest.java
  
  Index: DebugHTTPServletRequest.java
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugHTTPServletRequest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DebugHTTPServletRequest.java	2000/03/14 00:49:39	1.2
  +++ DebugHTTPServletRequest.java	2000/03/24 22:22:02	1.3
  @@ -49,9 +49,9 @@
    *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation and was
  - * originally based on software copyright (c) 1999, International
  - * Business Machines, Inc., http://www.apache.org.  For more
  - * information on the Apache Software Foundation, please see
  + * originally based on software copyright (c) 1999, DataChannel, Inc., http://www.datachannel.com
  + * For more information on the Apache Software Foundation, please see
  +
    * <http://www.apache.org/>.
    */
   
  @@ -225,6 +225,15 @@
           return parameters.keys();
       }
   
  +    public void setAttribute(String name,Object value)
  +    {
  +    }
  +    
  +    public Enumeration getAttributeNames()
  +    {
  +        return null;
  +    }
  +
       /**
        * Returns the value of the named attribute of the request, or
        * null if the attribute does not exist.  This method allows
  @@ -507,6 +516,10 @@
       {
           return null;
       }
  +    public HttpSession getSession ()
  +    {
  +        return null;
  +    }
       
       /**
        * Gets the session id specified with this request.  This may
  @@ -567,6 +580,10 @@
        * @see #getSession
        */
       public boolean isRequestedSessionIdFromUrl ()
  +    {
  +        return false;
  +    }
  +    public boolean isRequestedSessionIdFromURL ()
       {
           return false;
       }
  
  
  
  1.3       +11 -3     xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugHTTPServletResponse.java
  
  Index: DebugHTTPServletResponse.java
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugHTTPServletResponse.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DebugHTTPServletResponse.java	2000/03/14 00:49:39	1.2
  +++ DebugHTTPServletResponse.java	2000/03/24 22:22:02	1.3
  @@ -49,9 +49,9 @@
    *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation and was
  - * originally based on software copyright (c) 1999, International
  - * Business Machines, Inc., http://www.apache.org.  For more
  - * information on the Apache Software Foundation, please see
  + * originally based on software copyright (c) 1999, DataChannel, Inc., http://www.datachannel.com
  + * For more information on the Apache Software Foundation, please see
  +
    * <http://www.apache.org/>.
    */
   
  @@ -318,6 +318,10 @@
       {
           return url;
       }
  +    public String encodeURL(String url)
  +    {
  +        return url;
  +    }
   
       /**
        * Encodes the specified URL for use in the
  @@ -342,6 +346,10 @@
        * @see #encodeUrl
        */
       public String encodeRedirectUrl (String url)
  +    {
  +        return url;
  +    }
  +    public String encodeRedirectURL(String url)
       {
           return url;
       }
  
  
  
  1.3       +3 -3      xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugServletInputStream.java
  
  Index: DebugServletInputStream.java
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugServletInputStream.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DebugServletInputStream.java	2000/03/14 00:49:39	1.2
  +++ DebugServletInputStream.java	2000/03/24 22:22:02	1.3
  @@ -49,9 +49,9 @@
    *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation and was
  - * originally based on software copyright (c) 1999, International
  - * Business Machines, Inc., http://www.apache.org.  For more
  - * information on the Apache Software Foundation, please see
  + * originally based on software copyright (c) 1999, DataChannel, Inc., http://www.datachannel.com
  + * For more information on the Apache Software Foundation, please see
  +
    * <http://www.apache.org/>.
    */
   
  
  
  
  1.3       +3 -3      xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugServletOutputStream.java
  
  Index: DebugServletOutputStream.java
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/src/org/apache/xang/net/http/object/impl/debug/DebugServletOutputStream.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DebugServletOutputStream.java	2000/03/14 00:49:39	1.2
  +++ DebugServletOutputStream.java	2000/03/24 22:22:02	1.3
  @@ -49,9 +49,9 @@
    *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation and was
  - * originally based on software copyright (c) 1999, International
  - * Business Machines, Inc., http://www.apache.org.  For more
  - * information on the Apache Software Foundation, please see
  + * originally based on software copyright (c) 1999, DataChannel, Inc., http://www.datachannel.com
  + * For more information on the Apache Software Foundation, please see
  +
    * <http://www.apache.org/>.
    */
   
  
  
  

From raymond76@example.com  Fri Mar 24 22:22:48 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 24014 invoked by uid 1021); 24 Mar 2000 22:22:48 -0000
Date: 24 Mar 2000 22:22:48 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/src Makefile

mdierken    00/03/24 14:22:48

  Modified:    java/src Makefile
  Log:
  Add more packages to 'compile' target
  
  Revision  Changes    Path
  1.3       +4 -1      xml-xang/java/src/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/src/Makefile,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Makefile	2000/03/24 01:36:39	1.2
  +++ Makefile	2000/03/24 22:22:48	1.3
  @@ -10,7 +10,10 @@
   # In addition, the CLASSPATH environment variable must
   # include the absolute path of the base source directory.
   
  -TARGETS=org/apache/xang/xap org/apache/xang/util org/apache/xang/util/encoding
  +TARGETS=org/apache/xang/xap \
  +		org/apache/xang/util \
  +		org/apache/xang/util/encoding \
  +		org/apache/xang/net/http/object/impl
   
   SUBDIRS=
   
  
  
  

From raymond76@example.com  Fri Mar 24 22:23:07 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 24145 invoked by uid 1021); 24 Mar 2000 22:23:07 -0000
Date: 24 Mar 2000 22:23:07 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/docs - New directory

mdierken    00/03/24 14:23:07

  xml-xang/java/docs - New directory

From raymond76@example.com  Fri Mar 24 22:24:49 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 25063 invoked by uid 1021); 24 Mar 2000 22:24:49 -0000
Date: 24 Mar 2000 22:24:49 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/docs Image4.gif Xang Overview.htm

mdierken    00/03/24 14:24:49

  Added:       java/docs Image4.gif Xang Overview.htm
  Log:
  Preliminary overview.
  
  Revision  Changes    Path
  1.1                  xml-xang/java/docs/Image4.gif
  
  	<<Binary file>>
  
  
  No                   revision
  
  
  No                   revision
  
  

From raymond76@example.com  Fri Mar 24 22:25:07 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 25174 invoked by uid 1021); 24 Mar 2000 22:25:07 -0000
Date: 24 Mar 2000 22:25:07 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/samples - New directory

mdierken    00/03/24 14:25:07

  xml-xang/java/samples - New directory

From raymond76@example.com  Fri Mar 24 22:25:14 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 25237 invoked by uid 1021); 24 Mar 2000 22:25:14 -0000
Date: 24 Mar 2000 22:25:14 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/samples/hello - New directory

mdierken    00/03/24 14:25:14

  xml-xang/java/samples/hello - New directory

From raymond76@example.com  Fri Mar 24 22:25:18 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 25276 invoked by uid 1021); 24 Mar 2000 22:25:18 -0000
Date: 24 Mar 2000 22:25:18 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/samples/hello/layouts - New directory

mdierken    00/03/24 14:25:18

  xml-xang/java/samples/hello/layouts - New directory

From raymond76@example.com  Fri Mar 24 22:25:45 2000
Return-Path: <raymond76@example.com>
Mailing-List: contact raymond76@example.com; run by ezmlm
Delivered-To: mailing list raymond76@example.com
Received: (qmail 25474 invoked by uid 1021); 24 Mar 2000 22:25:45 -0000
Date: 24 Mar 2000 22:25:45 -0000
Message-ID: <raymond76@example.com>
From: raymond76@example.com
To: raymond76@example.com
Subject: cvs commit: xml-xang/java/samples/hello/layouts editor.xsl editor_browse.xsl editor_edit.xsl xap.xsl

mdierken    00/03/24 14:25:45

  Added:       java/samples/hello editor.script.xml hello.xap
                        system.script.xml
               java/samples/hello/layouts editor.xsl editor_browse.xsl
                        editor_edit.xsl xap.xsl
  Log:
  Initial 'hello world' sample.
  
  Revision  Changes    Path
  1.1                  xml-xang/java/samples/hello/editor.script.xml
  
  Index: editor.script.xml
  ===================================================================
  <script >
  
  <![CDATA[
  
  /** Base browser method. Override to provide object specific functionality.
  */
  function doObjectEdit(context,returnTypes,parameters)
  {
  	parameters.put("layout","editor.xsl");
  	get(context,returnTypes,parameters);
  }
  
  function doObjectBrowser(context,returnTypes,parameters)
  {
  	parameters.put("layout","editor_browse.xsl");
  	get(context,returnTypes,parameters);
  }
  
  /** Base editor method. Override to provide object specific functionality.
  */
  function doObjectEditor(context,returnTypes,parameters)
  {
  	parameters.put("layout","editor_edit.xsl");
  	get(context,returnTypes,parameters);
  }
  
  /** Base update method
  */
  function doObjectUpdate(context,returnTypes,parameters)
  {
  	doc = context.getResponse().getWriter();
  	for (prop in parameters.keys())
  	{
  		if (prop.indexOf('prop_') == 0)
  		{
  			value = parameters.get(prop);
  			attrib = prop.substring(5);
  			if (value == null || value=="")
  			{
  				xml.removeAttribute(attrib);
  			}
  			else
  			{
  				xml.setAttribute(attrib,value);
  			}
  			
  		}
  	}
  
  	context.getResponse().setContentType("text/html");
  	doc.println("<html><body>OK</body></html>");
  }
  
  function doObjectAddProp(context,returnTypes,parameters)
  {
  	name = parameters.get('name');
  	value = parameters.get('value');
  	xml.setAttribute(name,value);
  	
  	context.getResponse().setContentType("text/html");
  	doc = context.getResponse().getWriter();
  	doc.println("<html><body>"+name+"="+value+"</body></html>");
  }
  
  ]]>
  </script>
  
  
  1.1                  xml-xang/java/samples/hello/hello.xap
  
  Index: hello.xap
  ===================================================================
  
  <xap hits='0' onGet="get();" onGetXml="getXML()" onGetScript="getScript();"
  	onGetEditor='doObjectEdit()' onGetBrowse='doObjectBrowser()' onGetEdit='doObjectEditor()' 
  	onPostUpdate='doObjectUpdate()' onPostAddprop='doObjectAddProp()'
  	layout='xap.xsl'
  	resources.server='http://localhost/xap/apps/apache/layouts/'>
  
  	<title>Apache Xang</title>
  	<message>Welcome to the Next Web Revolution!<br /></message>
  	
  	<!-- include some common code -->
  	<script xml:link='include' src='system.script.xml' > 	</script>
  	<script xml:link='include' src='editor.script.xml' > 	</script>
  
  <page name='base64' >
  		<title>Do Base64 stuff</title>
  		
  		<script>
  		<![CDATA[
  		var bDecoding=false;
  		function doBase64Form(context,returnTypes,parameters)
  		{
  			doc = context.getResponse().getWriter();
  			context.getResponse().setContentType('text/html');
  			doc.println("<html><body>");
  			doc.println("<font size='+2'>Base64 Encoder/Decoder</font><hr />");
  			
  			drawEncodeForm(doc,context,bDecoding);
  			doc.println("</body></html>");
  		}
  
  		function drawEncodeForm(doc,context,bDecoding)
  		{
  			doc.println("<form method='POST' action='.'>");
  			if (bDecoding)
  				doc.println("<input type='hidden' name='do:method' value='decode' />");
  			else
  				doc.println("<input type='hidden' name='do:method' value='encode' />");
  			doc.println("Text: <input type='text' name='text' value='' />");
  			if (bDecoding)
  				doc.println("<input type='submit' value=' Decode '/>");
  			else
  				doc.println("<input type='submit' value=' Encode '/>");
  		}
  
  		/** Decode base64 text
  		*/
  		function base64Decode(text)
  		{
  			decoder = new Packages.org.apache.xang.util.encoding.BASE64Decoder();
  			text = new Packages.java.lang.String(decoder.decodeBuffer(parameters.get("text")));
  			return text;
  		}				
  		/** Encode base64 text
  		*/
  		function base64Encode(text)
  		{
  			encoder = new Packages.org.apache.xang.util.encoding.BASE64Encoder();
  			
  			text = new Packages.java.lang.String(text);
  			text = encoder.encodeBuffer(text.getBytes());
  			return text;
  		}
  		
  		function doDecode()
  		{
  			doc = context.getResponse().getWriter();
  			
  			text = base64Decode(parameters.get("text"));
  
  			context.getResponse().setContentType('text/html');
  
  			doc.println("<html><body>");
  			doc.println("<font size='+2'>Base64 Decoder</font><hr />");
  			doc.println("<b>base64:</b> "+parameters.get('text'));
  			doc.println("<br />");
  			doc.println("<b>plain:</b> "+text);
  			doc.println("<hr />");
  			drawEncodeForm(doc,context,true);
  			
  			doc.println("</body></html>");
  		}
  		function doEncode()
  		{
  			doc = context.getResponse().getWriter();
  
  			text = base64Encode(parameters.get("text"));
  			context.getResponse().setContentType('text/html');
  
  			doc.println("<html><body>");
  			doc.println("<font size='+2'>Base64 Encoder</font><hr />");
  			doc.println("<b>text:</b> "+parameters.get('text'));
  			doc.println("<br />");
  			doc.println("<b>base64:</b> "+text);
  			doc.println("<hr />");
  			drawEncodeForm(doc,context,false);
  			doc.println("</body></html>");
  		}
  		]]>
  		</script>
  		<page name='encoder' 
  					onGet='doBase64Form()' 
  					onGetEncode='doEncode()'
  					onPostEncode='doEncode()'
  					>
  			<title>Base64 Encoder</title>
  		</page>
  		<page name='decoder' 
  					onGet='bDecoding=true;doBase64Form()' 
  					onPostDecode='doDecode()' 
  					onGetDecode='doDecode()' 
  					>
  			<title>Base64 Decoder</title>
  		</page>
  </page>	
  
  
  </xap>
  
  
  
  1.1                  xml-xang/java/samples/hello/system.script.xml
  
  Index: system.script.xml
  ===================================================================
  <script >
  <![CDATA[
  function debug(s)
  {
  	Packages.java.lang.System.out.println(s);
  }
  
  function getInheritedAttribute(element,name)
  {
  	var value;
  	value=null;
  	
  	while ((element != null) && (element.getNodeType() == 1))
  	{
  		value = element.getAttribute(name);
  		if (value != null && value != "")
  			break;
  
  		element = element.getParentNode();
  	}
  	return value;
  }
  
  function getLayout(element)
  {
  	return getInheritedAttribute(element,'layout');
  }
  
  /**
  * This determines which XSL stylesheet to use and applies the stylesheet to the targeted
  * element.
  */
  function get(context,returnTypes,parameters)
  {
  	var doc;
  	var layout;
  
  	debug('in get()');
  	doc = context.getResponse().getWriter();
  
  	// check for object
  	if (xml == null)
  	{
  		context.getResponse().sendError(404,"Page not found.");
  		return;
  	}
  	
  	// get the url to the XSL to use for the transform.
  	base = getInheritedAttribute(xml,'resources.server');
  
  	layout = parameters.get('layout');
  	if (layout == null)
  	{
  		layout = getLayout(xml);
  	}
  
  	if (base != null && (layout.indexOf(':') <= 1))
  		layout = base + layout;
  
  	if (layout != null)
  	{
  		context.getResponse().setContentType("text/html");
  		// do XSL via Xalan
  		{
  			processor = Packages.org.apache.xalan.xslt.XSLTProcessorFactory.getProcessorUsingLiaisonName("org.apache.xalan.xpath.xdom.XercesLiaison");
  			
  			source = new Packages.org.apache.xalan.xslt.XSLTInputSource();
  			source.setNode(xml);
  			
  			stylesheet = new Packages.org.apache.xalan.xslt.XSLTInputSource();
  			stylesheet.setSystemId(layout);
  			
  			output = new Packages.org.apache.xalan.xslt.XSLTResultTarget();
  			output.setCharacterStream(doc);
  			
  			processor.process(source,stylesheet,output);
  		}
  		
  		doc.flush();
  	}
  }
  
  function getXML(context,returnTypes,parameters)
  {
  	doc = context.getResponse().getWriter();
  	doc.println("<?xml version='1.0' ?>");
  	doc.println("<!-- cool huh? -->");
  	doc.println(xml.getXML());
  }
  
  function getScript(context,returnTypes,parameters)
  {
  	var doc;
  	var s;
  	var util;
  
  	doc = context.getResponse().getWriter();
  
  	util = new Packages.org.apache.xang.util.TextUtil();
  	
  
  	s = "<html><body><pre>";
  	s += util.encodeToHTML(app.loadScript(null));
  	s += "</pre></body></html>";
  	doc.println(s);
  	doc.flush();
  }
  ]]>	
  </script>
  
  
  
  1.1                  xml-xang/java/samples/hello/layouts/editor.xsl
  
  Index: editor.xsl
  ===================================================================
  <?xml version="1.0" ?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
  <xsl:output method="html" indent="yes"/>
  
  <xsl:template match="*">
  <FRAMESET COLS="200,*" BORDER="TRUE">
  	<FRAME NAME="obj_browser" src="?do:method=browse"  marginwidth="1" marginheight="1" scrolling="auto" >
  	</FRAME>
  	<FRAME NAME="obj_editor" src="?do:method=edit" FRAMESPACING="1" marginwidth="2" marginheight="2" scrolling="auto">
  	</FRAME>
  </FRAMESET>
  
  
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xang/java/samples/hello/layouts/editor_browse.xsl
  
  Index: editor_browse.xsl
  ===================================================================
  <?xml version="1.0" ?>
  <!DOCTYPE riolayout [
   <!ENTITY baseResourcePath "/rio4/layouts/filemanager2/" >
   <!ENTITY baseURL "/xsp/data/default.xsp/" >
   <!ENTITY nbsp "<![CDATA[ ]]>" >
   <!ENTITY tag-start "<xsl:text disable-output-escaping='yes'>&lt;</xsl:text>" >
   <!ENTITY tag-end "<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>" >
  ]>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
  <xsl:output method="html" indent="no"/>
  
  <xsl:template match="/" >
  <HTML>	
  	<BODY bgcolor='#f0f0f0'>
  	<a href="javascript:window.location=window.location" >Refresh</a>
  	<hr />
  
  	<!-- Parent folder -->
  	<xsl:apply-templates select='..' />
  
  	&tag-start;DIV style="position:relative;top:0;left:8; display: ;"&tag-end;
  	
  	<!-- This folder -->
  	<a target='_parent'>
  		<xsl:attribute name='href'>
  			&baseURL;
  			<xsl:apply-templates mode='up' select='.' />
  			?do:method=editor
  		</xsl:attribute>
  	<img border='0' src="&baseResourcePath;images/folder.gif" /> 
  	&nbsp;
  	<b>
  	<xsl:choose>
  		<xsl:when test='@name'>
  			<xsl:value-of select='@name' />
  		</xsl:when>
  		<xsl:otherwise>
  			root
  		</xsl:otherwise>
  	</xsl:choose>
  	
  	</b>
  	</a>
  
  	<!-- The child folders -->
  	&tag-start;DIV style="position:relative;top:0;left:8; display: ;"&tag-end;
  
  	<xsl:for-each select='*[@name]' >
  		<a target='_parent'>
  			<xsl:attribute name='href'>
  				&baseURL;<xsl:apply-templates mode='up' select='.' />?do:method=editor
  			</xsl:attribute>
  		<img border='0' src="&baseResourcePath;images/folder.gif" /> 
  		&nbsp;
  		<xsl:choose>
  			<xsl:when test='@name'>
  				<xsl:value-of select='@name' />
  			</xsl:when>
  			<xsl:otherwise>
  				root
  			</xsl:otherwise>
  		</xsl:choose>
  		</a>
  		<br />
  			
  	</xsl:for-each>
  
  	</BODY>
  </HTML>
  
  </xsl:template>
  
  <xsl:template mode='up' match="*">
  </xsl:template>
  
  <xsl:template match="*">
  	<!-- Parent folder -->
  	<xsl:apply-templates select='..' />
  	
  		&tag-start;DIV style="position:relative;top:0;left:8; display: ;"&tag-end;
  	
  	<!-- This folder -->
  	<a target='_parent'>
  		<xsl:attribute name='href'>
  			&baseURL;<xsl:apply-templates mode='up' select='.' />?do:method=editor
  		</xsl:attribute>
  	<img border='0' src="&baseResourcePath;images/folder.gif" /> 
  	&nbsp;
  	<xsl:choose>
  		<xsl:when test='@name'>
  			<xsl:value-of select='@name' />
  		</xsl:when>
  		<xsl:otherwise>
  			root
  		</xsl:otherwise>
  	</xsl:choose>
  	</a>
  	
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xang/java/samples/hello/layouts/editor_edit.xsl
  
  Index: editor_edit.xsl
  ===================================================================
  <?xml version="1.0" ?>
  <!DOCTYPE riolayout [
   <!ENTITY baseResourcePath "/rio4/layouts/filemanager2/" >
   <!ENTITY baseURL "/xsp/data/default.xsp/" >
   <!ENTITY nbsp "<![CDATA[ ]]>" >
  ]>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
  <xsl:output method="html" indent="yes"/>
  
  <xsl:template match="*" >
  <HTML>	
  <BODY bgcolor='#f0f0f0' >
  
  <!-- banner -->
  <table width='100%' bgcolor='#a0a0ff'>
  <tr ><td><font size='+2'>
  &lt;<xsl:value-of select='name()' />&gt;&nbsp; :&nbsp; <xsl:value-of select='@name' />
  </font></td>
  <td align='right'>
  <a href="javascript:window.location=window.location" ><b>Refresh</b></a>
  </td>
  </tr>
  </table>
  
  
  <!-- banner -->
  <table width='100%' bgcolor='#c0c0ff'>
  <tr ><td><font size='+1'>
  Modify attributes
  </font></td></tr>
  </table>
  
  <form method='post' action='?do:method=update'>
  <TABLE>
  	<!-- Attributes -->
  	<xsl:for-each select="@*[((name() &lt; 'onGet') or (name() &gt;= 'onGeu')) and (name() &lt; 'onPost' or name() &gt;= 'onPosu') ]">
  	<tr>
  		<td>
  			<b><xsl:value-of select='name()' /></b>
  		</td>
  		<td>
  			<input type='text' size='50' id='text' name='text'>
  			<xsl:attribute name='name'>
  				prop_<xsl:value-of select='name()' />
  			</xsl:attribute>
  			<xsl:attribute name='value'>
  				<xsl:value-of select='name()'/>
  			</xsl:attribute>
  			</input>
  		</td>
  	</tr>
  	</xsl:for-each>
  
  	<tr align='right'>
  		<td>
  		</td>
  		<td>
  			<input name='submit' id='submit' type='submit' value='  Update  '/>
  		</td>
  	</tr>
  </TABLE>
  </form>
  
  <!-- banner -->
  <table width='100%' bgcolor='#c0c0ff'>
  <tr ><td><font size='+1'>
  Add new attribute
  </font></td></tr>
  </table>
  <form method='post' action='?do:method=addprop' id='form1' name='form1'>
  <TABLE>
  	<tr>
  		<td>
  			<input type='text' size='10' name='name' />
  		</td>
  		<td>
  			<input type='text' size='40' name='value' />
  			&nbsp;
  			<input name='submit2' id='submit2' type='submit' value='  Add  '/>
  		</td>
  	</tr>
  </TABLE>
  </form>
  
  <!-- banner -->
  <table width='100%' bgcolor='#c0c0ff'>
  <tr ><td><font size='+1'>
  Modify methods
  </font></td></tr>
  </table>
  
  <form method='post' action='?do:method=update' id='form1' name='dialog'>
  <TABLE>
  
  	<!-- Methods -->
  	<xsl:for-each select="@*[(name() &gt;= 'onGet' and name() &lt;= 'onGeu') or (name() &gt;= 'onPost' and name() &lt;= 'onPosu') ]">
  	<tr>
  		<td>
  			<b><xsl:value-of select='name()' /></b>
  		</td>
  		<td>
  			<input type='text' size='50' id='text' name='text'>
  			<xsl:attribute name='name'>
  				prop_<xsl:value-of select='name()' />
  			</xsl:attribute>
  			<xsl:attribute name='value'>
  				<xsl:value-of select='name()'/>
  			</xsl:attribute>
  			</input>
  		</td>
  	</tr>
  	</xsl:for-each>
  
  	<tr align='right'>
  		<td>
  		</td>
  		<td>
  			<input name='submit' id='submit' type='submit' value='  Update  '/>
  		</td>
  	</tr>
  </TABLE>
  </form>
  
  
  <!-- banner -->
  <table width='100%' bgcolor='#c0c0ff'>
  <tr ><td><font size='+1'>
  Add new method
  </font></td></tr>
  </table>
  <form method='post' action='?do:method=addprop' id='form1' name='form1'>
  <TABLE>
  	<tr>
  		<td>
  			<input type='text' size='10' name='name' />
  		</td>
  		<td>
  			<input type='text' size='40' name='value' />
  			&nbsp;
  			<input name='submit2' id='submit2' type='submit' value='  Add  '/>
  		</td>
  	</tr>
  </TABLE>
  </form>
  
  
  </BODY>
  </HTML>
  
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xang/java/samples/hello/layouts/xap.xsl
  
  Index: xap.xsl
  ===================================================================
  <?xml version="1.0" ?>
  <!DOCTYPE layout [
   <!ENTITY system.title "" >
  ]>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
  <xsl:output method="html" indent="yes"/>
  
  <xsl:template match="*">
  <HTML>
  <BODY>
  <font face="Arial" size="+2">
  	<xsl:value-of select='title' />
  </font>
  <br />
  <font face="Arial" size="+1">
  	<xsl:value-of select='message' />
  </font>
  <hr />
  <xsl:apply-templates mode="outer" select='*[@name]' />
  
  <a href='./?do:method=script'>view script</a>
  
  </BODY>
  </HTML>
  </xsl:template>
  
  <xsl:template match='*' mode="outer">
  	<a>
  	<xsl:attribute name='href'>
  		<xsl:value-of select='@name' />/
  	</xsl:attribute>
  	<xsl:value-of select='title' />
  	</a>
  	<br />
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  


{'source': 'Apache Software Foundation Public Mail Archives'}