Re: xinclude, temp trees, and keys
<xsl:for-each-group select="//db:biblioref/@linkend" group-by="."> <xsl:if test="position() > 1">,%20</xsl:if> <xsl:text>'</xsl:text> <xsl:value-of select="."/> <xsl:text>'</xsl:text> </xsl:for-each-group>
So if in other contexts I need to be able to know the first occurrence of a unique value, then I want to be using the above approach?
Incidentally, the ' could just as well be written '.
The concrete case is to account for two different scenarios:
1) an article 2) a book, which may have xincluded chapters (as mine does)
So, I need to scan the complete document (including the outside chapters which I [expletive deleted] into a temporary tree) for citation references, then use the unique values from that to construct a query that I send via the doc() function to eXist, taking the returned results an adding it to the temporary tree.
As I thought about this more, then, it's starting to seem like I need another pass:
1) xinclude content 2) resolve citation references and include them 3) work with temporary tree enhancing data where necessary 4) pass off to main stylesheets for final rendering
Does that seem right?
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format