BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XSLT with Delphi 2005

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML
View previous topic :: View next topic  
Author Message
Martin Holmes
Guest





PostPosted: Thu Jan 19, 2006 11:24 pm    Post subject: XSLT with Delphi 2005 Reply with quote



I'm using Delphi 2005 and I'd like to find a simple way to do an XSLT
transformation on an XML document to produce XHTML. Do I still need to
go through all the steps of importing the MSXML type library? If not,
what's the best approach?

Cheers,
Martin
Back to top
Bob Swart
Guest





PostPosted: Fri Jan 20, 2006 7:10 am    Post subject: Re: XSLT with Delphi 2005 Reply with quote



Hi Martin,

Quote:
I'm using Delphi 2005 and I'd like to find a simple way to do an XSLT
transformation on an XML document to produce XHTML.

See http://www.drbob42.com/examines/examin50.htm (the last section
covers XSLT on .NET, in case you need that).

Quote:
Cheers,
Martin

Groetjes,
Bob Swart

--
Bob Swart Training & Consultancy (eBob42.com) Borland Technology Partner
Weblog: http://www.drbob42.com/blog - RSS: http://drbob42.com/weblog.xml

Back to top
Martin Holmes
Guest





PostPosted: Fri Jan 20, 2006 9:08 pm    Post subject: Re: XSLT with Delphi 2005 Reply with quote



HI Bob,

I've worked through the article, and got the basic system working, but
the results I'm getting are messed up. The XML and XSLT files I'm using
work fine -- I get the correct XHTML results with Saxon, Firefox and
with IE -- but when I run the transformation using TXMLDocument
components, the result I get is just

<?xml version="1.0"?>
[Plain text of the source doc with no tags at all.]

In other words, the transformation proceeds as though there are no XSLT
templates. Now, I wouldn't be amazed if MSXML did a lousy job where
Firefox ans Saxon XSLT engines work OK; however, IE is presumably using
the same engine as that invoked by TXMLDocument, so I'm at a loss.

The source doc does have multiple namespaces (SVG elements embedded in a
TEI document). I wonder if that's the source of the problem?

Cheers,
Martin

Bob Swart wrote:
Quote:
Hi Martin,

I'm using Delphi 2005 and I'd like to find a simple way to do an XSLT
transformation on an XML document to produce XHTML.

See http://www.drbob42.com/examines/examin50.htm (the last section
covers XSLT on .NET, in case you need that).

Cheers,
Martin

Groetjes,
Bob Swart


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.