Open SourceForge-exporter opened 19 years ago
Logged In: NO
[Comment by aquinn - can't log in to SourceForge for some reason]:
This relates to MIF 1.0. I added a 'psi:' namespace prefix in MIF 2.5 - see [http://cvs.sourceforge.net/viewcvs.py/psidev/psi/mi/rel25/tools/MIF25\_compact.xsl?rev=1.2&view=auto]. The "typo" has been present for nearly 3 years [http://cvs.sourceforge.net/viewcvs.py/psidev/psi/mi/xml/src/MIF\_compact.xsl?rev=1.1&view=markup]
I can't check out from CVS at the moment (yet another problem on the SourceForge CVS server) so I will try to fix by 5 May 2006.
Original comment by: nobody
Logged In: YES user_id=1069984
Fixing typo did not cause a problem. However, adding the namespace prefix highlighted a problem that has always existed but is only apparent when using an explicit namespace: the experimentList template adds experimentDescription nodes to all experimentList elements, even those under interactionList/interaction/experimentList that should be experimentRef. I don't know why using a namespace prefix should cause this, so I am leaving the file as it is for now.
Original comment by: aquinn
Logged In: YES user_id=1069984
See previous comment.
Using an explicit path match might solve the problem, that is change:
xsl:template match="psi:experimentList"
to:
xsl:template match="psi:entry/psi:experimentList"
Original comment by: aquinn
I've tried to use the MIF_compact.xml stylesheet that you can download and, I believe, has a typo in line 85. I reads:
<xsl:template match="interactionList//ProteinInteractor" >
and it should be:
<xsl:template match="interactionList//proteinInteractor" >
being proteinInteractor spelled with lower 'p'.
Also, the stylesheet does not work with xsltproc. In order to use it, I had to change line 17:
xmlns="net:sf:psidev:mi"
for:
xmlns:mif="net:sf:psidev:mi"
and replace every xpath node with the respective name space "mif" like this:
<xsl:template match="mif:availabilityList" >
Reported by: *anonymous