[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: required data
>From: Rick JELLIFFE <ricko@g...> >... >The mania against DTDs has made developers disinclined to provide proper >notation handling in XML systems. This is how it could work with DTDs : > ><!NOTATION non-empty SYSTEM "javascript:currentNode.value.length() > 0; >"> ><!ATTLIST session > type NOTATION (non-empty) "non-empty" > > >but then you need >1) a simple dispatcher to check the current node against notation, as >part of validation. >2) a javascript interpreter (or whatever). > Rick, this is a really cool use of Notations. I think the resistance is not so much Anti-DTD prejudice, but lack of tools, and education. The only thing anyone ever told me Notations were for has to do with external unparsed entities - and even then I didn't have any tools for doing it. Dr. Goldfarb's paper on how to do Datatypes with XML using DTDs and Notations really opened my eyes about them. -Wayne Steele ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|