Re: XSLT processing
Michael Ludwig <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <20091206225503.GF240@wladimir> |
Jakub Jezek schrieb am 06.12.2009 um 23:02:54 (+0100): > > First, I want to ask, if I overwrited my code into "libxslt form" > good? My code: Looks good. > After that I'll try to desribe, what I need to do with my xmls. > > I need to save tree structure of test, which are in <criterion> > elements. This tree structure has logical structure, which is given by > atribute @operator in elements <criteria>. > > And I am saving this data into DB. Examples are below: > XMLs: > http://forstman.kvalitne.cz/temp/jezza/com.redhat.rhsa-20091463.xml > http://forstman.kvalitne.cz/temp/jezza/com.redhat.rhsa-20091490.xml > > My dreamy output :) (DB's tables) : > http://forstman.kvalitne.cz/temp/jezza/nastrel_db_oval.pdf > > There are 2 tables, In criterias, I want to save just criteria groups > with their operator. In critrions, I need to save groups of tests, > which are in criteria. Each group of test is conected with a criteria. > I hope it's understandable. (Note that criteria is the plural form of critrion. So both "criterias" and "critrions" are wrong.) So basically you want to produce an HTML table, right? I can confirm that XSLT is the perfect tool for this job. You could even do that without Perl, by using xsltproc (command line utility of LibXSLT), or Xalan, or Saxon, or MSXML. On the other hand, I'm afraid the unpleasant nitty-gritty detail of your example together with the complicated table do not exactly make this a fun task. It rather looks like a major tedium. I suggest you reexamine my initial suggestion to provide a *minimal* example. The advantages with minimal examples are manifold, and include easily writable and understandable explanations. Saves a lot of time. I suggest you start producing HTML tables from simplified input. When being blocked, post to xml-list at <mulberrytech.com>. Thanks. -- Michael Ludwig _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs