Lists Home |
Date Index |
- From: "Glenn R. Kronschnabl" <email@example.com>
- To: "Perl-XML Mailing List" <firstname.lastname@example.org>
- Date: Tue, 08 Dec 1998 09:05:34 -0600
[Note: this is cross-posted between perl-xml and xml-dev. I thought twice
before I did this, but I couldn't talk myself out of it...]
I have a very simple app that I want to do. Basically, I have an address
list xml file built up using the vcard DTD, wrapped in a vCardSet. It
<?xml version="1.0" encoding="UTF-8"?>
<vCardSet name="GRKs vCards">
Note that the order of <vCard>'s are not in any particular order.
I would like to be able to sort (on family, given, etc) then print using
both XSL/DSSSL. I am shooting for a telephone book-like printout ala
Microsoft Outlook 2-column phone book printout.
Q. Should I pre-sort using Perl-XML and XML::DOM and write out a new XML
file? Right now I have been trying to use XML::DOM and I'm close but I'm
not sure what I am trying to do even makes sense? The advantage of using
the DOM is that I don't have to know anything about what I'm actually
sorting accept for the relevant fields (the opposite would be to create
the vCard data structure I guess). What are other people doing in this
area? What is the best way? Should I rearrange the nodelist in memory or
should I construct a new nodelist and write it out (not worrying about
Q. Could this be done using just SAX? What are the tradeoffs?
Q. Should I sort the xml list in DSSSL (would appear painful, at least to
me). I have found snippets in the dssslist that appear to give a good
start, but if anyone has such a function around, that would help.
Actually, I presume that both could be used. Just seems like a Perl-XML
solution would be more generic and could be re-used more often.
Thanks for you inputs.
Glenn R. Kronschnabl
Applied Research Laboratories | email@example.com (PGP/MIME ok)
The University of Texas at Austin | http://www.arlut.utexas.edu/~grk
PO Box 8029, Austin, TX 78713-8029 | (Ph) 512.835.3642 (FAX) 512.835.3808
10,000 Burnet Road, Austin, TX 78758 | ... but an Aggie at heart!
xml-dev: A list for W3C XML Developers. To post, mailto:firstname.lastname@example.org
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:email@example.com the following message;
To subscribe to the digests, mailto:firstname.lastname@example.org the following message;
List coordinator, Henry Rzepa (mailto:email@example.com)