J
Johannes Busse
Hello NG,
a short question: is it possible to look up the result-tree of an
XSL-transformation also?
We have the problem to process a literature-database:
- write out an entry for each book (trivial)
- write out an entry for each author of the book (trivial)
*if and only if this author was not allocated yet*.
We have solved this problem yet like this:
<xsl:template match="author">
<xsl:choose>
<xsl:when test=" preceding-sibling::BookEntry/author = .">
<!-- we have had processed this author yet;
nothing to do -->
</xsl:when>
<xsltherwise>
<!-- allocate the author -->
</xsltherwise>
</xsl:choose>
</xsl:template>
That' fine, it works. But in other cases it would be much more easy to
look up the result-tree. Is it possible?
Thank you!
herzliche Grüße
Johannes Busse
a short question: is it possible to look up the result-tree of an
XSL-transformation also?
We have the problem to process a literature-database:
- write out an entry for each book (trivial)
- write out an entry for each author of the book (trivial)
*if and only if this author was not allocated yet*.
We have solved this problem yet like this:
<xsl:template match="author">
<xsl:choose>
<xsl:when test=" preceding-sibling::BookEntry/author = .">
<!-- we have had processed this author yet;
nothing to do -->
</xsl:when>
<xsltherwise>
<!-- allocate the author -->
</xsltherwise>
</xsl:choose>
</xsl:template>
That' fine, it works. But in other cases it would be much more easy to
look up the result-tree. Is it possible?
Thank you!
herzliche Grüße
Johannes Busse