code_junkie

Why xslt creats a new table but not uses the one of the template

Nov 14th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <Root>
  2. ...
  3. <x></x>
  4. <node>
  5. ...
  6. <x></x>
  7. <y></y>
  8. </node>
  9. </Root>
  10.  
  11. <xsl:template match="/">
  12. <!-- proceed the treatment of the statement before x-->
  13. <tr>
  14. <xsl:apply-templates match="Root/x"/>
  15. </tr>
  16. <tr>
  17. <xsl:apply-templates match="Root"/>
  18. </tr>
  19. </xsl:template>
  20.  
  21. <xsl:template match="x">
  22. ...
  23. </xsl:template match="x">
  24.  
  25. <xsl:template match="Root">
  26. <!--Proceed the treatment of the statement before x-->
  27. <tr>
  28. <xsl:apply-templates match="x"/>
  29. </tr>
  30. <!--Deal with y-->
Add Comment
Please, Sign In to add comment