• 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
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    Originally posted by AtW
    ok, 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!
    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.
    Listen to my last album on Spotify

    Comment


      #12
      Originally posted by AtW
      ok, 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!
      Ah - I think I see your XSL problem...

      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


        #13
        Originally posted by Cowboy Bob
        It sounds like the technology is not the problem, but how you're attempting to use it.
        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!

        Comment


          #14
          Originally posted by Cowboy Bob
          I 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.
          Nothing major, just the fiddly bits such as sizing of blocks and finding things that the Apache FOP doesn’t support.

          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 Day

          Comment


            #15
            Originally posted by AtW
            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!

            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


              #16
              Originally posted by DaveB
              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.
              Thank you Dave B.

              You've come right out the other side of the forest of irony and ended up in the desert of wrong.

              Comment


                #17
                Originally posted by DaveB
                Then change the template and have the tags in the main body and not in the header and footer.
                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.

                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


                  #18
                  Originally posted by AtW
                  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.
                  Ah! But have you micro-optimised 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


                    #19
                    Anyone here thinking the same as me?

                    The more "technical" posts AtW makes, the more you think,

                    "Oh Dear"

                    Comment


                      #20
                      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

                      Working...
                      X