Re: XML overlap - processing a node-set defined by <s
is another good paper.
there are a few ways to skin this cat;
Until I found out more about the later mentioned validator build on Saxon, my XSLT related question is this:
<xsl:variable name="precedingStarts" select="count(preceding::text:start)"/>
<xsl:if test="$precedingStarts != 0"> <xsl:variable name="followingEnds" select="count(following::text:end)"/> <xsl:if test="$precedingStarts = $followingEnds"> <!-- do something --> </xsl:if> </xsl:if>
its like the alternate row colour problem for tables, e.g. (position() - 1) mod 2
u could even eschew start and end and just use single text:mark element
irregardless of how you are keying your text: element(s) where just remember that your 1st text:element to 2nd text:element would be your first range, 3rd text:element to 4th text:element be your second range, etc...
u could prob optimise using xsl:key as well.
dont know, dont have enough time to try it myself.
Is there any possibility to cache this?
gl, James Fuller
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