Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - How to select only specific rows from xml using xsl [Thread Next] Re: How to select only specific rows from xml using xslTo: NULL Date: 2/6/2009 7:21:00 PM anywherenotes@g... wrote:
> And my output is:
> $ c:/axssrvr_380/bin/xsltproc sample.xsl sample.xml
>
> status="exception" user="something" exception="bob"
>
> $
>
> I'd like to get this:
> $ c:/axssrvr_380/bin/xsltproc sample.xsl sample.xml
> status="exception" user="something" exception="bob"
> $
>
> I'm not clear where the blank lines are coming from,
Add
<xsl:template match="/">
<xsl:apply-templates select="queries/query"/>
</xsl:template>
otherwise whitespace text nodes inside of the queries element are copied
through to the output by default templates.
As an alternative do
<xsl:strip-space elements="*"/>
as a top-level element in the stylesheet, that would get rid of the
whitespace too.
--
Martin Honnen
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
