Re: xt attributes

Le lundi 10 août 2009 à 09:51 -0400, Daniel Hernández a écrit :
> Hello,
> 
> I have been dealing with xt:attribute with Amaya 11.2 in a template as
> follows:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
>           "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
> 
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>       xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>       xmlns:owl="http://www.w3.org/2002/07/owl#"
>       xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
>       xmlns:foaf="http://xmlns.com/foaf/0.1/"
>       xmlns:dc="http://purl.org/dc/elements/1.1/"
>       xmlns:xt="http://ns.inria.org/xtiger">
> 
>   <head>
>     <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
>     <xt:head version="0.9" templateVersion="1.0">
>     </xt:head>
>   </head>
> 
>   <body>
> 
>     <a>
>       <xt:attribute name="rel" type="string"/>
>       <xt:attribute name="href" type="string"/>
>       <xt:use types="string">link text</xt:use>
>     </a>
> 
>   </body>
> </html>
> 
> But, when I create a new document using this template the created document
> has the code:
> 
> <a rel="" href="">
>   <xt:attribute name="rel" type="number"/>
>   <xt:attribute name="href" type="number"/>
>   <xt:use types="string" initial="true">link text</xt:use>
> </a>
> 
> It changes the type of template attributes to "number" and I don't se a way
> to edit the attributes "rel" or "href", because there are not options in the
> attributes menu in the right panel.

Right. That problem is now fixed in the CVS version.

> 
> There is a problem with my template or xt:attribute is a not supported feature
> for amaya?

That problem is now fixed too.

> Thanks,
> 
> --
> Daniel Hernández
> 
-- 
Irene Vatton <Irene.Vatton@inria.fr>
INRIA

Received on Wednesday, 12 August 2009 10:33:21 UTC