Click here to Skip to main content
       

Web Development

 
AnswerRe: JSP and JSTL and so on ... PinmemberMarcus Kramer11-Dec-12 7:28 
GeneralRe: JSP and JSTL and so on ... PinmemberSheraX11-Dec-12 7:32 
GeneralRe: JSP and JSTL and so on ... PinmemberAndrew Stoute11-Dec-12 8:03 
GeneralRe: JSP and JSTL and so on ... PinmemberSheraX11-Dec-12 8:12 
QuestionSMTP Programming PinmemberDisIsHoody9-Dec-12 14:49 
AnswerRe: SMTP Programming Pinmembervbmike10-Dec-12 9:49 
GeneralRe: SMTP Programming PinmemberDisIsHoody10-Dec-12 14:30 
GeneralRe: SMTP Programming PinmvpRichard MacCutchan10-Dec-12 22:36 
GeneralRe: SMTP Programming PinmemberDisIsHoody11-Dec-12 10:40 
GeneralRe: SMTP Programming PinmvpRichard MacCutchan11-Dec-12 11:26 
GeneralRe: SMTP Programming PinmemberDisIsHoody11-Dec-12 11:44 
GeneralRe: SMTP Programming PinmvpRichard MacCutchan11-Dec-12 11:58 
GeneralRe: SMTP Programming PinmemberDisIsHoody11-Dec-12 12:20 
QuestionXSLT Transforms - how to get just some of in a for-each PinmemberQuickBooksDev8-Dec-12 3: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 PinmemberChris Grove13-Dec-12 20:46 
GeneralRe: XSLT Transforms - how to get just some of in a for-each [modified] PinmemberQuickBooksDev17-Dec-12 1:42 
GeneralRe: XSLT Transforms - how to get just some of in a for-each PinmemberChris Grove17-Dec-12 4:43 
GeneralRe: XSLT Transforms - how to get just some of in a for-each PinmemberQuickBooksDev17-Dec-12 5:55 
GeneralRe: XSLT Transforms - how to get just some of in a for-each PinmemberChris Grove17-Dec-12 6:43 
QuestionPop Up JQuery Quick Link PinmemberJaniel Major5-Dec-12 23:02 
AnswerRe: Pop Up JQuery Quick Link Pinmembervbmike7-Dec-12 5:09 
AnswerRe: Pop Up JQuery Quick Link Pinmemberryanb3112-Dec-12 5:41 
Question[HELP] Whois can using PHP to generate this one? Pinmemberjimmy.suharry4-Dec-12 22:37 
AnswerRe: [HELP] Whois can using PHP to generate this one? PinmemberS.M. Zamshed Farhan12-Jan-13 6:54 
QuestionTool for big WEB project with huge loads PinmemberJunoli2-Dec-12 10:37 
AnswerRe: Tool for big WEB project with huge loads PinmemberRichard A. Abbott2-Dec-12 11:47 
Questionselect an item in gridview Pinmemberptvce2-Dec-12 2:50 
AnswerRe: select an item in gridview PinmvpRichard MacCutchan2-Dec-12 4:00 
Questioni php question Pinmembergamaan1-Dec-12 5:00 
AnswerRe: i php question Pinmembergamaan1-Dec-12 5:03 
AnswerRe: i php question PinmemberS.M. Zamshed Farhan12-Jan-13 7:03 
QuestionHTML PinmemberDivyamS30-Nov-12 20:35 
AnswerRe: HTML PinmemberS.M. Zamshed Farhan15-Jan-13 5:21 
Questionthe protocol 'net.pipe' is not supported-WCF Pinmembermallikharjuna22128-Nov-12 1:50 
AnswerRe: the protocol 'net.pipe' is not supported-WCF PinmemberRichard A. Abbott28-Nov-12 2:38 
GeneralRe: the protocol 'net.pipe' is not supported-WCF Pinmembermallikharjuna22128-Nov-12 3:34 
GeneralRe: the protocol 'net.pipe' is not supported-WCF PinmemberRichard A. Abbott28-Nov-12 4:11 
Questionhow to get data when using header('location:'.$url) ??? Pinmemberaa_zz26-Nov-12 5:27 
AnswerRe: how to get data when using header('location:'.$url) ??? PinmemberS.M. Zamshed Farhan15-Jan-13 5:24 
QuestionWeb technologies PinmemberJunoli25-Nov-12 12:28 
SuggestionRe: Web technologies PinmemberJon Andersson29-Nov-12 11:21 
Questionbreak-word CSS PinmemberJon Andersson23-Nov-12 8:15 
AnswerRe: break-word CSS Pinmembervbmike24-Nov-12 5:08 
GeneralRe: break-word CSS PinmemberJon Andersson24-Nov-12 14:13 
GeneralRe: break-word CSS Pinmembervbmike29-Nov-12 10:58 
GeneralRe: break-word CSS PinmemberJon Andersson29-Nov-12 11:04 
GeneralRe: break-word CSS Pinmembervbmike29-Nov-12 11:10 
AnswerRe: break-word CSS PinmemberJon Andersson29-Nov-12 11:14 
GeneralRe: break-word CSS Pinmembervbmike29-Nov-12 12:06 
GeneralRe: break-word CSS PinmemberRichard A. Abbott29-Nov-12 13:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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.141223.1 | Last Updated 26 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid