(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 19 Aug 2006 23:54:01 +0000 (23:54 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 19 Aug 2006 23:54:01 +0000 (23:54 +0000)
crawler/kiss/src/identity.xsl
crawler/kiss/src/mainpage.xsl [new file with mode: 0644]

index ff5ec35a28108fc095da7c63d5cec5b1934c04c1..822e8e837e0e592ad7f4caa3ef52116ceabd4ecf 100644 (file)
@@ -10,8 +10,4 @@
     </xsl:copy>
   </xsl:template>
   
-  <xsl:template match="body">
-    Hello!!!
-  </xsl:template>
-  
 </xsl:stylesheet>
diff --git a/crawler/kiss/src/mainpage.xsl b/crawler/kiss/src/mainpage.xsl
new file mode 100644 (file)
index 0000000..11c81fc
--- /dev/null
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xhtml="http://www.w3.org/1999/xhtml"
+    version="1.0">
+    
+    <xsl:output method="xml"/>
+    <xsl:strip-space elements="*"/>
+    
+    <!-- =====================================================
+        Copying template.
+        ===================================================== -->
+    <xsl:template match="@*|node()" mode="copy">
+        <xsl:copy>
+            <xsl:apply-templates select="@*|node()" mode="copy"/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="/">
+        <xsl:element name="loginform">
+            <xsl:apply-templates select="//xhtml:form"/>     
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="//xhtml:form">
+        <xsl:element name="action">
+            <xsl:attribute name="name">login</xsl:attribute>
+            <xsl:attribute name="reference"><xsl:value-of select="@action"/></xsl:attribute>
+            <xsl:attribute name="type">login</xsl:attribute>
+            <xsl:apply-templates select="//xhtml:input[@type='hidden']"/>     
+        </xsl:element>
+       
+    </xsl:template>
+    
+    <xsl:template match="xhtml:input">
+        <xsl:element name="param">
+            <xsl:attribute name="name">
+                <xsl:value-of select="@name"/>
+            </xsl:attribute>
+            <xsl:attribute name="value">
+                <xsl:value-of select="@value"/>
+            </xsl:attribute>
+        </xsl:element>
+    </xsl:template>
+</xsl:stylesheet>