Edgewall Software

Opened 15 years ago

Closed 15 years ago

#359 closed defect (duplicate)

Puzzled by XInclude failures when using the MarkupTemplate class.

Reported by: kvamlnk@… Owned by: cmlenz
Priority: minor Milestone:
Component: Template processing Version: 0.5.1
Keywords: XInclude MarkupTemplate Cc:

Description

The MarkupTemplate? class silently ignores XInclude include tags.

Note that deleting the href attribute generates an error. The Genshi documentation states that if a file can't be found an error will be generated. So this could be treated as a documentation error. It is necessary to use the TemplateLoader? class to use XInclude in a template and trigger file processing errors.

The MarkupTemplate? class source code looks like it will process the XInclude include tag but silently fails.

I'd suggest raising an error when the MarkupTemplate? class is used to process a template with include processing.

Note the simple example here uses the MarkupTemplate?: http://genshi.edgewall.org/wiki/Documentation/templates.html#id6

Change History (1)

comment:1 Changed 15 years ago by cmlenz

  • Milestone 0.6 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #320.

Note: See TracTickets for help on using tickets.