[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: "Richard Lander" <rlander@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Nov 1999 18:38:12 -0500
dtd problem xslt
 Disco,

I imagine the problem is with #PCDATA. When including #PCDATA in a
mixed-content model, you must make sure that it is first and that you only
use '|' to separate elements and that you use only '*' and that it be used
once at the very end.

So, something like

<!ELEMENT test (#PCDATA|CODE|KEYWORD)*>
is fine

Something like

<!ELEMENT test (#PCDATA|CODE+|KEYWORD)*>
is not

So, I'm guessing that the '*'s in your flow entity are causing a problem.
Also, if you use ',' or have embedded groups within block, then you'll have
problems.

I hope that helps,

Richard.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of disco
Sent: Sunday, November 21, 1999 5:57 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: XSLT choking on DTD?


It might be useful to know:

<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special;">

I think the problem is surrounding the PCDATA...

Dan

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


 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.