Subject: [xsl] basic xml help From: Steven Hughes <shughes@xxxxxxxxxxxxxxxxx> Date: Mon, 8 Aug 2005 09:08:22 -0500 |
Greetings, I've been studying XML for only about 2 weeks so I apologize if my questions are so basic in nature. I am trying to convert a simple html page with css to an xml page with xsl. The page is very simple, it just has a few images and some anchor tags and about 6 different sections that the anchors refer to. It seems so simple that I should be able to figure it out, alas I need some help. Here is the document tree: <!--- <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" version="1.0" href="one.xsl" ?> <acadguide> <city>City Name</city> <titleblock><title>PROGRAM TITLE</title><subtitle>PROGRAM SUBTITLE</subtitle></titleblock> <headerlinks> <link> <href>#section_001</href> <label>Section 1</label></link> <link> <href>#section_002</href> <label>Section 2</label></link> <link> <href>#section_003</href> <label>Section 3</label></link> <link> <href>#section_004</href> <label>Section 4</label></link> <link> <href>#section_005</href> <label>Section 5</label></link> <link> <href>#section_006</href> <label>Section 6</label></link> <link> <href>#section_007</href> <label>Section 7</label></link> <link> <href>#section_008</href> <label>Section 8</label></link>Intensive Spanish Language Summer <link> <href>#section_009</href> <label>Section 9</label></link> <link> <href>#section_010</href> <label>Section 10</label></link> <link> <href>#section_011</href> <label>Section 11</label></link></headerlinks> <section><a name="#top" ></a> <title>Overview</title> <maintext>main text goes here</maintext> </section> <section> <title>The School at Granada</title> <maintext>main text goes here</maintext> <link><a href="#top" >back to top</a></link> </section> <section> <title>Section Title</title> <maintext> <link><a href="#top" >back to top</a></link> </maintext> <program> <prog_title>Program Title</prog_title> <programtext>program text goes here</programtext> <figures> <a1> <thumb_src>images/i_01_sm_a.gif</thumb_src> <full_src>images/i_01_lrg_a.gif</full_src> <caption>Image 1A Caption</caption> </a1> <b1> <thumb_src>images/i_01_sm_b.gif</thumb_src> <full_src>images/i_01_lrg_b.gif</full_src> <caption>Image 1B Caption</caption> </b1> <c1> <thumb_src>images/i_01_sm_c.gif</thumb_src> <full_src>images/i_01_lrg_c.gif</full_src> <caption>Image 1C Caption</caption> </c1></figures></program></section> <program> <prog_title></prog_title> <figures> <a2> <thumb_src>images/i_02_sm_a.gif</thumb_src> <full_src>images/i_02_lrg_a.gif</full_src> <caption>Image 2A Caption</caption> </a2> <b2> <thumb_src>images/i_02_sm_b.gifmain text goes here</thumb_src> <full_src>images/i_02_lrg_b.gif</full_src> <caption>Image 2B Caption</caption> </b2> <c2> <thumb_src>images/i_02_sm_c.gif</thumb_src> <full_src>images/i_02_lrg_c.gif</full_src> <caption>Image 2C Caption</caption> </c2></figures> </program> <program> <prog_title></prog_title> <programtext>program text goes here</programtext> <figures> <a3> <thumb_src>images/i_03_sm_a.gif</thumb_src> <full_src>images/i_03_lrg_a.gif</full_src> <caption>Image A3 Caption</caption> </a3> <b3> <thumb_src>images/i_03_sm_b.gif</thumb_src> <full_src>images/i_03_lrgIntensive Spanish Language Summer_b.gifmain text goes heremain text goes here</full_src> <caption>Image B3 Caption</caption> </b3> <c3> <thumb_src>images/i_03_sm_c.gif</thumb_src> <full_src>images/i_03_lrg_c.gif</full_src> <caption>Image C3 Caption</caption> </c3></figures></program> <program> <prog_title></prog_title> <programtext> <link><a href="#top" >back to top</a></link> </programtext> <figures> <a4> <thumb_src>images/i_04_sm_a.gif</thumb_src> <full_src>images/i_04_lrg_a.gif</full_src> <caption>Image 4A Caption</caption> </a4> <b4> <thumb_src>images/i_04_sm_b.gif</thumb_src> <full_src>images/i_04_lrg_b.gif</full_src> <caption>Image 4B Caption</caption> </b4> <c4> <thumb_src>images/i_04_sm_c.gif</thumb_src> <full_src>images/i_04_lrg_c.gif</full_src> <caption>Image 4C Caption</caption> </c4></figures></program> <program> <figures> <a5> <thumb_src>images/i_05_sm_a.gif</thumb_src> <full_src>images/i_05_lrg_a.gif</full_src> <caption>Image 5A Caption</caption> </a5> <b5> <thumb_src>images/i_05_sm_b.gif</thumb_src> <full_src>images/i_05_lrg_b.gif</full_src> <caption>Image 5B Caption</caption> </b5> <c5> <thumb_src>images/i_05_sm_c.gif</thumb_src> <full_src>images/i_05_lrg_c.gif</full_src> <caption>Image 5C Caption</caption> </c5></figures></program> <program> <figures> <a6> <thumb_src>images/i_06_sm_a.gif</thumb_src> <full_src>images/i_06_lrg_a.gif</full_src> <caption>Image 6A Caption</caption> </a6> <b6> <thumb_src>images/i_06_sm_b.gif</thumb_src> <full_src>images/i_06_lrg_b.gif</full_src> <caption>Image 6B Caption</caption> </b6> <c6> <thumb_src>images/i_06_sm_c.gif</thumb_src> <full_src>images/i_06_lrg_c.gif</full_src> <caption>Image 6C Caption</caption> </c6></figures></program> <section> <title>Section Title</title> <maintext> <link><a href="#top" >back to top</a></link> </maintext> </section> </acadguide> --> Any advice is appreciated. Basically, I just want a really simple document that can be editable but the XSL will allow for it to have the same style. My main problems are: getting links to show up & getting images to show up. Please help. Sincerely, Steven C Hughes
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] ANN: XSLT 2.0 unit testin, Jeni Tennison | Thread | Re: [xsl] basic xml help, Joris Gillis |
[xsl] ANN: XSLT 2.0 unit testing ut, Jeni Tennison | Date | Re: [xsl] basic xml help, Joris Gillis |
Month |