--- In [email protected], "waynehet" <[EMAIL PROTECTED]> wrote:

> I think I found the problem.  It seems that its coming from a UTF8 BOM
> (Byte Order Mark).  After MS XSLTransform object does its thing, I
> convert the output stream into a string which is passed as a parameter
> to a javascript function in my SVG template graphic in the browser. 
> When converting from a stream to a string the resulting string starts
> with "0xEF 0xBB 0xBF" characters before the first node.  The
> replaceChild method in the svg dom does not like those characters and
> bombs.
> 
> I "fixed" it by truncating the first three characters and everything
> works fine.  I know this is not a pretty solution so I'm open to
> suggestions anyone might have.

XslTransform in .NET can directly write to a TextWriter/StringWriter,
for instance with this overload of the Transform method:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXslXslTransformClassTransformTopic14.asp>
That way you should never get anything like a BOM in the string output
of the transformation you get by calling ToString on the StringWriter
passed in.








-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to