Click here to Skip to main content
12,255,431 members (29,022 online)

Web Development

 
GeneralRe: SMTP Programming Pin
DisIsHoody11-Dec-12 9:40
memberDisIsHoody11-Dec-12 9:40 
GeneralRe: SMTP Programming Pin
Richard MacCutchan11-Dec-12 10:26
mvpRichard MacCutchan11-Dec-12 10:26 
GeneralRe: SMTP Programming Pin
DisIsHoody11-Dec-12 10:44
memberDisIsHoody11-Dec-12 10:44 
GeneralRe: SMTP Programming Pin
Richard MacCutchan11-Dec-12 10:58
mvpRichard MacCutchan11-Dec-12 10:58 
GeneralRe: SMTP Programming Pin
DisIsHoody11-Dec-12 11:20
memberDisIsHoody11-Dec-12 11:20 
QuestionXSLT Transforms - how to get just some of in a for-each Pin
QuickBooksDev8-Dec-12 2:26
memberQuickBooksDev8-Dec-12 2:26 
AnswerRe: XSLT Transforms - how to get just some of in a for-each Pin
Chris Grove13-Dec-12 19:46
memberChris Grove13-Dec-12 19:46 
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
QuickBooksDev17-Dec-12 0:42
memberQuickBooksDev17-Dec-12 0:42 
Thanks

Yes, using the Position() function did help but part 2 of this was still a lot more code that had to be added to complete what I needed to and I do not like it.

<b>How do we code for the mininum number of iternations when the input XML has less than the minimum?</b>

The Position did limit the output to the number of iterations we needed to see but it did nothing to fill in if the number of iterations was LESS that what we expected.

In our case the input XML had a length attribute.
<pre lang="xml">
<Opt length="1"><Opts>data</Opts></Opt></pre>

So we had to add a bunch of if or choose statements
<xls:if test="@length = "1">
...fill put in 4 output empty values
</xls:if>
<xls:if test="@length = "2">
...fill put in 3 output empty values
</xls:if>

Is there a better way?

-- modified 17-Dec-12 6:52am.
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
Chris Grove17-Dec-12 3:43
memberChris Grove17-Dec-12 3:43 
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
QuickBooksDev17-Dec-12 4:55
memberQuickBooksDev17-Dec-12 4:55 
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
Chris Grove17-Dec-12 5:43
memberChris Grove17-Dec-12 5:43 
QuestionPop Up JQuery Quick Link Pin
Janiel Major5-Dec-12 22:02
memberJaniel Major5-Dec-12 22:02 
AnswerRe: Pop Up JQuery Quick Link Pin
vbmike7-Dec-12 4:09
membervbmike7-Dec-12 4:09 
AnswerRe: Pop Up JQuery Quick Link Pin
ryanb3112-Dec-12 4:41
memberryanb3112-Dec-12 4:41 
Question[HELP] Whois can using PHP to generate this one? Pin
jimmy.suharry4-Dec-12 21:37
memberjimmy.suharry4-Dec-12 21:37 
AnswerRe: [HELP] Whois can using PHP to generate this one? Pin
S.M. Zamshed Farhan12-Jan-13 5:54
memberS.M. Zamshed Farhan12-Jan-13 5:54 
QuestionTool for big WEB project with huge loads Pin
Junoli2-Dec-12 9:37
memberJunoli2-Dec-12 9:37 
AnswerRe: Tool for big WEB project with huge loads Pin
Richard A. Abbott2-Dec-12 10:47
memberRichard A. Abbott2-Dec-12 10:47 
Questionselect an item in gridview Pin
ptvce2-Dec-12 1:50
memberptvce2-Dec-12 1:50 
AnswerRe: select an item in gridview Pin
Richard MacCutchan2-Dec-12 3:00
mvpRichard MacCutchan2-Dec-12 3:00 
Questioni php question Pin
gamaan1-Dec-12 4:00
membergamaan1-Dec-12 4:00 
AnswerRe: i php question Pin
gamaan1-Dec-12 4:03
membergamaan1-Dec-12 4:03 
AnswerRe: i php question Pin
S.M. Zamshed Farhan12-Jan-13 6:03
memberS.M. Zamshed Farhan12-Jan-13 6:03 
QuestionHTML Pin
DivyamS30-Nov-12 19:35
memberDivyamS30-Nov-12 19:35 
AnswerRe: HTML Pin
S.M. Zamshed Farhan15-Jan-13 4:21
memberS.M. Zamshed Farhan15-Jan-13 4:21 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 3 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid