How to let TOC start in new page in article ?

View: New views
4 Messages — Rating Filter:   Alert me  

How to let TOC start in new page in article ?

by Dongsheng Song :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

TOC start in new page for book, but not for article, how can I let TOC
start in new page for article ?

Regards,
Dongsheng Song

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@...
For additional commands, e-mail: docbook-help@...


XML Docbook validators?

by Johan Persson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to find a good XML/Docbook validator that can work in a mixed
environment where I have project where 90% is docbook but also 10% based on
older XHTML which is validated against DTD's  (for example  
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" )

The problem I have is that while the docbooks validate fine as soon as I try to
use any of the W3C DTD's they will fail since they use the syntax (for example)

<!ENTITY % ContentType "CDATA"
    -- media type, as per [RFC2045]
    -->

which will fail to parse since the validators think that the ENTITY element is
missing an ending ">" and don't understand the "--" as a comment.

Is there anyone who knows a good validator for both Docbook and older DTD's ?

(I've tried Xerces and Sun's MSV)

Cheers,

 


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@...
For additional commands, e-mail: docbook-help@...


XML Docbook validators?

by Neil Roeth-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't know of a validator that will parse that form of comment, butI did
notice that if I download that xhtml DTD from www.w3.org, I get this format:

<!ENTITY % ContentType "CDATA">
    <!-- media type, as per [RFC2045] -->

which is different than your example and should parse just fine.  Perhaps
you're not using the current version of the DTDs?

On Sep 20, Johan Persson (johanp@...) wrote:
 > I'm trying to find a good XML/Docbook validator that can work in a mixed
 > environment where I have project where 90% is docbook but also 10% based on
 > older XHTML which is validated against DTD's  (for example  
 > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" )
 >
 > The problem I have is that while the docbooks validate fine as soon as I try to
 > use any of the W3C DTD's they will fail since they use the syntax (for example)
 >
 > <!ENTITY % ContentType "CDATA"
 >     -- media type, as per [RFC2045]
 >     -->
 >
 > which will fail to parse since the validators think that the ENTITY element is
 > missing an ending ">" and don't understand the "--" as a comment.
 >
 > Is there anyone who knows a good validator for both Docbook and older DTD's ?
 >
 > (I've tried Xerces and Sun's MSV)
 >
 > Cheers,
 >
 >  
 >
 >
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: docbook-unsubscribe@...
 > For additional commands, e-mail: docbook-help@...

--
Neil Roeth

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@...
For additional commands, e-mail: docbook-help@...


Re: XML Docbook validators?

by Dave Pawson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 20/09/09 10:54, Johan Persson wrote:

> I'm trying to find a good XML/Docbook validator that can work in a mixed
> environment where I have project where 90% is docbook but also 10% based on
> older XHTML which is validated against DTD's  (for example
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" )
>
> The problem I have is that while the docbooks validate fine as soon as I try to
> use any of the W3C DTD's they will fail since they use the syntax (for example)
>
> <!ENTITY % ContentType "CDATA"
>      -- media type, as per [RFC2045]
>      -->
>
> which will fail to parse since the validators think that the ENTITY element is
> missing an ending ">" and don't understand the "--" as a comment.


You are trying to mix SGML and XML.
find an XML based XHTML DTD and you should be OK



regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@...
For additional commands, e-mail: docbook-help@...