Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Xslt removing spaces?

From: Joe@-----------.---------.---
To: NULL
Date: 1/25/2008 7:06:00 AM

Thanks Martin,

We're using .NET 2.0 to handle the processing.  We'll try tour suggestions.

Thanks again.
-- 
Joe


"Martin Honnen" wrote:

> Joe wrote:
> 
> > We are using an xslt to format xml and transform it into html.  Some of the 
> > nodes in the xml are filled with spaces (the xml is from a mainframe and is 
> > providing us with data for a web page report).  The xml is formatted as such:
> > 
> > <RespinseXml>
> >   <Records>
> >     <Record>blah blah blah</Record>
> >     <Record>blah blah blah</Record>
> >     <Record>                    </Record>
> >     <Record>                    </Record>
> >     <Record>blah blah blah</Record>
> >     <Record>blah blah blah</Record>
> >   </Records>
> > <?RespinseXml>
> 
> Which XSLT processor do you use and how do you load the XML?
> Does it work as intended when you put
>    <RespinseXml xml:space="preserve">
> on your root element?
> Or if you use MSXML make sure you set
>   xmlDoc.preserveWhiteSpace = true
> before you load the XML input document.
> With the .NET framework it helps to use
>    new XPathDocument("file.xml", XmlSpace.Preserve)
> 
> 
> 
> -- 
> 
> 	Martin Honnen --- MVP XML
> 	http://JavaScript.FAQTs.com/
> 


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent