← Prev in month
← Prev in thread
Next in thread →
Next in month →
Re: Possible error in Relax NG tutorial example
Chunk, Thanks for your report. As you correctly point out, "The above pattern" references to the first pattern in Section 6. Folks, I think this should be addressed. Unless somebody disagrees, I will revise the errata document and publish it. Cheers, Makoto > Dear Relax NG tutorial editors, > > Thank you for editing the Relax NG tutorial. It is a wonderful help as > I learn Relax NG. > > In Section 6, dealing with Enumerations, about half-way down, is the > following: > > /-------------------- > Thus the above pattern will match any of: > > <card name="John Smith" email="" preferredFormat="html"/> > <card name="John Smith" email="" preferredFormat=" html "/> > \-------------------- > > where the value of the 'preferredFormat' attribute illstrates the > default treatment of attribute values for the purposes of comparison. > However, the above pattern referred to defines a 'preferredFormat' > element rather than a 'preferredFormat' attribute: > > /-------------------- > <element name="card"> > <element name="name"> > <text/> > </element> > <element name="email"> > <text/> > </element> > <element name="preferredFormat"> > <choice> > <value>html</value> > <value>text</value> > </choice> > </element> > </element> > \-------------------- > > Is this a typo, or am I misunderstanding something? Would the above > pattern match the examples given? > > Thanks & best wishes, > Chuck Bearden > -- > .................................................................... > Chuck Bearden The Connexions Project > Sr. Content Specialist Rice University MS 375 > PO Box 1892 > AIM: Schleifheim Houston, TX 77251-1892 > 713.348.3661 (voice) (fax) 713.348.3665 > .......................<http://cnx.rice.edu/>....................... -- MURATA Makoto (FAMILY Given) <>
← Prev in month
← Prev in thread
Next in thread →
Next in month →