View Single Post
  #1 (permalink)  
Old March 20th, 2008, 10:44 AM
aaronmuslim aaronmuslim is offline
Authorized User
Join Date: Mar 2008
Location: Denver, CO, USA.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default I can't figure this out.

I can't figure out how to create new xml elements to hold values of
another xml documents elements with XSLT. When I choose the output method of xml none of the < or > entities get converted to < >. So should I change the output method to "text" and just open by declaring the xml document myself? I'm sure there is some simple solution here that I just can't find a referencing example of.

Heres what my newb thoughts are composed of right now:

  <xsl:output method="xml"/>

  <xsl:template match="/Root">
    &lt;NEWXMLELEMENT &gt;
      <xsl:value-of select="."/>

I really want to know how to do this with XSLT properly and not have to revert to my old java methods...
Reply With Quote