[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Mon Mar 29 19:51:52 UTC 2010


gordonp
Mon Mar 29 15:51:51 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/resources
In directory dev.open-bio.org:/tmp/cvs-serv10396/src/main/ca/ucalgary/seahawk/resources

Modified Files:
	moby2HTML.xsl 
Log Message:
Added span elements to facilitate Seahawk grey-out/highlight of filter function
moby-live/Java/src/main/ca/ucalgary/seahawk/resources moby2HTML.xsl,1.5,1.6
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/resources/moby2HTML.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/resources/moby2HTML.xsl	2010/03/17 20:21:55	1.5
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/resources/moby2HTML.xsl	2010/03/29 19:51:51	1.6
@@ -172,9 +172,10 @@
   <!-- ****************************************************** -->
 
   <xsl:template match="moby:mobyData | mobys:mobyData | mobyData">
+    <xsl:variable name="xptr"><xsl:call-template name="getXPointer"/></xsl:variable>
 
     <!-- Create the hit summary information  -->
-    <table width="100%" border="1" cellpadding="2" cellspacing="0">
+    <table width="100%" border="1" cellpadding="2" cellspacing="0" id="{$xptr}">
       <tr align="left" colspan="2"><th>MOBY Data for query 
       <xsl:value-of select="@moby:queryID | @mobys:queryID | @queryID"/>
       </th></tr>
@@ -219,26 +220,26 @@
   <!-- Base Object class, has a namespace and ID. That's it. -->
   <xsl:template match="moby:Object | mobys:Object | Object" mode="elucidate">
     <xsl:variable name="xptr"><xsl:call-template name="getXPointer"/></xsl:variable>
-    <a href="{$sourceURL}#{$xptr}">ID <xsl:value-of select="@moby:namespace | @mobys:namespace | @namespace"/>:<xsl:value-of select="@moby:id | @mobys:id | @id"/> (<xsl:value-of select="@moby:articleName | @mobys:articleName | @articleName"/>)</a><xsl:text> </xsl:text>
+    <span id="{$xptr}"><a href="{$sourceURL}#{$xptr}">ID <xsl:value-of select="@moby:namespace | @mobys:namespace | @namespace"/>:<xsl:value-of select="@moby:id | @mobys:id | @id"/> (<xsl:value-of select="@moby:articleName | @mobys:articleName | @articleName"/>)</a><xsl:text></xsl:text></span>
     <xsl:apply-templates select="moby:CrossReference | mobys:CrossReference | CrossReference" mode="elucidate"/>
   </xsl:template>  <!-- end Object template -->
 
   <xsl:template match="moby:String | mobys:String | String" mode="elucidate">
     <xsl:variable name="xptr"><xsl:call-template name="getXPointer"/></xsl:variable>
-    <a href="{$sourceURL}#{$xptr}">String <xsl:if test="string-length(@moby:namespace | @mobys:namespace | @namespace)"><xsl:value-of select="@moby:namespace | @mobys:namespace | @namespace"/>:</xsl:if><xsl:if test="string-length(@moby:id | @mobys:id | @id)"><xsl:value-of select="@moby:id | @mobys:id | @id"/> </xsl:if>(<xsl:value-of select="@moby:articleName | @mobys:articleName | @articleName"/>)</a>: <xsl:value-of select="."/><br/>
+    <span id="{$xptr}"><a href="{$sourceURL}#{$xptr}">String <xsl:if test="string-length(@moby:namespace | @mobys:namespace | @namespace)"><xsl:value-of select="@moby:namespace | @mobys:namespace | @namespace"/>:</xsl:if><xsl:if test="string-length(@moby:id | @mobys:id | @id)"><xsl:value-of select="@moby:id | @mobys:id | @id"/> </xsl:if>(<xsl:value-of select="@moby:articleName | @mobys:articleName | @articleName"/>)</a>: <xsl:value-of select="."/></span><br/>
     <xsl:apply-templates select="moby:CrossReference | mobys:CrossReference | CrossReference" mode="elucidate"/>
   </xsl:template>  <!-- end String template -->
 
   <xsl:template match="moby:Integer | mobys:Integer | Integer | moby:Float | mobys:Float | Float | moby:Boolean | mobys:Boolean | Boolean | moby:DateTime | mobys:DateTime | DateTime" mode="elucidate">
     <xsl:variable name="xptr"><xsl:call-template name="getXPointer"/></xsl:variable>
-    <a href="{$sourceURL}#{$xptr}"><xsl:value-of select="@moby:articleName | @mobys:articleName | @articleName"/></a> (<xsl:value-of select="local-name(.)"/>): <xsl:value-of select="."/><br/>
+    <span id="{$xptr}"><a href="{$sourceURL}#{$xptr}"><xsl:value-of select="@moby:articleName | @mobys:articleName | @articleName"/></a> (<xsl:value-of select="local-name(.)"/>): <xsl:value-of select="."/></span><br/>
   </xsl:template> <!-- end Integer template -->
 
   <!-- Should match more complex objects -->
   <xsl:template match="*" mode="elucidate">
     <xsl:variable name="num_members" select="count(*)"/>
     <xsl:variable name="xptr"><xsl:call-template name="getXPointer"/></xsl:variable>
-    <table border="1"><tr><th align="left" colspan="{$num_members+1}"><a href="{$sourceURL}#{$xptr}">
+    <table border="1" id="{$xptr}"><tr><th align="left" colspan="{$num_members+1}"><a href="{$sourceURL}#{$xptr}">
     <xsl:value-of select="local-name(.)"/> (ID <xsl:value-of select="@moby:namespace | @mobys:namespace | @namespace"/>:<xsl:value-of select="@moby:id | @mobys:id | @id"/>)</a></th></tr>
     <xsl:for-each select="*">
       <tr><td><xsl:apply-templates select="." mode="elucidate"/></td></tr>




More information about the MOBY-guts mailing list