XSLT transformation that just displays original XML?

M

Matt Bradbury

Hi everyone. I'm in a situation where I need to work with XML data
that I don't have the format for. It's a web service situation where
I hand them a query and an XSLT file. They produce XML fromt the
query, then run the XSLT on it and return the transformed data. But I
need to find out the original structure since the interface is poorly
documented.

Anyone have any suggestions as to how to do this? Or even better a
XSLT file laying around that can generically return the original XML?

Thanks for your time.

-Matt Bradbury
 
V

Vemund Olstad

Hi

I have a transformation routine that is supposed transform the xml
file more or less "as it is", and I've tried the template you suggest.

There is , however, one problem I have yet to resolve: is it possible
to copy the DOCTYPE declaration as well? As far as I know this is not
one of the nodes xPath is able to target, so how can I copy it?

I would be very happy if could supply an answer, or point me in the
right direction here...

Best wishes

Vemund
 
V

Vemund Olstad

Sorry -- you can't. There are only "traces" of a DTD in the XML Infoset.

Blegh - I was afraid of that. Thank you for the very quick response -
I guess I'll have to resort to scripting....

Best wishes

Vemund
 
D

Dimitre Novatchev

There is , however, one problem I have yet to resolve: is it possible
to copy the DOCTYPE declaration as well? As far as I know this is not
one of the nodes xPath is able to target, so how can I copy it?

Sorry -- you can't. There are only "traces" of a DTD in the XML Infoset.


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top