Defining SQL statements in the DTD
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Richard_Cunliffe
Posted On:   Sunday, March 9, 2003 11:56 PM

the database How do I delcare my XML embeded SQL statements in my DTD? Below is my XML dodcument with the embeded SQL statement, now how should i declare this in the DTD. <?xml version="1.0" encoding="UTF-8" standalone="no"?> xmlns:sql="http://apache.org/cocoon/SQL/2.0"> SELECT * FROM album PDA Version PC Version WAP soundpool    More>>
the database

How do I delcare my XML embeded SQL statements in my DTD?





Below is my XML dodcument with the embeded SQL statement, now how should i declare this in the DTD.




<?xml version="1.0" encoding="UTF-8" standalone="no"?>
















xmlns:sql="http://apache.org/cocoon/SQL/2.0">



SELECT * FROM album











PDA Version







PC Version







WAP soundpool




   <<Less

Re: Defining SQL statements in the DTD

Posted By:   Roseanne_Zhang  
Posted On:   Monday, March 10, 2003 06:41 AM

Good question! However, it is actually a question about how to incorporate namespace into the namespace-unaware-dtd file. The w3c was/is very smart, and made dtd can work with namespace, even it does not know anything about it. The secret is the ":" is a legal character of XML name.



I've a example about this topic, take a look, play with it a little. I believe you will get it! That was also how I got it.


Q. Can I specify namespace in DTD validation? If yes, give me an example.

About | Sitemap | Contact