views:

16

answers:

1

Hi,

I'm using:

<xsl:template match="material_id | location_code"></xsl:template>

To get rid of elements in the source XML called material_id and location_code, but whitespace lines remain, leaving an output XML something like:

<entries>
    <Identity>conflab1</Identity>


    <price>24.36</price>
    <pricedate>15-Jul-2010 13:35:18 UTC</price_date>
</entries>

How should I stop it from leaving the newline characters?

Thanks,

Matt

+2  A: 

Try:

<xsl:strip-space  elements="*"/>

at the top of the document.

hollsk