Re: LibXML and whitespace
"Christopher R. Maden" <[email protected]> Fri, 18 Feb 2011 12:08:02 -0500
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On 02/18/2011 12:01 PM, Maurice Mengel wrote: > I am using XML::LibXML/XML::LibXSLT to create xml documents. I get output > like this where I don't like the whitespace Do you have whitespace in your XSLT? I find it good practice to never have significant whitespace in XSLT, with copious use of <xsl:text>. For instance, if your stylesheet has: <lido:lidoRecID> spk:<xsl:value-of select="$objID"/> </lido:lidoRecID> I would do <lido:lidoRecID> <xsl:text>spk:</xsl:text> <xsl:value-of select="$objID"/> </lido:lidoRecID> I strongly suspect this is not XML::LibXSLT specific, and if this doesn’t resolve the problem, followups maybe should go to xsl-list. ~Chris -- Chris Maden, text nerd <URL: http://crism.maden.org/ > “For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.” — R.P. Feynman GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319 _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs