[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Can data be controlled with XSL?
> > Dan Hable wrote: > > > > I'm trying to create a system for authors to create documents. I've made > > the DTD and the authors have keyed in the data for documents. I wanted > > to validate the document using the authors name. There is only a limited > > set of data that can be in the author's name field. Is it possible, > > using XSL, to go into a database and pull a name out, check the data and > > then continue processing if the data is valid. > It sounds like what you really want to do is validate this at creation time (using valid XML). You can do this by creating an attribute on the name element with a choice list: <!ATTLIST author name (Jones|Smith|Brown) #REQUIRED > Depending on the editing tool, it should force the user to choose one of the valid names from the selection list; or, if you're using a text editor, would be checked upon parsing. Mary +++++++++++++++++++++++++++++++++++++++++++++ ???? Mary P. McRae ???? Senior Program Manager ???? Document Management Solutions, Inc. ???? WWW: http://www.dmsi-world.com ???? email: mailto:mary.mcrae@xxxxxxxxxxxxxx ???? voice:? 603 924 6578 +++++++++++++++++++++++++++++++++++++++++++++ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|