Subject: RE: [xsl] forward references from non-ordered input? From: Graham Seaman <graham@xxxxxxxxx> Date: Tue, 18 Sep 2001 17:27:51 +0100 (BST) |
On Thu, 13 Sep 2001, Michael Kay wrote: > One solution, simple though not particularly elegant, is to output anchors > (<a name=...>) for the elements that are absent as well as those that are > present. Then your forward reference can always point to the next element, <snip> > > Another approach that occurs to me is to have a global variable containing a > comma-separated list of the items > > <xsl:variable name="list" select="xyz,abc,def,..."/> > > Instead of the hard-coded sequence of apply-templates calls you could then > do a recursive traversal of this list, at each stage taking the name of the > current element as the first item in the list and the name of the next one > as the second element, and making the recursive call strip off the first > item in the list in the usual way. > I took the second of these options and it works fine. Many thanks to both you and David Carlisle for your help. Graham (not sure of conventions in this mailing list - seems rude not to say thank you, but given the volume of mail hope people don't feel I'm cluttering it unnecessarily...) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] forward references from n, Michael Kay | Thread | [xsl] Re: XSL-List Digest V3 #1090, Gustaf Liljegren |
[xsl] [ANN] FW: WH2FO FOA, Chris Bayes | Date | RE: [xsl] Is this a valid expressio, Michael Kay |
Month |