[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSL problem

Subject: RE: XSL problem
From: "McKisson, Shawn" <mckisss@xxxxxxxxxxxx>
Date: Mon, 2 Aug 1999 10:31:29 -0500
x num in xsl
Oops I have taken too literally - I apoligize for not describing the problem
a little better.
To be more concrete, I need to parse through well formed HTML.
I have an structure that looks like the following:

<hr><p><b> Periodical Subject </b></p></hr>
<i> Peridocal Subject Desc <i>
<table>
  <tr>
    <th> garbage text </th>
    <th> more garbage text </th>
    <th> even more junk </th>
  </tr>
  <tr>
    <td> Periodical Title </td>
    <td> Periodical Author (assume to be a single element) </td>
    <td> Periodical length (in pages) </td>
  </tr>
  <tr>
    <td> Periodical Title </td>
    <td> Periodical Author (assume to be a single element) </td>
    <td> Periodical length (in pages) </td>
  </tr>
  <tr>
    <td> Periodical Title </td>
    <td> Periodical Author (assume to be a single element) </td>
    <td> Periodical length (in pages) </td>
  </tr>
  <tr>
    <td> Periodical Title </td>
    <td> Periodical Author (assume to be a single element) </td>
    <td> Periodical length (in pages) </td>
  </tr>
</table>
.
.
<the entire block appears here again, with a different subject until all the
subject are exhausted>


What I need to turn this into is

<periodical-list>
  <periodical>
    <subject> Periodical Subject </subject>
    <desc> Periodical Subject Desc </desc>
    <title> Periodical Title </title>
    <author> Periodical Author </author>
    <length> Periodical Length </length>
  </periodical>

  <periodical>
    AND SO ON UNTIL ALL PERIODICAL SUBJECTS AND PERIODICALS ARE EXHAUSTED
  </periodical>
</periodical-list>

Any ideas?

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Friday, July 30, 1999 5:44 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: XSL problem




> <Xn>

is that _really_ what you want with dynamically generated element names.
You can have that if that's what you want, but it is immoral, you should
be asking for at least <X num="n">

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.