While you are converting the code, you must get rid of these ugly attributes disable-output-escaping = "yes". They almost certainly do not want. Using this attribute usually indicates that it was written by a beginner with a poor understanding of the language. This also applies to the use of detailed designs such as
<xsl:element name="a"><xsl:attribute name="href">http://events.stanford.edu/e/e/?d=<xsl:value-of select="replace(detailpath,'/events/','')"/></xsl:attribute><xsl:attribute name="id"><xsl:value-of select="eventID"/></xsl:attribute><xsl:attribute name="rel">external</xsl:attribute>
<xsl:value-of select="title" disable-output-escaping="yes"/>
</xsl:element>
which can be replaced by much more readable
<a href="http://events.stanford.edu/e/e/?d={replace(detailpath,'/events/','')}"
id="{@eventID}" rel="external">
<xsl:value-of select="title"/>
</a>
As a rule, some refactorings are long delayed for this code.
source
share