Go Back   Velocity Reviews > Newsgroups > XML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

XML - Is this <!ELEMENT ....> declaration valid?

 
Thread Tools Search this Thread
Old 09-21-2006, 11:50 AM   #1
Default Is this <!ELEMENT ....> declaration valid?


Hi folks,

I just have a doubt on whether the below DTD declaration for an element
is valid or not.

<!ELEMENT e_name ( ( stu * | ( vw , x ) + ) + ) >
^ ^ ^ ^ ^
^ ^ ^ ^
1 2 3 4 5 6
7 8 9

## I have just used ' ^ ' to point to positions in the declaration,
and the numbers below provide the provisions.



mahesh.kanakaraj@gmail.com
  Reply With Quote
Old 09-21-2006, 12:22 PM   #2
Richard Tobin
 
Posts: n/a
Default Re: Is this <!ELEMENT ....> declaration valid?

In article <. com>,
<> wrote:

>I just have a doubt on whether the below DTD declaration for an element
>is valid or not.
>
><!ELEMENT e_name ( ( stu * | ( vw , x ) + ) + ) >


Spaces aren't allowed between a content particle and the '?', '+', or '*'
following it.

This is legal:

<!ELEMENT e_name ( ( stu* | ( vw , x )+ )+ ) >

>## I have just used ' ^ ' to point to positions in the declaration,
>and the numbers below provide the provisions.


Unfortunately you seem to have used a proportional font when typing it
in, so they didn't point to anything useful on my screen.

-- Richard
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump