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

Re: XSLT choking on DTD?

Subject: Re: XSLT choking on DTD?
From: disco <disco@xxxxxxxxxxxxxxx>
Date: Sun, 21 Nov 1999 20:46:25 -0500 (EST)
xsl inline dtd
Hi, I wasn't aware of that (well-formedness?) constraint... I think XSLT
in particular wasn't choking, but the XML parse of the source document was
being reported through the XSLT processor, which confused me.

I've solved the problem by throwing out my flow entity altogether.

Dan

On Mon, 22 Nov 1999, Nikolai Grigoriev wrote:

> Hi!
> 
> >It might be useful to know:
> >
> ><!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special;">
> >
> >I think the problem is surrounding the PCDATA...
> 
> 
> Yes, probably it is. Once you have #PCDATA children, you cannot build
> nested expressions, only plain disjunctions followed by an asterisk.
> [see XML Spec 3.2.2].
> 
> I suggest writing <!ENTITY % flow "(%inline; | %block;)*"> instead
> (provided that %block is also a plain list of items). Maybe this is not
> what you mean; but what you mean cannot be expressed, because
> for elements with character contents, "the types of the child elements
> may be constrained, but not their order or their number of occurrences"
> [XML Spec, 3.2.2]. You cannot force %inlines to precede %blocks.
> 
> Regards,
> Nikolai
> 
> >On Sun, 21 Nov 1999, disco wrote:
> >
> >> Hi,
> >>
> >> I'm having a strange problem: XSLT (both XT and LotusXSL) are choking on
> a
> >> part of my DTD:
> >>
> >> <!ENTITY % flow "(%inline;)* | (%block;)*">
> >> ...
> >> <!ELEMENT footnote (%flow;)>
> >>
> >> Note that inline and block are properly defined earlier in the DTD, and
> >> are just fine as far as all elements which use them directly are
> >> concerned.
> >>
> >> I have tried manually replacing "%flow;" with its expansion,
> unfortunately
> >> to no avail. Regardless of what I do, XSLT gripes that I'm missing a '('
> >> somewhere.
> >>
> >> Any ideas what could be going on here?
> >>
> >> Thanks,
> >> Dan
> 
> 
> 
> 
>  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.