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

Re: nested lists, xml example dtd? anyone?

  • From: Richard Light <richard@l...>
  • To: xml-dev@i...
  • Date: Tue, 13 Jan 1998 09:28:18 +0000

xml sample list
In message <34BB1CE9.FBFDDCCD@a...>, Glenn R Kronschnabl
<grk@a...> writes
>Can someone pls e-mail me an example XML
>dtd that has nested lists?  I have a simple dtd
>that I am trying to use, but I keep getting an extra
>newline (or 2) after a (nested) list using jade (rtf).  I would like
>something as simple as:
>  <item>item1</item>
>  <item>item2</item>
>  <item>
>       <list>
>           <item>item1</item>
>           <item>item2</item>
>       </list>
>   </item>
>  <item>item3</item>
>This appears in rtf (but also shows up as extra paragraphs
>in the fot and in nsgmls) as:
>* item1
>* item2
>   * item1
>   * item2
>   <extra newline>
>* item3
><extra newline>

If Jade is outputting extra paragraphs, it is because you have asked it
to, not because of spaces or newlines in the document itself.  

I would guess that the extra 'newlines' (paragraphs) are probably
appearing because you have <item> within <item>.  If you simply put:

(element item
  (make paragraph

then each <item> will produce a paragraph flow object, and you are
effectively asking Jade to produce nested paragraphs.  Of course, RTF,
having a pretty flat model for the document, can't do that, and probably
generates an extra paragraph instead.

>when I put this thru jade without a DTD, I get a whole
>lotta extra space and newlines.  With docbook3 and
>itemizedlists, there is no extra whitespace.  So, I assume
>that a proper DTD is the way to slurp up the unwanted
>whitespace.  Correct?

If you use (process-children-trim) rather than (process-children), a
DSSSL engine will chuck out all leading and trailing space from each
element - this might allow you need to deal with your well-formed input
'as is', rather than having to write a DTD.

Do you know there is a DSSSL list (dssslist@m...)?

Hope this helps,

Richard Light.

Richard Light
SGML/XML and Museum Information Consultancy

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.