troubleshooting Question

DTD attribute name - can it be a wildcard?

Avatar of Juliemalta
Juliemalta asked on
Web Languages and StandardsXML
5 Comments1 Solution623 ViewsLast Modified:
I have the following xml where the attributes for <onReturn> can have any name.
Is it possible to have a proper DTD for this? As far as I can see I must specify an attribute name but these are not known at the time of writing the DTD.

<result id='INVOKE_RESULT'>
    <onReturn RESULT1="A">THIS IS 1A</onReturn>
    <onReturn RESULT1="B">THIS IS 1B</onReturn>
    <onReturn RESULT2="C">THIS IS 2C</onReturn>
    <onReturn RESULT3="D">THIS IS 3D</onReturn>
</result>

I am hoping for some syntax that will allow me to have a wildcard (something like the following)

<!ELEMENT onReturn (#PCDATA)>
    <!ATTLIST onReturn * NMTOKEN #IMPLIED>
ASKER CERTIFIED SOLUTION
Gertone (Geert Bormans)
Information Architect
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros