View Single Post
  #2 (permalink)  
Old March 20th, 2008, 10:50 AM
Martin Honnen Martin Honnen is offline
Friend of Wrox
Points: 6,676, Level: 34
Points: 6,676, Level: 34 Points: 6,676, Level: 34 Points: 6,676, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: Germany
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

I don't understand what you want to achieve.
You might want to post a sample of your input and then a sample of the output you want to create with your stylesheet.
Generally if you want to create elements with your stylesheet then you have two options, literal result elements e.g.
Code:
<xsl:template match="foo">
  <bar>
    <xsl:apply-templates/>
  </bar>
</xsl:template>
and constructing elements with xsl:element e.g.
Code:
<xsl:template match="foo">
  <xsl:element name="bar">
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>
Reply With Quote