View Full Version : create new xml string with xsl
frontline
12-29-2002, 04:37 PM
is there any way to create new xml (string)
from existing xml string with xsl ?
brothercake
12-29-2002, 04:48 PM
well yeah, trivially:
<xsl:text><new_tag/></xsl:text>
or
<xsl:text><</xsl:text><xsl:value-of select="tag_name"/><xsl:text>></xsl:text>
frontline
12-29-2002, 04:53 PM
hi
can i save this string to file with xsl?
brothercake
12-29-2002, 11:56 PM
I don't think so - AFAIK you can't do file-system stuff with it. XSL is designed to generate visual or other output, rather than to create or write to files in the sense you mean.
What's your host language? ASP and PHP could both accomplish that task.
btw - in the previous example I posted, I don't think the entities are actually necessary. You can use normal < > inside <xsl:text> just as you would if generating HTML
frontline
12-30-2002, 07:28 AM
ok i get it
but i have one more question about outputing vaild xml struct
if i format with xsl one xml to construct new xml how can i make it
display in IE 5.5+ like it display normal xml file
this : tree view look ...?
and not just blank page .
thanks
brothercake
12-30-2002, 07:57 AM
someone else asked that in this thread (http://www.codingforums.com/showthread.php?s=&threadid=12108)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.