Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: XML for databases?!?! YES!!! With XML, XSL, and SAXON!

by S_Shrum (Pilgrim)
on May 24, 2002 at 18:43 UTC ( #169180=note: print w/ replies, xml ) Need Help??


in reply to Re: XML for databases?!?! YES!!! With XML, XSL, and SAXON!
in thread XML for databases?!?! Is it just me or is the rest of the world nutz?

Don't get me wrong...but all of what you mentioned can be done from flat-files...heck, even I wrote a script that allows me to multi-template & table my data from flat files (without the bulk of additional record and field tags). This is really only a concern when dealing with large data sources. The XML markup is a p.i.t.a. and incrediblely redundant.

I'll check the page on Saxon out...no guarentees that I'll convert though.

======================
Sean Shrum
http://www.shrum.net


Comment on Re: Re: XML for databases?!?! YES!!! With XML, XSL, and SAXON!
Re: Re: Re: XML for databases?!?! YES!!! With XML, XSL, and SAXON!
by ajt (Prior) on May 24, 2002 at 20:03 UTC
    You can take tabulated data, and using one of many templating system you can generate something else from it. This works perfectly well, for many applications.

    If your source file is an XML file, you can have any kind of XML file you want, you can even verify it against an XML Schema or DTD (take your pick) should you want to.

    You can make a range of XSL-Templates to convert the XML file you have into another XML file. The Transformation always gives you a well-formed new XML (or XHTML) file. You can have a range of XSL-Templates for a range of devices, web browser, WAP phone, another server. If you want you can also use XSL-FO and generate a PDF file should you wish.

    Should you want you can pipeline one XML document into one round of templating after another, as each step always generated well-formed XML.

    XML, XSL-T, XSL-FO, DTD, XML-Schemas are all public standards, you can use a range of tools, on different operating systems, in different languages, and most of the time things behave the way you expect them to. Using one XML file and one XSL-template I can generate one HTML file on my Linux box and NT box, using Saxon, Xalan, LibXSLT or even MS-XML, it's pretty predictable.

    One of the key strengths of XML is that the coding and the content/templates are kept apart. By using XML, you can use any code you want, and any content and it works! As your team gets bigger it means that the coders code and the mark-up people mark-up.

    There is a good thread on templating versus XSL-T here: XSLT vs Templating? where people put many sound arguments for both sides. Matts in particular as a strong advocate of XML says many things that I could add here.

    I'm not saying that XML is the best solution, just that it's one solution, and for larger more complex applications, it's focus on flexible structures, and it's wide scale use, does make it the tool of choice.

    Update: Typos fixed, and XSLT link added

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://169180]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-10-24 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (134 votes), past polls