I am using saxon6.4 on Solaris. I have a dtd which declares general entity references to a few of external xml documents. In the master xml document which use this dtd I reference the entities, thus building a single xml document from other pieces of xml documents declared in the dtd.
I use <xsl:copy-of> to perform deep copy from the root for output. The output however add an extra line for every line in the source documents--kinda like double spacing it. Is there a way to suppress this extra line while getting an output as they are from the sources? Here is the command I use.
<xsl:template match="/"><xsl:copy-of select="."/></xsl:template>
thanks for your help.
xsl:copy-of will not add any white space by itself - this must be
coming from the input document. A wild guess: have you written
in the main document? If so, this will contribute a newline for every
included document. Write <doc>&e1;&e2;</doc> instead.
If that isn't it, please be more specific about what the input and
output look like.
Melvaig Software Engineering Limited
voice: +44 (0) 1445 771 271=20
email: tcn@... web: http://www.melvaig.co.uk
Get latest updates about Open Source Projects, Conferences and News.