Hello!

Hello!

From a Delphi application, we need to apply an XSLT transform to an XML file into an HTML page. This is mostly done, but we are receiving a CRLF sequence in the XML that is impeding certification because a little (but very important) piece of data is displaying incorrectly.

We have tried to use fn:replace but there are no examples on how to use it with the content of a tag.

Does anybody have pointers?

Thanks :)

Comments

  1. Provide a sscce.org - Short, Self Contained, Correct Example in a gist that demonstrates the problem both in Delphi and a commandline tool like msxsl or Saxon xslt processor.

    ReplyDelete
  2. Hi!

    Right now I have no access to one, but basically it's something along these lines:





    The CRLF sequence is here

    ReplyDelete
  3. Here is a data-purged (except for the relevant bit) example:



    OK



    PrescriptionReleaseResponse
    39adde1e-362b-4a4e-bdd5-2b1efc534698


    505580D9-5900-1BC3-E050-D20AE3A27775
    955814-C81007-E44BFD
    TRUE

    19890524
    20330525


    9453740578
    19730525
    0

    MR

    MR





    1

















    TRUE
    20170525120500
    EMU

    3021802

    WEIR







    DERBY
    DERBYSHIRE



    TEL

    WP



    5EX
    5EX



    T







    0101
    0001

    20170525
    1
    20171125
    1
    20171125

    20170525



    To order prescriptions patients can order online at www.surgery.nhs.uk or you can ring

    Next review date: 17-Dec-2016


    505580D9-591E-1BC3-E050-D20AE3A27775
    0007





    2



    unit dose


    ReplyDelete
  4. As Directed
    CD: two This has been prescribed upon advice from the hospital consultant


    505580D9-5923-1BC3-E050-D20AE3A27775






    125



    ml


    As Directed
    CD: one hundred and twenty five
    please ensure the full patient directions are given and explained to the patient.





    The bit that interests me is the "additionalinstructions" tag inside the first lineitem (to find it, it says "CD: two").
    Alas, the content there is highly variable, so I need to go via the tags to do the replace.

    ReplyDelete

Post a Comment