[prev in list] [next in list] [prev in thread] [next in thread] 

List:       forrest-dev
Subject:    svn commit: r577475 -
From:       rgardler () apache ! org
Date:       2007-09-19 23:50:03
Message-ID: 20070919235003.668A21A9832 () eris ! apache ! org
[Download RAW message or body]

Author: rgardler
Date: Wed Sep 19 16:50:02 2007
New Revision: 577475

URL: http://svn.apache.org/viewvc?rev=577475&view=rev
Log:
A few more elements are now handled correctly

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl


Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
                
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest. \
plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl?rev=577475&r1=577474&r2=577475&view=diff
 ==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl \
                (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl \
Wed Sep 19 16:50:02 2007 @@ -41,7 +41,7 @@
                 <xsl:value-of select="foaf:name" />
             </title>
 
-            <xsl:apply-templates select="foaf:depiction/@rdf:resource" />
+            <xsl:apply-templates select="foaf:depiction" />
 
                 <table>
                     <tr>
@@ -65,7 +65,7 @@
                         </td>
                     </tr>
                     
-                    <xsl:apply-templates select="*[not(local-name(.) = 'knows') and \
not(local-name(.) = 'holdsAccount')  and not(local-name(.) = 'currentProject')]"/> +  \
<xsl:apply-templates select="*[not(local-name(.) = 'depiction') and not(local-name(.) \
= 'knows') and not(local-name(.) = 'holdsAccount')  and not(local-name(.) = \
'currentProject')]"/>  </table>
                     
                 <xsl:if test="foaf:currentProject">
@@ -215,10 +215,10 @@
         </xsl:for-each>
     </xsl:template>
 
-    <xsl:template match="foaf:depiction/@rdf:resource">
+    <xsl:template match="foaf:depiction">
         <p>
-            <img src="{foaf:depiction/@rdf:resource}" height="120"
-                border="0" />
+            <img src="{@rdf:resource}" height="120"
+                border="0" alt="depiction"/>
         </p>
     </xsl:template>
 
@@ -235,18 +235,16 @@
         <tr>
             <td>Nick</td>
             <td>
-                <xsl:value-of select="foaf:nick" />
+                <xsl:value-of select="." />
             </td>
         </tr>
     </xsl:template>
 
-    <xsl:template match="foaf:phone/@rdf:resource">
+    <xsl:template match="foaf:phone">
         <tr>
             <td>Phone</td>
             <td>
-                <link href="{foaf:phone/@rdf:resource}">
-                    <xsl:value-of select="foaf:phone/@rdf:resource" />
-                </link>
+              <xsl:apply-templates select="@*"/>
             </td>
         </tr>
     </xsl:template>
@@ -294,7 +292,7 @@
         </xsl:choose>
     </xsl:template>
 
-    <xsl:template match="foaf:schoolHomepage/@rdf:resource">
+    <xsl:template match="foaf:schoolHomepage">
         <tr>
             <td>School Homepage</td>
             <td>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic