Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - New line in txt output [Thread Next] Re: New line in txt outputTo: NULL Date: 3/10/2009 1:11:00 PM Zest4Quest wrote:
> Hi,
> I am creating an XSLt which would give a text out put to be displayed in a
> text box.
> I am using stmts like the ones below.
>
> Safety
> <xsl:if test ="SideRails = 'true'">
> Siderails up / brakes on / bed low
> </xsl:if>
> <xsl:if test ="InChair = 'true'">
> ,In chair / brakes on
> </xsl:if>
> <xsl:if test ="CallBell = 'true'">
> ,Call bell within reach
> </xsl:if>
>
> the ouput is given below
> Safety
>
> Siderails up / brakes on / bed low
>
> ,In chair / brakes on
>
> ,In Restraint(see flowsheet)
>
> what i infact want is the following out put
>
> Safety
> Siderails up / brakes on / bed low , In chair / brakes on, In
> Restraint(see flowsheet)
Use xsl:text to control the text better e.g.
<xsl:if test ="SideRails = 'true'">
<xsl:text>Siderails up / brakes on / bed low</xsl:text>
</xsl:if>
<xsl:if test ="InChair = 'true'">
<xsl:text>,In chair / brakes on</xsl:text>
</xsl:if>
<xsl:if test ="CallBell = 'true'">
<xsl:text>,Call bell within reach</xsl:text>
</xsl:if>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
