All,

I've previously had problems getting iProphet .prot.xml to display
correctly when using xsltproc on Fedora Core 8 as the xslt processor.
Everything worked with Xalan but not xsltproc, and error messages
where confusing. I've now had a chance to debug the xsl, and the issue
is that an xsl:param tag is incorrectly positioned - it is not the
first entry in its xsl:template tag. Xalan was coping with this, but
xsltproc does not like it. The following change to protxml2html.pl
fixes this problem:

Move protxml2html.pl line 4727 above line 4726, e.g.

print XSL '<xsl:template match="protx:indistinguishable_peptide">';
print XSL '<xsl:variable name="PepMass"><xsl:if
test="@calc_neutral_pep_mass"><xsl:value-of
select="@calc_neutral_pep_mass"/></xsl:if></xsl:variable>';
print XSL '<xsl:param name="mypep"/>';

becomes:

print XSL '<xsl:template match="protx:indistinguishable_peptide">';
print XSL '<xsl:param name="mypep"/>';
print XSL '<xsl:variable name="PepMass"><xsl:if
test="@calc_neutral_pep_mass"><xsl:value-of
select="@calc_neutral_pep_mass"/></xsl:if></xsl:variable>';

This was easy to find by running everything through saxon-xslt, an
alternative processor which tends to give vastly more helpful and
specific error messages than xsltproc.

Cheers,

DT

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"spctools-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/spctools-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to