xsl-list
[Top] [All Lists]

[xsl] streaming XSLT creating a header from a first record

2018-05-08 10:19:37
All, 

I have a potentially huge tabular structure in an XML file: one "table'' 
element, many "row" elements, each having a series of attributes 

I want to process them using a streaming XSLT, but I am hitting an issue 

I want to use information from the first row in a header construct, in a way 
using the first row information twice 
That is fairly easy done if the result were something like CSV, because then I 
can deal with the header and first row in one go 
but now I need the header in some sort of metadata section at the start of the 
document 
and all the rows including row one in an adjacent structure, but wrapped (the 
results of the row processing in a container) 

I tried to create the full structure in a template for the first row and 
process the following siblings of the first row... but that can't be done "when 
the context posture is striding" (sic) 

Any ideas? Thanks, 

Best regards, 

Geert Bormans 

-------------------------------------------------------------- 
Markup UK - a conference about XML and other mark-up languages 
London, June 9–10 2018 
Programme now available at [ http://markupuk.org/speakers.xhtml | 
http://markupuk.org/speakers.xhtml ] 
Early bird registration extended [ http://markupuk.org/registration.xhtml | 
http://markupuk.org/registration.xhtml ] 
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>