Update of /cvsroot/net-script/netscript2/src/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv5119 Modified Files: database.xml files.xml forms.xml rimport_src.xml rimport_trg.xml strings.xml upload.xml Added Files: xslt.xml xslt.xsl xslt_gecko.xsl Log Message: * added xslt test scripts * bugfixes --- NEW FILE: xslt.xml --- <?xml version="1.0" encoding="ISO-8859-1"?> <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # NetScript 2.0 Demo Script - XSLT example # $Id: xslt.xml,v 1.1 2003/05/31 22:41:31 derkork Exp $ # # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <?netscript use XSLT?> <page xmlns:xsl="http://xslt.netscript.insomnia-hq.de"> <pagetitle>XSLT Test Page</pagetitle> <pagebody> <heading>This is a test</heading> <para>This is a paragraph</para> <para>Your Browser identification string is: $(SYS.userAgent)</para> </pagebody> <xsl:transform default="./xslt.xsl"> <xsl:browser matches="MSIE 6\.0"> <!-- IE 6 --> <?xml-stylesheet type="text/xsl" href="http://insomnia-hq.homeip.net/~kork/netscript2/scripts/xslt.xsl"?> </xsl:browser> <xsl:browser matches="Gecko" stylesheet="./xslt_gecko.xsl"/> <!-- Mozilla/Konqueror --> </xsl:transform> </page> --- NEW FILE: xslt.xsl --- <?xml version="1.0" encoding="ISO-8859-1"?> <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # NetScript 2.0 Demo Script - XSLT example # $Id: xslt.xsl,v 1.1 2003/05/31 22:41:31 derkork Exp $ # # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="page"> <html> <head> <title> <xsl:apply-templates select="pagetitle"/> - Default </title> </head> <body> <xsl:apply-templates select="pagebody"/> </body> </html> </xsl:template> <xsl:template match="pagebody"> <xsl:apply-templates/> </xsl:template> <xsl:template match="heading"> <h1><xsl:apply-templates/></h1> </xsl:template> <xsl:template match="para"> <p><xsl:apply-templates/></p> </xsl:template> </xsl:stylesheet> --- NEW FILE: xslt_gecko.xsl --- <?xml version="1.0" encoding="ISO-8859-1"?> <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # NetScript 2.0 Demo Script - XSLT example # $Id: xslt_gecko.xsl,v 1.1 2003/05/31 22:41:31 derkork Exp $ # # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="page"> <html> <head> <title> <xsl:apply-templates select="pagetitle"/> - For Gecko </title> </head> <body> <xsl:apply-templates select="pagebody"/> </body> </html> </xsl:template> <xsl:template match="pagebody"> <xsl:apply-templates/> </xsl:template> <xsl:template match="heading"> <h1><xsl:apply-templates/></h1> </xsl:template> <xsl:template match="para"> <p><xsl:apply-templates/></p> </xsl:template> </xsl:stylesheet> Index: database.xml =================================================================== RCS file: /cvsroot/net-script/netscript2/src/scripts/database.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** database.xml 29 Oct 2002 11:52:41 -0000 1.2 --- database.xml 31 May 2003 22:41:31 -0000 1.3 *************** *** 6,10 **** # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomä, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> --- 6,10 ---- # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> Index: files.xml =================================================================== RCS file: /cvsroot/net-script/netscript2/src/scripts/files.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** files.xml 29 Oct 2002 11:52:41 -0000 1.2 --- files.xml 31 May 2003 22:41:31 -0000 1.3 *************** *** 6,10 **** # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomä, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> --- 6,10 ---- # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> Index: forms.xml =================================================================== RCS file: /cvsroot/net-script/netscript2/src/scripts/forms.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** forms.xml 29 Oct 2002 11:52:41 -0000 1.2 --- forms.xml 31 May 2003 22:41:31 -0000 1.3 *************** *** 6,10 **** # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomä, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> --- 6,10 ---- # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> Index: rimport_src.xml =================================================================== RCS file: /cvsroot/net-script/netscript2/src/scripts/rimport_src.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rimport_src.xml 29 Oct 2002 11:52:41 -0000 1.3 --- rimport_src.xml 31 May 2003 22:41:31 -0000 1.4 *************** *** 6,10 **** # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomä, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> --- 6,10 ---- # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> Index: rimport_trg.xml =================================================================== RCS file: /cvsroot/net-script/netscript2/src/scripts/rimport_trg.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rimport_trg.xml 29 Oct 2002 11:52:41 -0000 1.3 --- rimport_trg.xml 31 May 2003 22:41:31 -0000 1.4 *************** *** 6,10 **** # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomä, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> --- 6,10 ---- # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> Index: strings.xml =================================================================== RCS file: /cvsroot/net-script/netscript2/src/scripts/strings.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** strings.xml 29 Oct 2002 11:52:41 -0000 1.2 --- strings.xml 31 May 2003 22:41:31 -0000 1.3 *************** *** 6,10 **** # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomä, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> --- 6,10 ---- # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> Index: upload.xml =================================================================== RCS file: /cvsroot/net-script/netscript2/src/scripts/upload.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** upload.xml 29 Oct 2002 11:52:41 -0000 1.2 --- upload.xml 31 May 2003 22:41:31 -0000 1.3 *************** *** 6,10 **** # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomä, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> --- 6,10 ---- # NetScript and all related materials, such as documentation, # are protected under the terms and conditions of the Artistic License. ! # (C) 2000-2002 by Jan Thomae, insOMnia # mailto: ko...@in... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> |