Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > attribute default value in sub element

Thread Tools

attribute default value in sub element

Posts: n/a

I have the following DTD (extract)

<!ELEMENT d_field (table_ref?, item*, lst_caption?, frm_caption?,
frm_layout?, frm_alert_onvalid?, input?, list?)>
<!ELEMENT input (onvalid?)>
<!ATTLIST input
default_value CDATA #IMPLIED
modify (normal | disable | restrict) "normal"
noentry_select CDATA "- - >"

as you see the element input is declared as zero or one occurrences

my question is can I get the default value of an attribute in input if
the element has no occurence in d_field ?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro Java 92 05-20-2011 06:50 AM
XSD restriction of nesting an element within another element with aspecific attribute value? PeteOlcott XML 1 02-05-2009 06:39 AM
attr_reader, default attribute value, and rdoc of attribute dkmd_nielsen Ruby 6 11-26-2008 05:40 PM
Recognising Sub-Items and sub-sub items using xslt Ben XML 2 09-19-2007 09:35 AM
XSD - element, element value and attribute ? Matthet XML 2 09-24-2003 04:10 PM