W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2004

copy elements with all attributes...

From: Nikolas Nehmer <Nikolas.Nehmer@t-online.de>
Date: Tue, 13 Jan 2004 00:17:06 +0100
To: <xmlschema-dev@w3.org>
Message-ID: <000001c3d962$31f2e450$0200a8c0@nikolas>
Hi there,
 
I have an XML file with a XSL stylesheet whick looks like this:
 
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="person.xsl"?>
<iese:person xmlns:iese="http://www.iese.fhg.de"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.iese.fhg.de
C:\projects\person_and_publication_xlink\person.xsd">
       <iese:firstname>Nikolas</iese:firstname>
       <iese:lastname>Nehmer</iese:lastname>
       <iese:author_of xlink:type="simple" xlink:show="new"
xlink:href="publication.xml"/>
</iese:person>
 
 
 
Now I want my XSL rules process the following output:
...
<iese:author_of xlink:type="simple" xlink:show="replace"
xlink:href="publication.xml">Some Text</iese:author_of>
...
 
 
How do I achieve this? Do I have to use the xsl:copy
and"use-attribute-sets"? Or is it possible to inherit the whole element
with all it's attributes and attribute values. I would be very happy
about some help.
 
Greetz,
Nick
 
Received on Monday, 12 January 2004 18:27:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:41 GMT