Re: Possibility of using alternate XML namespace?

Actually, external namespace prefixes on those attributes seems to disappear 
when the document is edited.
I am having a look at this problem.

Thanks,

Laurent Carcone

> Laurent Carcone wrote:
> > ... could you please send me 
> > your document (or just a small part) so that I can analyse it and update the 
> > open bugs list.
> > ...
> I used amaya only in a Linux box (no Windows version), and tried both 
> the GTK binary distribution or to compile the source GTK version with 
> same results.
> Let's consider the file "page.html" with this content:
> 
> 	<?xml version="1.0" encoding="iso-8859-1"?>
> 	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>       	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
> 	<html xmlns="http://www.w3.org/1999/xhtml" 		   		 
> xmlns:tal="http://xml.zope.org/namespaces/tal">
> 		<head>
>    		<meta http-equiv="Content-Type" content="text/html; 
>       			charset=iso-8859-1" />
>    		<title tal:content="here/title">No title</title>
>    		<meta name="generator" content="amaya 8.5, see 				 	 
> http://www.w3.org/Amaya/" />
> 		</head>
> 
> 		<body>
> 		<h2 tal:content="template/title_or_id">Hello</h2>
> 		</body>
> 	</html>
> 
> (Note the declaration of "tal" namespace in the html tag, and the use of 
> atributes "tal:content" in the title and h2 tags)
> 
> The following are two cases (there may be more)
> 		
> 1) local file editing: if I open/create page.html, edit it (content 
> and/or structure) in the "source view", synchronize and save it  then 
> the content will be untouched, but if I edit it in other views (main, 
> structure ...) tal:content attributes will be cleared in the saved file.
> 
> 2) remote editing (Zope with PUT method): if I open 
> http://home.of.zope/page.html/source.html (the page.html now is a "page 
> template" object and that URL is required by zope for editing its 
> contents and not its 'rendered' version) and edit it in "any" view  and 
> save it  then  tal:content attributes will be cleared in the saved 
> object (although in the "source view" these attributes will continue to 
> hold till the end of the editing session).
> 
> As you could imagine this problem will hold with any namespace 
> declaration, not only with the zope's ones.
> I hope this could help you to reproduce the error, in any case contact 
> me any time.
> 
> Regards
> 
> Marco Paone
> 

Received on Friday, 9 July 2004 13:37:33 UTC