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

Re: DTD question

Subject: Re: DTD question
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 21 Aug 2000 19:49:57 +0100
dtd in line
Chris,

If you want your serialized output to have a form something like the
following, which provides a validating parser with the hook to get the DTD
(and can do that for your human reader also):

<?xml version="1.0"?>
<!DOCTYPE B SYSTEM "b.dtd" >
<B>
...B or not B, either way...
</B>

Then you want your XSL to contain an <xsl:output> element at the top level,
like so:

<xsl:output method="xml" doctype-system="b.dtd"/>

This is described in the XSLT spec, section 16.

But XSLT does not provide a way to put the DTD in line, into an internal
subset of the DOCTYPE declaration, if that's what you were thinking of. If
you have something else in mind entirely, please clarify.

Good luck!
Wendell

At 06:57 PM 8/21/00 -0400, you wrote:
>I am transforming an XML file to another XML File (call it file B) in
order with a DTD that my company came up with.
>
>My question is this:  How do I put a link of the DTD in file B so an
outside part can see the structure?  Is there a way to do an include in the
XSL file that is doing the transformation?


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


 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.