Skip to content

Instantly share code, notes, and snippets.

@nicosantangelo
Created August 31, 2012 18:53
Show Gist options
  • Save nicosantangelo/3557306 to your computer and use it in GitHub Desktop.
Save nicosantangelo/3557306 to your computer and use it in GitHub Desktop.
Problem with XSL indentation. See this SO question http://goo.gl/f4gjh
<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>
<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