> Martin,
> 
> Thanks for your reply and examples.  Also, sorry for suggesting that
> the browser was messing up the graphic.  I meant to imply that MS had
> somehow mangled the transformation which made it impossible to render
> in the browser, not that the browser was at fault. (geez, you guys are
> so sensitive about browser issues!)
> 
> You're right, the extra characters and spaces in the <d> attribute
> render fine when I manually insert them into the svg doc.  I suppose
> I'm having trouble with some other aspect of the transformation.  I
> will try to track it down.
> 
> My example was rather simplistic.  I'm developing a stand-alone app
> that uses IE+ASV in a .NET wrapped COM component.  My code gets an
> Illustrator graphic from a database, puts it into an XPathDocument
> object to which an XSLTransform object is applied.  This is supposed
> to merge other data from an object model into the graphic (basically
> changing the fill colors based on data) and then extract a node
> segment from the main document.  The segment is then inserted into a
> preloaded svg template graphic which has already been rendered in the
> browser.  The whole thing is roughly similiar to Francis'
> xmlSVG10000.zip example listed in the "Files" section of this group. 
> The trouble arises when I try to get the correct node segment to
> insert.  I thought that the extra characters were the problem but I'm
> going to have to look further.
> 
> I'll let you know what I find.  If you can suggest any common traps I
> should be looking at, I'd be grateful.
> 
> Thanks, Wayne
>

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.

Thanks, Wayne






-----
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