Re: replacing a tag element and copying the contents into it in

T Kiernan wrote:

>Any ideas why it's not ... ???
>  
>
because you cannot add attribute nodes to plain text,
which is all you generated

you mean

 <xsl:template match="cat">
    <div class="{local-name(.)}">
    <xsl:copy-of select="@*|*|text()|comment()"/>
    </div>
</xsl:template>

-- 
Sebastian Rahtz      
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431

OSS Watch: JISC Open Source Advisory Service
http://www.oss-watch.ac.uk

Received on Saturday, 1 October 2005 18:03:19 UTC