@@ -575,7 +575,7 @@ function gen_class_markup(ReflectionClass $class, $content) { /* {{{ */
575
575
}
576
576
$ markup .= '<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo> ' . PHP_EOL ;
577
577
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 ;
579
579
}
580
580
}
581
581
@@ -613,22 +613,22 @@ function gen_class_markup(ReflectionClass $class, $content) { /* {{{ */
613
613
614
614
/* {PROPERTY_XINCLUDE} */
615
615
$ 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 ,
617
617
$ content , 1 );
618
618
619
619
/* {METHOD_XINCLUDE} */
620
620
$ ident = get_ident_size ('METHOD_XINCLUDE ' , $ content );
621
621
$ content = preg_replace ('/\{METHOD_XINCLUDE\}/ ' ,
622
622
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 > " ,
624
624
$ content , 1 );
625
625
626
626
/* {INHERITED_XINCLUDE} */
627
627
if ($ parent ) {
628
628
$ ident = get_ident_size ('INHERITED_XINCLUDE ' , $ content );
629
629
$ content = preg_replace ('/\{INHERITED_XINCLUDE\}/ ' ,
630
630
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 ,
632
632
$ content , 1 );
633
633
} else {
634
634
$ content = preg_replace ('/^\s*\{INHERITED_XINCLUDE\}.*?\n/m ' , '' , $ content , 1 );
0 commit comments