Subject: Re: [xsl] fixed position From: James Melton <james.melton@xxxxxxxxxxx> Date: Wed, 01 Aug 2001 14:30:24 -0400 |
You didn't actually answer these questions: 1) What if there is no "Solution" in the input? Is output then undefined? 2) Are there any other ordering requirements besides that "Solution" be fourth? 3) What if there are less than four item elements? There may be more questions before this is fully specified, but these are the initial ones that come to mind. Jim. Meltem Kogelbauer wrote: > > Ther will be always data "Solution" which has to be displayed in the 4th > position. That's the requirement. First I was thinking using variables but > it did not quite work well. I am thinking now to filter out "solution" first > and use a case statement where in the the loop when the position is 4, it > should write the "solution". I don't know if I am on the right track though. > > Meltem > > -----Original Message----- > From: James Melton [mailto:james.melton@xxxxxxxxxxx] > Sent: Wednesday, August 01, 2001 6:59 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] fixed position > > The question is somewhat confusing. Are you putting out only text found > inside an item element? If so are you imposing a particular order on all > of the output? Are you only concerned with the ordering of "Solution" > and nothing else? What if no "Solution" appears in the input? What if > there are only three items, and "Solution" cannot be the fourth since > there are not four? > > Jim. > > Meltem Kogelbauer wrote: > > > > Hi all > > > > here is an xml document > > <data> > > <item>Solution</item> > > <item>Business</item> > > <item>Strategy</item> > > <item>Technology</item> > > <item>Problem</item> > > ................... > > </data> > > > > the output will be as > > > > Business Strategy Technology Solution Problem ........ > > > > the position of "Solution" may change in the xml file but it has to appear > > in the 4th position always. > > > > Does anybody have a good idea for this? > > > > Thanks in advance > > > > Meltem > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > -- > > ____________________________________________________________ > James Melton CyLogix > 609.750.5190 609.750.5100 > james.melton@xxxxxxxxxxx www.cylogix.com > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list -- ____________________________________________________________ James Melton CyLogix 609.750.5190 609.750.5100 james.melton@xxxxxxxxxxx www.cylogix.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] fixed position, Meltem Kogelbauer | Thread | Re: [xsl] fixed position, Kevin Nardi |
Re: [xsl] Quick one - can attribute, Adam Turoff | Date | Re: [xsl] fixed position, Wendell Piez |
Month |