Click here to Skip to main content
15,893,722 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: XML Expert Advice Needed! XMLDOM VS XML Reader Pin
Ian Bowler1-Apr-05 6:11
Ian Bowler1-Apr-05 6:11 
GeneralRe: XML Expert Advice Needed! XMLDOM VS XML Reader Pin
raman_learn10-Apr-05 18:44
raman_learn10-Apr-05 18:44 
GeneralQuery Engine Error Pin
dotnetquery31-Mar-05 0:09
dotnetquery31-Mar-05 0:09 
Generalabout gml maps Pin
reneemarukot29-Mar-05 4:46
reneemarukot29-Mar-05 4:46 
QuestionHow do you get the underlying stylesheet content of an XslTransform object Pin
sliu0@yahoo.com26-Mar-05 5:28
susssliu0@yahoo.com26-Mar-05 5:28 
QuestionXSL-Transforming a nestet structure to a flat structure - possible? Pin
Uwe Keim25-Mar-05 19:15
sitebuilderUwe Keim25-Mar-05 19:15 
Generaldynamically creating selection box in xslt Pin
jignatiu22-Mar-05 23:44
jignatiu22-Mar-05 23:44 
GeneralRe: dynamically creating selection box in xslt Pin
jignatiu22-Mar-05 23:53
jignatiu22-Mar-05 23:53 
Reposting as the 1st post had some parts missing

I have the following code:


Start Date






2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010



which gives me a selection box with years from 2000 to 2010 and it is working properly. However, I wanted to make it more generic displaying years from current year - 5 to current year + 5. For that I have the following function:

function getYearListBoxOptions()
{
var sYear;
var sOptions = "";
var dateNow;
var i = 0;

dateNow = new Date();
sYear = dateNow.getYear() - 5;

for (i=0; i < 11; i++)
{
sOptions = sOptions + "" + (sYear + i) + ""
}
return sOptions;
}

Now, the xsl looks like this:





But, I am getting an empty selection box...Can somebody tell me what is going wrong?
GeneralRe: dynamically creating selection box in xslt Pin
DavidNohejl23-Mar-05 1:40
DavidNohejl23-Mar-05 1:40 
GeneralRe: dynamically creating selection box in xslt Pin
jignatiu24-Mar-05 0:57
jignatiu24-Mar-05 0:57 
QuestionWhat is the difference between Xpath/XSL/XSLT Pin
satishrg16-Mar-05 14:05
satishrg16-Mar-05 14:05 
AnswerRe: What is the difference between Xpath/XSL/XSLT Pin
DavidNohejl17-Mar-05 6:22
DavidNohejl17-Mar-05 6:22 
GeneralRe: What is the difference between Xpath/XSL/XSLT Pin
raman_learn10-Apr-05 18:50
raman_learn10-Apr-05 18:50 
Generalsqlcommand Pin
Anonymous16-Mar-05 4:27
Anonymous16-Mar-05 4:27 
GeneralRe: sqlcommand Pin
raman_learn10-Apr-05 18:51
raman_learn10-Apr-05 18:51 
GeneralConditional Tables Pin
Bassam Abdul-Baki16-Mar-05 2:31
professionalBassam Abdul-Baki16-Mar-05 2:31 
GeneralRe: Conditional Tables Pin
DavidNohejl17-Mar-05 6:47
DavidNohejl17-Mar-05 6:47 
GeneralRe: Conditional Tables Pin
Bassam Abdul-Baki18-Mar-05 7:04
professionalBassam Abdul-Baki18-Mar-05 7:04 
GeneralRe: Conditional Tables Pin
raman_learn10-Apr-05 19:04
raman_learn10-Apr-05 19:04 
GeneralRe: Conditional Tables Pin
Bassam Abdul-Baki11-Apr-05 2:04
professionalBassam Abdul-Baki11-Apr-05 2:04 
GeneralLearning XML :confused: Pin
ComplexLifeForm15-Mar-05 7:25
ComplexLifeForm15-Mar-05 7:25 
GeneralRe: Learning XML :confused: Pin
DavidNohejl15-Mar-05 9:00
DavidNohejl15-Mar-05 9:00 
GeneralProblem while savinh an XML file Pin
MaheshKumarV15-Mar-05 3:18
MaheshKumarV15-Mar-05 3:18 
GeneralRe: Problem while savinh an XML file Pin
Wilbur J. Pereira29-Mar-05 2:54
Wilbur J. Pereira29-Mar-05 2:54 
GeneralHacked Pin
lawson0014-Mar-05 6:37
lawson0014-Mar-05 6:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.