I have problem with XSLTC transformation of a DOM representation that is similar to this (but larger):

<A>
 <B>
   <C></C>
   <D>ddddddddd</D>
   <E>eeeeeeeeeee</E>
   <F>ffffffffffff</F>
    ...
 </B>
  ...
</A>

Note that C is not an empty element, but contains a text node with the empty string as its value.

When I use a serializer to output the document it looks as expected, but when I put it through a transformation, e.g. a simple "identity" transformation like this:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="*">
<xsl:copy><xsl:apply-templates/></xsl:copy>
</xsl:template>


The document appears to look like this:

<A>
 <B>
   <C>dddddddddeeeeeeeeeeeffffffffffff</C>
   <D>ddddddddd</D>
   <E>eeeeeeeeeee</E>
   <F>ffffffffffff</F>
 </B>
</A>

Here are some observations I made:

- Only a XSLTC problem - works a expected with Xalan
- Seems to be independent of the stylesheet
- If the value of the text node in C is not empty, I don't get the problem, but it doesn't happen with any document containing an empty text node.


I haven't yet been able to reproduce this in a simple isolated example, that I can share with you, but if anyone have a clue what might be going on, or where to look, or how to debug, or ..., please let me know.

Thanks,
Anders Blaagaard


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to