-
Notifications
You must be signed in to change notification settings - Fork 26
BC Break between DocBook 5.1 and DocBook 5.2 #262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
(I know about the mailing list issues; I have some sympathy for the position OASIS is in, but I'm also hoping to setup new lists "real soon now".) I think you're right that's a backwards incompatible change. We wouldn't have done that in 5.2 if we'd noticed. I'll make sure whatever comes next fixes that. (I'd be curious to see an example of the your markup that is no longer valid.) |
Thank you for the swift reply :) One of the XML files that doesn't conform any more is: https://github.com/php/doc-en/blob/master/reference/spl/cachingiterator.xml (ignore the magic XML entities that exist and are subsections of the class) |
(I moved this issue to the I don't see any examples in our test suite for a |
I agree, the current options are not great. Previously, we would shove all the information into a I then decided to redo the markup for classes and interfaces to use Which would look like this: <classsynopsis class="class">
<ooclass>
<classname>ChildClass</classname>
</ooclass>
<ooclass>
<modifier>extends</modifier>
<classname>ParentClass</classname>
</ooclass>
<oointerface>
<modifier>implements</modifier>
<interfacename>Interface1</interfacename>
</oointerface>
<oointerface>
<interfacename>Interface2</interfacename>
</oointerface>
<oointerface>
<interfacename>Interface3</interfacename>
</oointerface>
<classsynopsisinfo role="comment">Constants</classsynopsisinfo>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname>ChildClass::CONSTANT_NAME</varname>
</fieldsynopsis>
<!-- etc. -->
</classsynopsis> One idea to have "better" markup would be to allow nesting e.g. <ooclass>
<classname>ChildClass</classname>
<ooclass>
<classname>ParentClass</classname>
</ooclass>
<oointerface>
<interfacename>Interface1</interfacename>
</oointerface>
<oointerface>
<interfacename>Interface2</interfacename>
</oointerface>
<oointerface>
<interfacename>Interface3</interfacename>
</oointerface>
</ooclass> And it would then be the job of the renderer to take this markup and transform this into: class ChildClass extends ParentClass implements Interface1, Interface2, Interface3
{
/* Fill in body of class */
} Now, PHP specific problem, is that our enums are basically classes, meaning they can also have associated methods, which the |
I am well aware that this is not the mailing list nor the correct channel, but every single link on the OASIS website is just broken, and has been broken since April when I first started to bring this issue to the attention of the committee.
As such, I hope that publishing the issue here will allow someone that might be more familiar with the process to contact the relevant people or indicate me what I need to do. I emailed Robert Stayton back in April, and have had no reply.
The email is as following:
In the meantime, I have updated our XML source and schema to be DocBook 5.2 with an amendment to the RelaxNG schema relaxing the constraint for
<classsynopsis>
(see: php/doc-base#123)In the hope that this issue will be addressed upstream at one point.
The text was updated successfully, but these errors were encountered: