parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

standalone="no"

mashi 16.01.2006 02:14

Вот что нашел в документации:
The standalone declaration indicates whether a document relies on information from an external source, such as external document type definition (DTD), for its content.

If the standalone declaration has a value of "yes", for example, <?xml version="1.0" standalone="yes"?>, the parser will report an error if the document references an external DTD or external entities.

Leaving out the standalone declaration produces the same result as including a standalone declaration of "no". The XML parser will accept external resources, if there are any, without reporting an error.
Надо будет попробовать так:
$xml[^xdoc::create{<?xml version="1.0" encoding="$request:charset" standalone="no"?>
<!DOCTYPE page SYSTEM "http://$env:SERVER_NAME/s/entities.dtd">
...
}]