 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Martin Holmes Guest
|
Posted: Thu Jan 19, 2006 11:24 pm Post subject: XSLT with Delphi 2005 |
|
|
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
|
|
| Back to top |
|
 |
Martin Holmes Guest
|
Posted: Fri Jan 20, 2006 9:08 pm Post subject: Re: XSLT with Delphi 2005 |
|
|
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 |
|
 |
|
|
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
|
|