xml - XSL ignores my whitespace even with the <xsl:text> tag -


i'm making header in xsl code includes multiple fields of information, i.e. "name: bob birthdate: january 1 1900," etc. enclosed them in tags such:

<xsl:text>    gender: male    </xsl:text>  

but on page, whitespace around gender/male being ignored. there i'm missing?

thanks in advance.

if want output text file should specify <xsl:output method="text"/> child of <xsl:stylesheet> element.

when treating output html parser might pack spaces, if html output non-breaking spaces want can use &#160; non-breaking space entity (note &nbsp; might not work since it's not xml entity, unless declare yourself).


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -