473,586 Members | 2,870 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 = "4FL2002123 45">
<Owner>J. P. Morgan</Owner>
</CarInfo>
</car >

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

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

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

<CarXref xrefId = "XREF12345" >
<Incident>Frida y 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\Inciden t node.
Per each attribute VIN, I need to obtain the carSpecifics
\CarMake@xrefId . From that I need to output the CarXref\Inciden t node
associated with a xrefId. For example. CarInfo vin = "4FL2002123 45
matches to carSpecifics vin = "4FL2002123 45" which has an CarMake
xrefId = "XREF67890" which in turn has CarXref xrefId = "XREF12345"
with contents of CarXref\Inciden t 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 1545
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
2215
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 am using Mac OS X (10.2.8 with Java 1.4.1) and PHP 4.3.3 there is a standard package to install 4.3.3 but --with-java is not configured in...
383
12009
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 poor man's DBMS, a broken email server and various other /application/ servers to try and crack the Internet and IS markets. In the case where they...
4
1428
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 getY() of the class Animale from the class Leone, the compiler return to me the same errors. These are the errors: c:\Documents and...
7
3580
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 you cannot define a static data member of a template class if it ONLY has a default-initializer...
21
2329
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 / need this: .....somefunction("#225").... This string in the function call is the same number like in the define, but the constant wasn't used....
27
1897
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 work for a large University. I wrote a Windows-based database application for my department that is used in purchasing. The University has just...
0
1044
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 only use the this indexer for one parametrized parameter. If this is true, anyone knows if this limitation has been lifted in 2.0? It also appears...
2
1189
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. There is no attribute "name". <form name="form1" method="post" action="Default.aspx" id="form1"> And input is not allowed here Since ASP.NET...
3
1712
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 program, and an array won't work. I need to read over a file and store certain information in a struct (person dave; dave.money=200 etc.). However,...
9
2613
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 don't receive the database list in the dropdown) "An error has occured while establishing a connection to the server. When connecting to SQL Server...
0
7911
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
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...
0
8200
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, 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. ...
1
7954
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3836
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...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.