xsl-list
[Top] [All Lists]

Re: [xsl] XSL:problem printing the values in between two tags

2006-09-11 07:30:49

Would there be a way to switch to new line whenever the <lb> tag comes?
basically to print this in three different lines.

use apply-tremplates not value of then have a template fo lb that nmakes
a new line so

<xsl:template match="lb"><xsl:text>&#10;</xsl:text></xsl:template>
if you are generating text or
<xsl:template match="lb"><br/></xsl:template>
if you are generating html and owant a newline in the rendered output.


Would there be a way to switch to new line whenever the <lb> tag
comes?
don't use "tag" to mean "element", XSLT has no access to the tags in the
document (they are resolved by the XML parser before XSLT starts)


David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--