This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Matching attributes that contain both &pos; and "
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Matching attributes that contain both &pos; and "
- From: Matthew Bentley <Matthew dot bentley at brookers dot co dot nz>
- Date: Tue, 12 Sep 2000 09:29:06 +1200
- Reply-To: xsl-list at mulberrytech dot com
>To prevent circularity. Consider:
><xsl:variable name="preferred">
> <xsl:call-templates select="get-preferred"/>
></xsl:variable>
><xsl:template name="get-preferred">
> <xsl:apply-templates select="//item" mode="get"/>
></xsl:template>
><xsl:template match="item[$preferred]" mode="get">
> <xsl:value-of select="."/>
></xsl:template>
Forgive me, but I'm a bit confused - how is this circular?
Cheers,
M@
******************************************************************
Warning: This email, including any attachments,
is for the use of the intended recipient(s) only.
Republication and redissemination,
including posting to news groups or web pages,
is strictly prohibited without the express prior consent of Brooker's Limited.
******************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list