Created
August 31, 2012 18:53
-
-
Save nicosantangelo/3557306 to your computer and use it in GitHub Desktop.
Problem with XSL indentation. See this SO question http://goo.gl/f4gjh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="parent"> | |
<div class="child"> | |
<h4 class="title">Title</h4> | |
</div> | |
<div class="Tag"><a href="#"> | |
some text | |
</a><a href="#"> | |
some text | |
</a><a href="#"> | |
some text | |
</a><a href="#"> | |
some text | |
</a><a href="#"> | |
some text | |
</a></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> | |
<xsl:output method="html" indent="yes"/> | |
<xsl:template match="/"> | |
<div class="parent"> | |
<div class="child"> | |
<h4 class="title">Title</h4> | |
</div> | |
<div class="Tag"> | |
<xsl:for-each select="//Object/Table"> | |
<a href="#"> | |
some text | |
</a> | |
</xsl:for-each> | |
</div> | |
</div> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment