473,655 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xml - need some guidance

I've got an xml doc which I'm using xslt to create a flat text
configuration file. I need to make some dynamic changes in certain
circumstances where some of the elements need to have others
substituted in their place. Other elements may need to be added or
deleted altogether. So far I'm not seeing how this can be done in
xslt...Looking for some sugestions. Right now I'm doing the transform
with XML::XSLT in perl, but could use soemthing else if absolutely
necessary.

btw - i'm a novice at best on this topic, so be kind on the
explanation. :)
-Inet

Apr 25 '06 #1
5 1586
inetquestion wrote:
I've got an xml doc which I'm using xslt to create a flat text
configuration file. I need to make some dynamic changes in certain


Creating flat text files may be easier without XSL.
Have a look at this:

http://home.vrweb.de/~juergen.kahrs/...-tree-drawings
Apr 25 '06 #2
inetquestion wrote:
I've got an xml doc which I'm using xslt to create a flat text
configuration file. I need to make some dynamic changes in certain
circumstances where some of the elements need to have others
substituted in their place. Other elements may need to be added or
deleted altogether. So far I'm not seeing how this can be done in
xslt...Looking for some sugestions.

XSLT does not patch a document "in place"; it always generates a new
document.

XSLT outputs only what you tell it to output. Typically, in this sort of
situation, you start with the standard identity transformation
(described in any good XSLT document) which copies everything unchanged,
then set up templates which match the things you want to alter and
output the altered information (or nothing) instead.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Apr 25 '06 #3

Jürgen Kahrs wrote:
Creating flat text files may be easier without XSL.


Creating flat text files is easy with many tools, but XSLT can
certainly do it. If your input is XML and you don't wish to use any
other sort of XML parser, then XSLT is still a good choice.

Apr 26 '06 #4
Andy Dingley <di*****@codesm iths.com> wrote:
Creating flat text files is easy with many tools, but XSLT can
certainly do it. If your input is XML and you don't wish to use any
other sort of XML parser, then XSLT is still a good choice.


Yes, that's why I wrote "may be". I wanted to draw his
intention to the fact that XSLT is sometimes required
by circumstance, but not always mandatory.
Apr 26 '06 #5
inetquestion wrote:
I've got an xml doc which I'm using xslt to create a flat text
configuration file. I need to make some dynamic changes in certain
circumstances where some of the elements need to have others
substituted in their place. Other elements may need to be added or
deleted altogether. So far I'm not seeing how this can be done in
xslt...Looking for some sugestions. Right now I'm doing the transform
with XML::XSLT in perl, but could use soemthing else if absolutely
necessary.


Can you post an example of the XML and the kind of output you want from
it? XSLT can certainly do the job (modulo Jürgen's comments) but without
seeing what you want it's impossible to give any guidance.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Apr 26 '06 #6

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

Similar topics

3
2379
by: new_GUY | last post by:
I have a HUGE project (at least for me) and need some guidance. I am trying to create a database for a local university movie club that allows users to input there basic personal information (name, address, telephone number) as well as movies in there collection. The movies will be categorized by genre (comedy, romance, horror, etc.) and title. I want to be able to let the users add and remove movies to their list of movies they own,...
0
1100
by: Patrick.O.Ige | last post by:
This what i got from microsoft! GDluck Dear ASP.NET Customer, This alert is to advise you of the availability of a web page that discusses an investigation Microsoft is currently conducting into public reports of a security vulnerability in ASP.NET. A malicious user could provide a specially-formed URL that could result in the unintended serving of secured content.
5
1585
by: Realtime | last post by:
How do I go about writing a php application that will alert people in a database from different RSS news feeds from different sites. So lets say we have a database and user A has a list of news alerts he wants to be alerted on. So the application will go to a search engine that will bring up the results in XML. The results are then stored in the database. I just need the logic process. Because I am worried of the latency on the server. ...
0
1324
by: lucky | last post by:
hi, i've to work on a DB2 project.i'm totally unaware of those concepts.can anyone guide me atleast on the overview of db2.i need specific guidance on connectivity in db2.does it refer tothe DB2 connectivity with the front end or about how the client gets connected to the DB2 server?can u guide me on those.. :confused: :confused: :confused:
2
1944
by: csman24 | last post by:
I'm just looking for some guidance so that I get a start on a school project. Need to write 3 kind of event for a Bus, Passenger, transit system in which: -person: arrives at bus Q after random time (i already have a prog. to produce those random number) what indicates the arrival of a next passenger to bus Q. -arrival: of bus at stop. if no one in Q, bus continues to next stop and event of its arrival is generated. Else,...
2
1790
by: VirtualLilac | last post by:
Hi, Am trying to build a database for non-profit organisation, its a volunteer job and nobody around to guide me. From my learning I could able to build few reports and forms but am feeling stuck at one point and I need some guidance. I have two tables tblWorkers and tblLocations (locations & positions to volunteer & start and end time) and made relationship using tblJunction. I need to build a form which shows volunteers details and...
8
1910
by: SanjaiGandhi | last post by:
Hi ...i am new to programing....pls help to overcome this program.. The Program is..: if a = 557..using for loop or while or dowhile ..we have to get the answer for 5+5+7..that is what ever numbers we entered to a..that should be added.. for eg if a = 34 the answe should be 7 that is 3+4 using % and / we can solve this problem..pls help me to get the problems
0
1805
by: darius | last post by:
Hi, having gps navigation web pages I am still curious about voice guidance algorithms/ applications incorporated into navigation systems. I would appreciate your guidance in accessing the relevant places on the net. Darius
7
1611
by: yaragallamurali | last post by:
Hi I have thought about my earlier post, refined it and reposting it. I am actually new to schema designing. I have read few articles about data modeling and started building schemas for real time data. I have done one. I need guidance in my first steps. Just some one who can have a glance at it and can suggest mistakes that I have done. So that I can correct them and learn. If any one have interest to provide little bit of guidance please...
0
8380
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8710
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 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...
1
8497
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8598
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
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
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1598
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.