Click here to Skip to main content
15,894,720 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionHow to load xml file to a datatable Pin
Diego F.20-Sep-07 6:15
Diego F.20-Sep-07 6:15 
AnswerRe: How to load xml file to a datatable Pin
Diego F.20-Sep-07 7:14
Diego F.20-Sep-07 7:14 
GeneralRe: How to load xml file to a datatable Pin
Diego F.20-Sep-07 7:26
Diego F.20-Sep-07 7:26 
Questionxml stylesheet to customize Excel - How to change column width Pin
umakemesik18-Sep-07 11:59
umakemesik18-Sep-07 11:59 
AnswerRe: xml stylesheet to customize Excel - How to change column width Pin
Ed.Poore18-Sep-07 12:44
Ed.Poore18-Sep-07 12:44 
QuestionHelp need for XSL file Pin
_anil_17-Sep-07 23:03
_anil_17-Sep-07 23:03 
QuestionProblem with SQL Server bulk load XML def Pin
mintxelas17-Sep-07 22:44
mintxelas17-Sep-07 22:44 
Questionlimited iteration Pin
TClarke14-Sep-07 2:11
TClarke14-Sep-07 2:11 
Hi all,
I'm fairly new to xsl so please bare with me if this is a trivial issue.

I'm getting my XML from a database so it's just a string of row nodes with nodes representing the values of the row within.
Mostly it is one row per page. However, sometimes it is more, maximum 4 rows per page.
Each row node has a child node rowsequence which states what number row on the page the row should be.
So far I have been able to get to the beginning of each sequence of row nodes as follows:


<xsl:for-each select="ROWDATA/ROW">
<xsl:if test='BLOCKSEQUENCE=1'>
<xsl:call-template name="page"/>
</xsl:if>
</xsl:for-each>

However, I am not sure what to do next. How, to iterate over the following nodes that are supposed to be on the same page. all I can see is the logic should be: starting from the first node in the sequence keep iterating forward until you find a row node whose rowsequence node has a value of 1.
If anyone show me how to write this into XSL it would greatly appreciated.
Thank you for any help

PS
I'm using XSL 2.0 (Saxon 8)



Cheers
Tom

Philosophy: The art of never getting beyond the concept of life.
Religion: Morality taking credit for the work of luck.
AnswerRe: limited iteration Pin
George L. Jackson14-Sep-07 11:43
George L. Jackson14-Sep-07 11:43 
GeneralRe: limited iteration Pin
TClarke17-Sep-07 0:28
TClarke17-Sep-07 0:28 
GeneralRe: limited iteration [modified] Pin
George L. Jackson17-Sep-07 9:57
George L. Jackson17-Sep-07 9:57 
GeneralRe: limited iteration Pin
TClarke3-Oct-07 4:11
TClarke3-Oct-07 4:11 
Questionxml to html with c# Help Please Pin
phillippio13-Sep-07 13:14
phillippio13-Sep-07 13:14 
AnswerRe: xml to html with c# Help Please Pin
George L. Jackson14-Sep-07 1:48
George L. Jackson14-Sep-07 1:48 
GeneralRe: xml to html with c# Help Please Pin
phillippio14-Sep-07 11:11
phillippio14-Sep-07 11:11 
GeneralRe: xml to html with c# Help Please Pin
George L. Jackson14-Sep-07 11:39
George L. Jackson14-Sep-07 11:39 
QuestionWriting xml as a DiffGram Pin
steve_rm12-Sep-07 21:50
steve_rm12-Sep-07 21:50 
QuestionWant to use xml as localdatabse Pin
manuo512-Sep-07 0:01
manuo512-Sep-07 0:01 
QuestionXML file format Pin
VK-Cadec11-Sep-07 2:21
VK-Cadec11-Sep-07 2:21 
AnswerRe: XML file format Pin
George L. Jackson11-Sep-07 14:17
George L. Jackson11-Sep-07 14:17 
GeneralChoice of Value Types in Field Pin
Brady Kelly11-Sep-07 1:38
Brady Kelly11-Sep-07 1:38 
Questionhow to use the distinct-nodes function? Pin
Rocky#11-Sep-07 0:30
Rocky#11-Sep-07 0:30 
Questiongeneralizing the tabular display of xml data Pin
Rocky#10-Sep-07 20:23
Rocky#10-Sep-07 20:23 
QuestionHow to XSL parse 300 mg XML file? Pin
mcsdgal7-Sep-07 8:21
mcsdgal7-Sep-07 8:21 
NewsReding xml node in windows Forms [modified] Pin
chakran6-Sep-07 1:10
chakran6-Sep-07 1:10 

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.