This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
dtd
- To: xsl-list at mulberrytech dot com
- Subject: dtd
- From: "xsl list" <xsl_list at hotmail dot com>
- Date: Tue, 15 Aug 2000 17:32:45 EDT
- Reply-To: xsl-list at mulberrytech dot com
I have an XML witch I need to validate. It contains something like:
<func name="func1" param0="val0" param1="val1"/>
<func name="func2" param2="val2" param3="val3"/>
In my DTD file I need to write a general rule which indicates that if
@name='func1' then @param0 & @param1 are both REQUIRED, and if @name='func2'
then @param2 & @param3 are both REQUIRED.
Can I get some help finishing the below dtd please?
<!ELEMENT func EMPTY>
<!ATTLIST func
name (func1|func2) #REQUIRED
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list