@@ -575,7 +575,7 @@ function gen_class_markup(ReflectionClass $class, $content) { /* {{{ */
575575 }
576576 $ markup .= '<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo> ' . PHP_EOL ;
577577 foreach ($ inherited as $ declaring_class ) {
578- $ markup .= str_repeat (' ' , $ ident ) ."<xi:include xpointer= \"xmlns(db=http://docbook.org/ns/docbook) xpointer(id(' " . strtolower ($ declaring_class ) . ".synopsis')/descendant::db:fieldsynopsis) \" / > " . PHP_EOL ;
578+ $ markup .= str_repeat (' ' , $ ident ) ."<xi:include xpointer= \"xmlns(db=http://docbook.org/ns/docbook) xpointer(id(' " . strtolower ($ declaring_class ) . ".synopsis')/descendant::db:fieldsynopsis) \"><xi:fallback/></xi:include > " . PHP_EOL ;
579579 }
580580 }
581581
@@ -613,22 +613,22 @@ function gen_class_markup(ReflectionClass $class, $content) { /* {{{ */
613613
614614 /* {PROPERTY_XINCLUDE} */
615615 $ content = preg_replace ('/\{PROPERTY_XINCLUDE\}/ ' ,
616- "<xi:include xpointer= \"xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class. " . $ id ."')/db:refentry/db:refsect1[@role='description']/descendant::db:fieldsynopsis[1]) \" / > " . PHP_EOL ,
616+ "<xi:include xpointer= \"xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class. " . $ id ."')/db:refentry/db:refsect1[@role='description']/descendant::db:fieldsynopsis[1]) \"><xi:fallback/></xi:include > " . PHP_EOL ,
617617 $ content , 1 );
618618
619619 /* {METHOD_XINCLUDE} */
620620 $ ident = get_ident_size ('METHOD_XINCLUDE ' , $ content );
621621 $ content = preg_replace ('/\{METHOD_XINCLUDE\}/ ' ,
622622 PHP_EOL . str_repeat (' ' , $ ident ) . "<classsynopsisinfo role= \"comment \">&Methods;</classsynopsisinfo> " . PHP_EOL .
623- str_repeat (' ' , $ ident ) ."<xi:include xpointer= \"xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class. " . $ id ."')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')]) \" / > " ,
623+ str_repeat (' ' , $ ident ) ."<xi:include xpointer= \"xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class. " . $ id ."')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')]) \"><xi:fallback/></xi:include > " ,
624624 $ content , 1 );
625625
626626 /* {INHERITED_XINCLUDE} */
627627 if ($ parent ) {
628628 $ ident = get_ident_size ('INHERITED_XINCLUDE ' , $ content );
629629 $ content = preg_replace ('/\{INHERITED_XINCLUDE\}/ ' ,
630630 PHP_EOL . str_repeat (' ' , $ ident ) ."<classsynopsisinfo role= \"comment \">&InheritedMethods;</classsynopsisinfo> " . PHP_EOL .
631- str_repeat (' ' , $ ident ) ."<xi:include xpointer= \"xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class. " . format_id ($ parent ->getName ()) ."')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')]) \" / > " . PHP_EOL ,
631+ str_repeat (' ' , $ ident ) ."<xi:include xpointer= \"xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class. " . format_id ($ parent ->getName ()) ."')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')]) \"><xi:fallback/></xi:include > " . PHP_EOL ,
632632 $ content , 1 );
633633 } else {
634634 $ content = preg_replace ('/^\s*\{INHERITED_XINCLUDE\}.*?\n/m ' , '' , $ content , 1 );
0 commit comments