[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Create Table
bernie bonn wrote: > > Eric, as always thanks for your help. I really appreciate it. I > wish your assumption was true, unfortunatley it isn't, the > @field='file' is not a mandatory field . I wonder if a bunch of > 'ors' would work? Anyway, I'll have to dig deeper or attack this > problem at the source, the export of the XML, (I have been told we > have no control over it. ) > I have to say I like Wolfgang's solution. I'm working on this anyway, as it's my belief that any time the output is (X)HTML, it's good to have an XSLT 1 solution (if possible) for browser-based execution. So far, I have this Xpath expression: //data[@section='changes' and preceding-sibling::data[@section='diff'][1]] I haven't decided what to do with it yet, but it does spit out the nodes of interest from the source file. BTW, since the filename field may be missing, it kills the notion of using the Basic <table> algorithm, so my next example goes back to using @scope to avoid having any empty <th> cells. -Eric
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|