Recent Changes
Recent Changes · Search:
 
Summary
How do we remove unwanted xhtml
Type
Question
Raised by
John Rankin
Date opened
Wednesday, 2 March 2005
Description
At any point, pdf2you? will handle a subset of all possible wiki markups. This is because new markups keep getting added and people can create any number of local customisations. We thus need a strategy for eliminating unwanted xhtml tags from the output that we expect will be conform to the tbook dtd.
Importance
4
Proposed solution
We need a way to tell PmWiki to edit the output from any markups we haven’t specifically defined. For example, to debug we might want '/<(.*?)>/''&lt;$1&gt;'. Then when we are happy with the results, we might want '/<(.*?)>/'''. In the first pass, we prepend an XML namespace (<tbook:..> </tbook:…>) to all tags we generate. In the PmWiki postprocessing pass, we strip out (or for debugging, replace angle brackets with literal angle brackets '&lt;$1&gt;') all tags without this namespace, then remove the namespace from the remaining tags.
Urgency
3
Status
Closed
Resolution
Use of a tbook: namespace and posteval rules handles this nicely. It just works.
Date closed
Wednesday, 30 March 2005

« 00004 · Edit Form · 00006 »

Page last modified on 30 March 2005 at 07:39 PM