[daisy] PHP Framework week report
Kostiantyn Sokolinskyi
sokol8 at gmail.com
Wed Aug 9 14:16:55 CDT 2006
Hallo!
On Monday the code was committed and tonight I committed it again.
DaisyPublisherHtmlPart class developed to support inlined tags
conversion using DOM API. All the classes that take part in the
conversion mechanism are updated to work over DaisyPublisherHtmlPart.
IDaisyPublisherResponseTemplate revised to afford better flexibility.
Smarty and XSLT implementations of the interface are included.
Query styling is supported in
SmartyDaisyPublisherInlinedTagsConvertor. You could look through
convertSearchResults() method. It uses "styleHint" attribute to select
appropriate template supplied by the user.
DaisyPublisherResponsePreparedDocuments applies a template on
<p:preparedDocument> tag. Support for different DocumentTypes in
included (templates for SimpleDocument (preparedDoc.tpl) and Image
(preparedDocImage.tpl) are provided in templates dir). The class fully
supports document inclusion. The template for the whole <p:document>
is applied after processing all the <preparedDocument>s and
inclusions. Inclusions are made using string functions. As all the
HTML processed using DOM API inclusion can be done using DOM - all the
code supplied by the user's templates must be XML compatible.
The problem I encountered tonight is that entity cannot be used
in the templates as DOMDocument::loadXML() method raises an error
"Entity 'nbsp' not defined in Entity". So as far as I understand I
should add appropriate DTD to the document to avoid such errors. Do
you think I can use XHTML DTD for that?
This week I eventually will add better errors handling to the
framework and work on other publisher requests.
Waiting for your comments on the code committed.
--
Looking forward to hear from you,
Sinc. Yours
Kostiantyn Sokolinskyi
More information about the daisy
mailing list