[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Can data be controlled with XSL?

Subject: RE: Can data be controlled with XSL?
From: "Mary P McRae" <sgmlgeek@xxxxxxxxxxxxx>
Date: Tue, 2 Jun 1998 13:54:09 -0400
can it be controlled

>
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.