W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2007

Maybe there is bug in template editing (XTiger)

From: Joel Lehtonen <jopesale@jyu.fi>
Date: Thu, 21 Jun 2007 12:36:21 +0300
To: www-amaya@w3.org
Message-Id: <200706211236.21908.jopesale@jyu.fi>

I am using CVS version of Amaya (updated today) on Fedora Core 6. I created a 
new document from the following xtd file:

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" 
xmlns:xt="http://ns.inria.org/xtiger">
	<head>
		<title>Testing bag</title>
		<xt:head version="0.9" templateVersion="1.0">
		</xt:head>
	</head>

	<body>
		<xt:bag label="sisus" types="p">
			<p>Testing...</p>
		</xt:bag>
	</body>
</html>

When I press return at the end of the "Testing..." paragraph, Amaya creates a 
new paragraph but when I type something in there, new paragraph disappears 
and characters I've typed appears to the end of "Testing"-paragraph.

But when I change the line: <xt:bag label="sisus" types="p">
to this: <xt:bag label="sisus" types="anyElement">
inserting paragraphs works fine. I think this is a bug.

I want to allow only creation of new paragraphs, not any other xhtml elements. 
According to specs at http://www.w3.org/Amaya/Templates/XTiger-spec.html this 
should work.

Thanks in advance! And thanks to Laurent for fixing the bug I reported on 
Tuesday :-)

-- 
Joel Lehtonen
Received on Thursday, 21 June 2007 09:36:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:38 UTC