473,509 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is this impossible via XSL?

Given this XML segment - Note it is a representation of concept of the
data I am using.

<?xml version="1.0" encoding="UTF-8"?>
<root>
<car>
<CarInfo vin = "4FL200212345">
<Owner>J. P. Morgan</Owner>
</CarInfo>
</car >

<car>
<CarInfo vin = "3CL200212345">
<Owner>J.P. Thompson</Owner>
</CarInfo>
</car >

<carSpecifics vin = "4FL200212345">
<CarMake xrefId = "XREF12345">
<Color>Red</Color>
<Style>Sedan</Style>
</CarMake>
</carSpecifics>

<carSpecifics vin = "3CL200212345">
<CarMake xrefId = "XREF67890">
<Color>Red</Color>
<Style>Sedan</Style>
</CarMake>
</carSpecifics>

<CarXref xrefId = "XREF12345" >
<Incident>Friday Crash</Incident>
</CarXref>

<CarXref xrefId = "XREF67890" >
<Incident>Sat Crash</Incident>
</CarXref>

</root>

I need to walk all car nodes. With the goal of outputting only the
CarXref\Incident node.
Per each attribute VIN, I need to obtain the carSpecifics
\CarMake@xrefId. From that I need to output the CarXref\Incident node
associated with a xrefId. For example. CarInfo vin = "4FL200212345
matches to carSpecifics vin = "4FL200212345" which has an CarMake
xrefId = "XREF67890" which in turn has CarXref xrefId = "XREF12345"
with contents of CarXref\Incident Friday Crash. I want to output
this.

I know this sounds insane, but the XML file I have been given is in
this structure and I have to transform only parts of its contents.
I am beginning to believe that I have to use a regular XML parser as I
cannot determine how XSL would let me do this. I can get CarMake
xrefId yet I have to output text via the xsl-value of and I cannot get
to the final node.

Jun 25 '07 #1
3 1538
No, it is not impossible. Rather standard sort of selection task,
actually...
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Jun 26 '07 #2
On Jun 26, 12:27 pm, Joe Kesselman <keshlam-nos...@comcast.netwrote:
No, it is not impossible. Rather standard sort of selection task,
actually...

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry

http://www.trade-suppliers.com

Jun 26 '07 #3
Not sure why the spam was posted in response to my comment, but I want
to explicitly disavow any knowledge or support therefor.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Jun 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2214
by: erwan | last post by:
It seesm impossible to use the java extension on Mac OS X due to the 'special' file locations of the Java JDK in OS X... am I right ? if not, where can I get some good info or feedback on it ? I...
383
11791
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
4
1424
by: Piotre Ugrumov | last post by:
I have tried to modify my exercise about the simulation of the life in the savannah. Now I have only 2 errors but I don't comprehend how resolve these errors. If I try to call the method getX() and...
7
3578
by: Paul | last post by:
Hi, I have a problem with the C++ spec 14.7.3.15 (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14761 for relevant discussion). It seems that the code (below) is impossible to get right, as...
21
2311
by: Eric | last post by:
Hello all, I've got this line of given code (cannot change this; wizard-generated, but value may change someday): #define IDB_BUTTON 225 Somewhere in the code I found /...
27
1884
by: Greg Smith | last post by:
Hello, I have been given a programming task that falls into the "impossible" category with my current skill set. I am hoping somebody out there knows how to do this and can save my b-t. I...
0
1037
by: Gianluca | last post by:
Is is true that it's impossible to write a C# wrapper for an IDispatch COM object that has more than one property with parameters? I tried everything I could think of and nothing works. You can...
2
1185
by: Cat | last post by:
I created a web site, and I thought I followed XHTML 1.1 rules. But when I validated the pages, I got some error messages. I found that those codes are automatically generated parts by ASP.NET. ...
3
1704
by: Prometheum | last post by:
Having read over some of the disscussions involving incrementing variable names in C++, I have the impression that it's impossible. Is that true? I have a very definite need for them in the following...
9
2606
by: Gabriel | last post by:
Hello, I installed SQL server 2005 SP1 on a Windows XP SP2 From Visual Studio, I'm trygin to create a connection to a database, but I receive this error but I'm creating the connection (I...
0
7136
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...
0
7344
Oralloy
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,...
0
7412
jinu1996
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...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5652
agi2029
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,...
1
5060
isladogs
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...
0
3216
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...
0
1570
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 ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.