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 3 4297
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
On Wed, 20 Aug 2003 21:16:34 +0200, "Dimitre Novatchev"
<dn********@yah oo.com> wrote: This is the wellknown identity template:
<xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> ===== Cheers,
Dimitre Novatchev. http://fxsl.sourceforge.net/ -- the home of FXSL
"Matt Bradbury" <br******@iense mble.com> wrote in message news:2d******* *************** ***@posting.goo gle.com... 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
> 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
"Vemund Olstad" <ve***********@ hit.uib.no> wrote in message
news:3f******** *******@nntp.ui b.no... 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
On Wed, 20 Aug 2003 21:16:34 +0200, "Dimitre Novatchev" <dn********@yah oo.com> wrote:
This is the wellknown identity template:
<xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> ===== Cheers,
Dimitre Novatchev. http://fxsl.sourceforge.net/ -- the home of FXSL
"Matt Bradbury" <br******@iense mble.com> wrote in message news:2d******* *************** ***@posting.goo gle.com... 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
On Thu, 21 Aug 2003 14:53:11 +0200, "Dimitre Novatchev"
<dn********@yah oo.com> wrote: 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
"Vemund Olstad" <ve***********@ hit.uib.no> wrote in message news:3f******* ********@nntp.u ib.no... 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
On Wed, 20 Aug 2003 21:16:34 +0200, "Dimitre Novatchev" <dn********@yah oo.com> wrote:
>This is the wellknown identity template: > > <xsl:template match="@* | node()"> > <xsl:copy> > <xsl:apply-templates select="@* | node()"/> > </xsl:copy> > </xsl:template> > > > >===== >Cheers, > >Dimitre Novatchev. >http://fxsl.sourceforge.net/ -- the home of FXSL > > >"Matt Bradbury" <br******@iense mble.com> wrote in message >news:2d******* *************** ***@posting.goo gle.com... >> 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 > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sergio del Amo |
last post by:
Hi,
I use the xslt functions provided by php. I am running in my computer
the package xampp(www.apachefriends.org) which includes php/apache/mysql
.. In this package the php includes the sablotron extension responsible
for the xslt functions. The problem i have is that the obtained
transformation is not the waited one. I try to proccess the same XML
file with XSL file with a program called XMLspy and i obtained the
desire and waited...
|
by: Pete |
last post by:
I am just getting to grips with XML and I was wondering if you could help me
with something that no-one seems able or willing to help with..
I have an XSLT file which should be transforming a straight XML file
http://www.discovertravelandtours.com/test/templates/test.xml?Location=Germany
To another XML file
http://www.discovertravelandtours.com/test/templates/test2.xml?Location=Germany
|
by: Jens Mueller |
last post by:
Hi there,
this is a Java-XML Question, so I am not sure whether this is the
right place, haven't found anything better ....
I try to convert a Java object to XML via SAX and let the FOP
Transformer convert that via XSLT to valid XSL-FO. So I define a
SAXReader which fires the SAX Events for the Java Object. This works
fine and the Transformation to PDF is ok.
However, I have one object which contains an XHTML String and the tags
|
by: Stephen |
last post by:
I have the following that outputs an xml file to a div using ajax:
<script type="text/javascript">
function ajaxXML(url,control_id){
if (document.getElementById) {
var x = (window.ActiveXObject) ? new
ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
}
if (x) {
|
by: JJBean |
last post by:
Hi Oleg and All,
Is this correct? Can I do this?
<code>
XmlDocument doc=new XmlDocument();
XPathNavigator nav = doc.CreateNavigator();
//Load the xml file. Change path if needed
doc.Load(@"..\..\..\books.xml");
| |
by: Dan |
last post by:
I have a C# program which executes some XSLT transformations. The XSLT code
requires an input intermediate file, generated by other transformations, as
its duty is copying some data from an input XML while inserting into it
another XML fragment. E.g. let's say this is the original XML:
<Dummy>
<contacts>
... contacts go here ...
</contacts>
</Dummy>
|
by: crazydiode |
last post by:
HI All,
I am new to XSLT. I am trying to use xslt with xml in my java code. I
am basically trying to replace one node of the original xml with my own
node. I defined the xslt as follows:
<xsl:stylesheet xmlns:xsl=" http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="directions">
myNode = <xsl:value-of select="directions"/>
</xsl:template>
|
by: simon.a.hulbert |
last post by:
Hi, I'm trying to view the following xslt transformation using firefox
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
version = "1.0" >
<xsl:output method = "xml" indent = "yes" />
<xsl:attribute-set name = "set1" >
<xsl:attribute name = "a" >1</xsl:attribute>
<xsl:attribute name = "b" >2</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name = "set2" >
|
by: boetke |
last post by:
Hi all,
I am attempting to create an xslt transformation which I am having trouble with. I am fairly new to xslt and am having a hard time getting my head around it. The original xml file looks like this:
<DataSet ID="-5480">
<ObsGroup>
<ClsItem name="AGE">2099</ClsItem>
<ClsItem name="COMB_DATA">20</ClsItem>
<ClsItem name="SEX">2</ClsItem>
<ClsItem name="STATE">0</ClsItem>
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |