XSL output method text including whitespaces in xsl

前端 未结 2 976
悲哀的现实
悲哀的现实 2021-01-14 06:00

I am creating some xsl to transform my xml into text (which will be csv eventually). I am using VS2008. When I use the editor to create the xsl, the transformed output is

2条回答
  •  囚心锁ツ
    2021-01-14 06:16

    You can use the xsl:strip element to declare which elements should not have whitespace (or use * for all elements):

    
    

    The counter part is xsl:preserve, which allows you to declare which elements should have whitespace preserved. You could use both:

    
    
    
    

提交回复
热议问题