|
@@ 799-807 (lines=9) @@
|
| 796 |
|
$this->logger->info( __METHOD__ . ' encountered <rdf:type>' ); |
| 797 |
|
} |
| 798 |
|
|
| 799 |
|
if ( strpos( $elm, ' ' ) === false ) { |
| 800 |
|
// This probably shouldn't happen. |
| 801 |
|
// However, there is a bug in an adobe product |
| 802 |
|
// that forgets the namespace on some things. |
| 803 |
|
// (Luckily they are unimportant things). |
| 804 |
|
$this->logger->info( __METHOD__ . " Encountered </$elm> which has no namespace. Skipping." ); |
| 805 |
|
|
| 806 |
|
return; |
| 807 |
|
} |
| 808 |
|
|
| 809 |
|
if ( count( $this->mode[0] ) === 0 ) { |
| 810 |
|
// This should never ever happen and means |
|
@@ 1221-1226 (lines=6) @@
|
| 1218 |
|
$this->logger->info( __METHOD__ . ' Encountered <rdf:type> which isn\'t currently supported' ); |
| 1219 |
|
} |
| 1220 |
|
|
| 1221 |
|
if ( strpos( $elm, ' ' ) === false ) { |
| 1222 |
|
// This probably shouldn't happen. |
| 1223 |
|
$this->logger->info( __METHOD__ . " Encountered <$elm> which has no namespace. Skipping." ); |
| 1224 |
|
|
| 1225 |
|
return; |
| 1226 |
|
} |
| 1227 |
|
|
| 1228 |
|
list( $ns, $tag ) = explode( ' ', $elm, 2 ); |
| 1229 |
|
|
|
@@ 1302-1308 (lines=7) @@
|
| 1299 |
|
$this->mode[0] = self::MODE_QDESC; |
| 1300 |
|
} |
| 1301 |
|
foreach ( $attribs as $name => $val ) { |
| 1302 |
|
if ( strpos( $name, ' ' ) === false ) { |
| 1303 |
|
// This shouldn't happen, but so far some old software forgets namespace |
| 1304 |
|
// on rdf:about. |
| 1305 |
|
$this->logger->info( __METHOD__ . ' Encountered non-namespaced attribute: ' |
| 1306 |
|
. " $name=\"$val\". Skipping. " ); |
| 1307 |
|
continue; |
| 1308 |
|
} |
| 1309 |
|
list( $ns, $tag ) = explode( ' ', $name, 2 ); |
| 1310 |
|
if ( $ns === self::NS_RDF ) { |
| 1311 |
|
if ( $tag === 'value' || $tag === 'resource' ) { |