News for hackers. Stuff that matters.
Re:Things XSLT can't do (2012) by lbenes on Sunday January 29, 2017 @02:39PM (#13516129)
I flagged this article. It needs a [2003] tag to indicate that's it's completely outdated and obsolete.
Re:Things XSLT can't do (2012) by r00fus on Sunday January 29, 2017 @03:25PM (#13516384)
Unfortunately, it's still valid for the most part. You can't reassign variables, but instead are forced to if-blocks within variable assignments to e.g. assign c node if it exists, otherwise b.

<xsl:variable name="BorC"> <xsl:choose> <xsl:when test="/a/b/c"> <xsl:value-of select="/a/b/c"> </xsl:when> <xsl:otherwise> <xsl:value-of select="/a/b"> </xsl:otherwise> </xsl:choose> </xsl:variable>

Re:Things XSLT can't do (2012) by trmsw on Sunday January 29, 2017 @05:28PM (#13517167)
XPath 2 supports conditionals so you could put all that in a single select expression.