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

getting rid of doctype declarations

Subject: getting rid of doctype declarations
From: Paul Tremblay <phthenry@xxxxxxxxxxxxx>
Date: Fri, 19 Mar 2004 04:07:29 -0500
doctype declarations
I need to get rid of a doctype declaration but can't figure out how.

The problem arises because I am importing a stylsheet. The stylesheet
that I am importing has this code:


 <xsl:output method = "xml"
        doctype-system = "/home/paul/Documents/data/dtds/tei_prose_verse_gen.dtd"
        />


The main stylsheet has this code:

<xsl:output method = "xml"
 encoding = "utf-8"
 omit-xml-declaration = "yes"
        />

When I process the input document, my result document has this doctype:


<!DOCTYPE div SYSTEM "/home/paul/Documents/data/dtds/tei_prose_verse_gen.dtd">

This doctype prohibits me from using the result document in a third
document as an entity. The third document looks like this:


<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE TEI.2 SYSTEM "/home/paul/Documents/data/dtds/tei_prose_verse_gen.dtd"
[
<!ENTITY pig_roast SYSTEM "/home/paul/Documents/others_writing/ged/randall_pig_roast_chapter.xml">
]

>
<TEI.2>
 <teiHeader>
  <fileDesc>
   <titleStmt>
       <title ></title>
       <editor>Paul Tremblay</editor>
   </titleStmt>
   <publicationStmt>
    <distributor>none </distributor>
   </publicationStmt>
   <sourceDesc>
    <p>no source--a manuscript</p>
   </sourceDesc>
  </fileDesc>
 </teiHeader>
 <text>
  <body >
      &pig_roast;
  </body>
 </text>
</TEI.2>

So is there a way to not have a doctype? Or do I have to simply get rid
of the <xsl:output> in the imported stylesheet?

Thanks

Paul

-- 

************************
*Paul Tremblay         *
*phthenry@xxxxxxxxxxxxx*
************************

 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.