Originally posted by AtW
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Xsl
Collapse
X
Collapse
-
The parser is not designed to work with invalid XML which it is if you are not closing a tag. You need to find a different solution. Surely the TABLE tag should be in the body anyway, not the header? It sounds like the technology is not the problem, but how you're attempting to use it. -
Ah - I think I see your XSL problem...Originally posted by AtWok, tell me how to do the following using fking XSL: I have got report that I want to be modular (thus easily customisable without much work), to do that I keep header, body and footer of the report in separate files. This means that header needs to output TABLE tag - only starting one, there is no closure in THAT template. The fking thing does not like the fact that unclosed (in that template) tag is generated ffs!
It's a tulipE DESIGN
You've come right out the other side of the forest of irony and ended up in the desert of wrong.
Comment
-
Look, I want to generate HTML that also doubles up as valid XML - table tag is necessary at the START of the table, and it should be closed at the END of the table, where as fking XSL expects me to have all tags closed within template, which means I can't have PrintHeader template (with open TABLE tag in it), then PrintBody (with my stuff) and finally PrintFooter - which would contain closed TABLE tag. The only solution appears to put the whole lot into one template, ffs, but I fking want to call templates for reason of them being separate ffs!Originally posted by Cowboy BobIt sounds like the technology is not the problem, but how you're attempting to use it.Comment
-
Nothing major, just the fiddly bits such as sizing of blocks and finding things that the Apache FOP doesn’t support.Originally posted by Cowboy BobI used Apache FOP to convert XML data into PDFs for council planning applications. Boring subject, but not too hard... What problems have you had? Apache FOP has a generator to output XSL stylesheets from a PDF, so first create your desired PDF report format, pipe it through the generator, and then tweak it to the data that you're receiving.
In our case we are generating some charts using Dundas at the same time as generating the XML report. Different types of financial instruments have different things to report.
We had to support US Letter and Euro A4 paper sizes too.
It was frustrating going round the iterative loop.Blair, you cannot reach me now,
No matter how you try,
Goodbye cruel Labour,
Your end is nigh.
International Talk Like a Pirate DayComment
-
Originally posted by AtWLook, I want to generate HTML that also doubles up as valid XML - table tag is necessary at the START of the table, and it should be closed at the END of the table, where as fking XSL expects me to have all tags closed within template, which means I can't have PrintHeader template (with open TABLE tag in it), then PrintBody (with my stuff) and finally PrintFooter - which would contain closed TABLE tag. The only solution appears to put the whole lot into one template, ffs, but I fking want to call templates for reason of them being separate ffs!
Then change the template and have the tags in the main body and not in the header and footer. Or have seperate tables in each and stitch them together."Being nice costs nothing and sometimes gets you extra bacon" - Pondlife.Comment
-
Thank you Dave B.Originally posted by DaveBThen change the template and have the tags in the main body and not in the header and footer. Or have seperate tables in each and stitch them together.
You've come right out the other side of the forest of irony and ended up in the desert of wrong.
Comment
-
Yes of course I can (and just did) do that, but WTF should I have to? <TABLE> tag belogs to header and footer of the table (you can't have header rows before table starts), its nonsense that partial tags can't be part of templates - its the final XML that should validate, not necesserily its parts.Originally posted by DaveBThen change the template and have the tags in the main body and not in the header and footer.
Thank Chico's boss that I've got interpretation layer on top to take care of some other issues, otherwise it would have suck real bad - no wonder nobody uses it.Comment
-
Ah! But have you micro-optimised it?Originally posted by AtWThank Chico's boss that I've got interpretation layer on top to take care of some other issues, otherwise it would have suck real bad - no wonder nobody uses it.
p.s. what's up with the posting form here today? In FF 1.5 it spills over into the right-side navigation.
You've come right out the other side of the forest of irony and ended up in the desert of wrong.
Comment
-
Anyone here thinking the same as me?
The more "technical" posts AtW makes, the more you think,
"Oh Dear"Comment
-
I usually like to hoist the main brace and put a recall out to FSO polensk owners. If that is of no use I tripple fringer the database with a 3 bull side kick photocheck, this usually confuses the widget and resets the counter to zero.
Makes us laugh every time!
I remember the good old days of this site when people used to moan about serious contractor related issues like house prices and immigration. How times have changed!?Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Comment