[Home] [By Thread] [By Date] [Recent Entries]
andrew welch wrote:
On 7/19/06, Jeff Sese <jsese@xxxxxxxxxxxx> wrote: How about? <xsl:variable name="min" select="number(substring-before(.,'-'))" />
<xsl:variable name="max" select="number(substring-after(.,'-'))" />
<xsl:variable name="id" select="current()/@id" />
document('source2.xml')/entry[
(@id=current()/@id)
and (@type=current()/@type)
and ((@n=current()/@n)
or @n[matches(.,'-')
and ($min <= current()/@n)
and ($max >= current()/@n)]
)
]Fixed typo ('cunrrent'), added brackets for clarity, replaced '>' with '>'
|

Cart



