473,324 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 1571
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*****@codesmiths.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
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...
0
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...
5
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...
0
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...
2
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...
2
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...
8
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...
0
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...
7
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.