xsl-list
[Top] [All Lists]

[xsl] Adding prefix to elements when I import a XML file

2007-10-31 02:48:28
Suppose that I want to import a xml file into another
file.
 
The file that I want to import is like:
 
<document>
<head>this is a headline</head>
<text>this is the text</text>
<caption>this is the caption</caption>
</document>
 
to do that I use copy-of-select=document(file.xml)...
and it works fine. 
 
But I want at the same time to add a prefix to some of
the tags of the imported file, in order to have a
output like:
 
<document>
<xed:head>this is a headline</xed:head>
<xed:text>this is the text</xed:text>
<xed:caption>this is the caption</xed:caption>
</document>
 
My question is how can I do that? Import and
transforming at the same time?
 
Thanks in advance,

Virginia


       
______________________________________________ 
Pregunta, Responde, Descubre. 
Comparte tus consejos y opiniones con los usuarios de Yahoo! Respuestas 
http://es.answers.yahoo.com/info/welcome

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--