• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

AttValue

 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
element
::= EmptyElemTag | STag content Etag

STag
::= '<' Name (S Attribute)* S? '>'

Attribute
::= Name Eq AttValue

AttValue
::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'"

Would you please explain this description of a value of an attribute (ignore Reference). To me it looks like it is saying any of the characters [ ^ < & " repeated and enclosed in quotes.

Thank you. Marlene
 
Marlene Miller
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I figured it out. ^ means not.

::= ' " ' ([^<&"] | Reference)* ' " ' | " ' " ([^<&'] | Reference)* " ' "

means any character except < or & repeated and enclosed in quotes.

----
Next question: what does ']]>' mean in CharData

content
::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)*

CharData
::= [^<&]* - ([^<&]* ']]>' [^<&]*)
 
Marlene Miller
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
re: ]]>

I sort of get it. It's a CDATA close delimiter.
 
reply
    Bookmark Topic Watch Topic
  • New Topic