Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > newbie question

Reply
Thread Tools

newbie question

 
 
d_cymbal@hotmail.com
Guest
Posts: n/a
 
      06-09-2005
Hi,

There is probably an easy answer to this but I am stumbling all over
myself trying to find it.

I am trying to create a quick and dirty xslt to pretty up some
generated xml documents for display. Nothing fancy, I just want to
create some basic HTML tables from the xml.

Just about all the xml comes in two forms:

(1)

<root>
<key1>value1</key1>
<key2>value2</key2>
<key3>value3</key3>
</root>

or (2) on slightly more complicated

<root>
<key1>value1</key1>
<key2>value2</key2>
<subelement>
<key1>value1</key1>
<key2>value2</key2>
<key3>value3</key3>
</subelement>
<key3>value3</key3>
</root>

So what I want to be able to do is iterate over the entire doc and be
able to extract each key name and value pairs for display. I also want
to know if I am an a more complex element than a simple key/value so
that I can generate a new table for that. I have bits and pieces of
this working in separate xslts but things seem to fall apart when I
attempt to combine everything into one xslt to rule them all

Any samples I have missed via google that shows how to do this? It's
really nothing more than a glorified echo it seems....

Thanks.

dc

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VONAGE Newbie w/newbie question New_kid@nowhere.new VOIP 0 08-11-2007 01:40 PM
another newbie question from another newbie.... Lee UK VOIP 4 05-17-2005 04:10 PM
newbie: cisco vlan newbie question No Spam Cisco 3 06-07-2004 10:02 AM
dumb newbie question (or newbie dumb question) Jerry C. Perl Misc 8 11-23-2003 04:11 AM
Newbie! I'm a newbie! What's wrong with this program? Id0x Python 4 07-20-2003 11:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57