[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: Displaying every 2 element values in 1 rowyy
Subject: Re: Displaying every 2 element values in 1 rowyy From: Mike Brown <mike@xxxxxxxx> Date: Wed, 26 Apr 2000 18:09:55 -0600 (MDT) |
> Mike,Sorry for prolonging this question.But what am I doing wrong here?. > > This is my xml > <empdb> > <emp> > <eno>A21</eno> > </emp> [etc] > </empdb> Well how can I write a solution for you if you are going to keep changing the XML on me? > And I used ur xsl as follows: > > <xsl:template match="empdb//emp"> Here you are saying you want this template to match an 'emp' element that is a descendant of an 'empdb' element. This will match any of the 'emp' elements in your document. That might be OK, but there are 2 things you have to consider: 1. How did you arrive at an 'emp' element that this template is matching? Did built-in templates get you here? Are you going to be arriving at every 'emp' or just some of them? The match attribute here has nothing to do with this. Look at the apply-templates instructions in other templates, including built-in ones. 2. Is the template going to do what you want to do when you arrive at an 'emp' element? I wrote it for the simpler case of many 'eno' elements in a single container. I'm not going to write another solution for you again. - Mike ___________________________________________________________ Mike J. Brown, software engineer, Webb Interactive Services XML/XSL stuff: http://www.skew.org/ http://www.webb.net/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Displaying every 2 element valu, Selva, Francis | Thread | how to call a named template with a, Donald Ball |
Re: Broken link problems anyone?, Mike Brown | Date | Re: including the HTML <BR> in XSL , Betty L. Harvey |
Month |