Click here to Skip to main content
15,917,627 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow should I measure scroll position in different browsers Pin
woomla17-Dec-12 21:52
woomla17-Dec-12 21:52 
AnswerRe: How should I measure scroll position in different browsers Pin
Zaf Khan19-Dec-12 5:46
Zaf Khan19-Dec-12 5:46 
QuestionBest Web Technologies Pin
emadns12-Dec-12 3:40
emadns12-Dec-12 3:40 
AnswerRe: Best Web Technologies Pin
David Mujica12-Dec-12 4:22
David Mujica12-Dec-12 4:22 
AnswerRe: Best Web Technologies Pin
achantayamini17-Dec-12 22:05
achantayamini17-Dec-12 22:05 
AnswerRe: Best Web Technologies Pin
jfmorgan33331-Dec-12 10:01
jfmorgan33331-Dec-12 10:01 
QuestionJSP and JSTL and so on ... Pin
SheraX11-Dec-12 6:20
SheraX11-Dec-12 6:20 
AnswerRe: JSP and JSTL and so on ... Pin
fjdiewornncalwe11-Dec-12 6:28
professionalfjdiewornncalwe11-Dec-12 6:28 
GeneralRe: JSP and JSTL and so on ... Pin
SheraX11-Dec-12 6:32
SheraX11-Dec-12 6:32 
GeneralRe: JSP and JSTL and so on ... Pin
AnalogNerd11-Dec-12 7:03
AnalogNerd11-Dec-12 7:03 
GeneralRe: JSP and JSTL and so on ... Pin
SheraX11-Dec-12 7:12
SheraX11-Dec-12 7:12 
QuestionSMTP Programming Pin
Dominick Marciano9-Dec-12 13:49
professionalDominick Marciano9-Dec-12 13:49 
AnswerRe: SMTP Programming Pin
vbmike10-Dec-12 8:49
vbmike10-Dec-12 8:49 
GeneralRe: SMTP Programming Pin
Dominick Marciano10-Dec-12 13:30
professionalDominick Marciano10-Dec-12 13:30 
GeneralRe: SMTP Programming Pin
Richard MacCutchan10-Dec-12 21:36
mveRichard MacCutchan10-Dec-12 21:36 
GeneralRe: SMTP Programming Pin
Dominick Marciano11-Dec-12 9:40
professionalDominick Marciano11-Dec-12 9:40 
GeneralRe: SMTP Programming Pin
Richard MacCutchan11-Dec-12 10:26
mveRichard MacCutchan11-Dec-12 10:26 
GeneralRe: SMTP Programming Pin
Dominick Marciano11-Dec-12 10:44
professionalDominick Marciano11-Dec-12 10:44 
GeneralRe: SMTP Programming Pin
Richard MacCutchan11-Dec-12 10:58
mveRichard MacCutchan11-Dec-12 10:58 
GeneralRe: SMTP Programming Pin
Dominick Marciano11-Dec-12 11:20
professionalDominick Marciano11-Dec-12 11:20 
QuestionXSLT Transforms - how to get just some of in a for-each Pin
QuickBooksDev8-Dec-12 2:26
QuickBooksDev8-Dec-12 2:26 
We use XSLT to convert various XML files into tab delimited.

Some of the XML input files have a variable number of options. Sometimes none, others 1,2,3 or more.

This makes the formatting difficult since there is also a header row that is created in the XSLT file that must have the exact number of columns and proper header context.

So the question is how to get this formatted correctly since if we provide for 2 sets of opts (from the W3Schools tryit) in the header row how to get the for-each to stop at 2.

<cd>
&lt;title>Eros&lt;/title>
<artist>Eros Ramazzotti</artist>
<country>EU</country>
<company>BMG</company>
<price>9.90</price>
<year>1997</year>
</cd>
<cd>
<opts length="3">
<opt><name>Nm1</name><val>111</val></opt>
<opt><name>Nm2</name><val>222</val></opt>
<opt><name>Nm3</name><val>333</val></opt>

</opts>

Typical for-each
<xsl:for-each select="opts/opt">
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="val"/></td>
</xsl:for-each>

In this case there will be 3 sets of opts but 2 sets of headers and all data after this will be off.

Tried using xls:when test="@length =...' but don't see a way of just getting 2 of the 3 opts.

Can anyone help?

Thanks
AnswerRe: XSLT Transforms - how to get just some of in a for-each Pin
Chris Grove13-Dec-12 19:46
Chris Grove13-Dec-12 19:46 
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
QuickBooksDev17-Dec-12 0:42
QuickBooksDev17-Dec-12 0:42 
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
Chris Grove17-Dec-12 3:43
Chris Grove17-Dec-12 3:43 
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
QuickBooksDev17-Dec-12 4:55
QuickBooksDev17-Dec-12 4:55 

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.