XML Namespace prefixes within CDATA tag

 2 Replies
 0 Subscribed to this topic
 4 Subscribed to this forum
Sort:
Author
Messages
Robert
Veteran Member Send Private Message
Posts: 82
Veteran Member
The PSA forms are xml based.
In this circumstance, the XML namespace is defined with a prefix



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:

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 Send Private Message
Posts: 82
Veteran Member
Anyone know about the PSA scripting format A4XML?
Robert
Veteran Member Send Private Message
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.