PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 09/24/2007 2:10 PM by  Robert
XML Namespace prefixes within CDATA tag
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Robert
Private
Private
Veteran Member
(192 points)
Veteran Member
Posts:80


Send Message:

--
08/12/2007 12:31 PM
    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
    Private
    Private
    Veteran Member
    (192 points)
    Veteran Member
    Posts:80


    Send Message:

    --
    08/16/2007 6:45 PM
    Anyone know about the PSA scripting format A4XML?
    Robert
    Private
    Private
    Veteran Member
    (192 points)
    Veteran Member
    Posts:80


    Send Message:

    --
    09/24/2007 2:10 PM
    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.