XML Namespace prefixes within CDATA tag

Sort:
You are not authorized to post a reply.
Author
Messages


Robert











Veteran Member



Posts: 82




Veteran Member



    The PSA forms are xml based.
    In this circumstance, the XML namespace is defined with a prefix

    <PAGE xmlns:A4="http://www.account4.com/a4namespace" version="5.0">

    This means that you can invoke the A4 prefix to access elements defined
    within the DTD.

    However, the document also contains a CDATA tag. CDATA is character data, is in fact ignored ay xml parsers; e.g. if you place your javascript within CDATA, and the psa javascripts are found within CDATA.

    However.... within the CDATA tag the A4 prefix is referenced:

    <![CDATA[
    A4:INCLUDE-A4PSEINCMAINMENU.

    ]]

    Now the strange. CDATA in fact ignores entity definitions, so how can the A4 prefix be recognized; in fact A4 prefixes are invoked quite a bit within the CDATA tag?

    If I am dong a mod, do I place the text I want to see within CDATA, or in the XML I want parsed?

    Robert.


    Robert











    Veteran Member



    Posts: 82




    Veteran Member



      Anyone know about the PSA scripting format A4XML?


      Robert











      Veteran Member



      Posts: 82




      Veteran Member



        Well....I can see this was a popular question.

        The answer is both.

        HTML and Javascript are placed with the CDATA tag.

        The term A4 within CDATA, or anywhere else for that matter, invoked A4 forms, resultsets, object, actions, etc.

        Outside CDATA is proprietary A4, or PSA xml.
        You are not authorized to post a reply.