Skip to content
Snippets Groups Projects
Commit 2f2ddf0f authored by Goik Martin's avatar Goik Martin
Browse files

ID handling for qandaset corrected

parent 7290f7fb
No related branches found
No related tags found
No related merge requests found
......@@ -50,12 +50,13 @@
<xsl:template match="db:answer">
<db:answer>
<xsl:variable name="proximaParentId" select="ancestor::*[@xml:id and position()=1]/@xml:id"/>
<xsl:choose>
<xsl:when test="following::db:qandaentry[@xml:id=$lastAnswerId] or parent::db:qandaentry[@xml:id=$lastAnswerId]">
<xsl:when test="following::*[@xml:id=$lastAnswerId] or ancestor::*[@xml:id=$lastAnswerId]">
<xsl:copy-of select="*"/>
</xsl:when>
<xsl:otherwise>
<para>Answer id=<xsl:value-of select="parent::db:qandaentry/@xml:id"/> not yet published.</para>
<para>Answer id=<xsl:value-of select="ancestor::*[@xml:id][1]/@xml:id"/> not yet published.</para>
</xsl:otherwise>
</xsl:choose>
</db:answer>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment