Click here to Skip to main content
15,911,030 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: XML? Pin
Rahithi18-Jan-07 15:05
Rahithi18-Jan-07 15:05 
GeneralRe: XML? Pin
shakhtyor20-Jan-07 16:03
shakhtyor20-Jan-07 16:03 
GeneralRe: XML? Pin
Rahithi20-Jan-07 17:49
Rahithi20-Jan-07 17:49 
GeneralRe: XML? Pin
shakhtyor20-Jan-07 20:37
shakhtyor20-Jan-07 20:37 
GeneralRe: XML? Pin
Rahithi21-Jan-07 4:06
Rahithi21-Jan-07 4:06 
QuestionXSL general question Pin
picazo17-Jan-07 11:49
picazo17-Jan-07 11:49 
AnswerRe: XSL general question Pin
led mike18-Jan-07 5:12
led mike18-Jan-07 5:12 
AnswerRe: XSL general question Pin
Dustin Metzgar18-Jan-07 7:08
Dustin Metzgar18-Jan-07 7:08 
picazo wrote:
<xsl:template match="@* | node()">
  <xsl:copy>
    <xsl:apply-templates select="@* | node()"/>
  </xsl:copy>
</xsl:template>

This code is really your problem. You should try matching differently. Instead of doing this, try replacing it with:
<xsl:template match="/">  
  <TemplateRoot>
    <xsl:for-each select="InputRoot/elem">
       <xsl:apply-templates select="."/>
    </xsl:for-each>
  </TemplateRoot>
</xsl:template>

The code may not be exactly correct because I was too lazy to test it. I think it's a neat idea to mix two XML files, but it depends on your requirements. In most cases, you would want to adjust the XSL instead of having a template XML file outside, like led mike suggested.



GeneralAdvice on Standard Message Wrapper Pin
Brady Kelly17-Jan-07 2:02
Brady Kelly17-Jan-07 2:02 
GeneralRe: Advice on Standard Message Wrapper Pin
Stefan Troschuetz17-Jan-07 4:26
Stefan Troschuetz17-Jan-07 4:26 
GeneralRe: Advice on Standard Message Wrapper Pin
led mike17-Jan-07 6:37
led mike17-Jan-07 6:37 
Questionaltering data of embeded xml file in assembly Pin
vishwa2514-Jan-07 21:48
vishwa2514-Jan-07 21:48 
GeneralRe: altering data of embeded xml file in assembly Pin
George L. Jackson15-Jan-07 3:10
George L. Jackson15-Jan-07 3:10 
AnswerRe: altering data of embeded xml file in assembly Pin
Ed.Poore15-Jan-07 5:03
Ed.Poore15-Jan-07 5:03 
QuestionTurning an xml string held in a single excel cell into an XML document Pin
alect14-Jan-07 8:51
alect14-Jan-07 8:51 
AnswerRe: Turning an xml string held in a single excel cell into an XML document Pin
George L. Jackson15-Jan-07 3:15
George L. Jackson15-Jan-07 3:15 
GeneralRe: Turning an xml string held in a single excel cell into an XML document Pin
alect16-Jan-07 10:18
alect16-Jan-07 10:18 
Questionusing CSS programatically Pin
Tina P13-Jan-07 17:12
Tina P13-Jan-07 17:12 
AnswerRe: using CSS programatically Pin
jamesInvader13-Jan-07 19:27
jamesInvader13-Jan-07 19:27 
AnswerRe: using CSS programatically Pin
George L. Jackson14-Jan-07 4:12
George L. Jackson14-Jan-07 4:12 
Questionnewlines in xmldocument [modified] Pin
livez11-Jan-07 22:00
livez11-Jan-07 22:00 
AnswerRe: newlines in xmldocument Pin
led mike12-Jan-07 5:19
led mike12-Jan-07 5:19 
GeneralRe: newlines in xmldocument Pin
livez14-Jan-07 21:59
livez14-Jan-07 21:59 
Questioncode and logic generation from xml Pin
ashtom1Ashu11-Jan-07 4:52
ashtom1Ashu11-Jan-07 4:52 
QuestionMSXML query Pin
lkrishn10-Jan-07 17:39
lkrishn10-Jan-07 17:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.