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

RE: DOCTYPE and <xsl:preserve-space>

Subject: RE: DOCTYPE and <xsl:preserve-space>
From: "Earl Bingham" <earl@xxxxxxxxx>
Date: Fri, 10 Sep 1999 09:50:01 -0700
xslt preserve doctype

>> I'm trying to copy a specific DOCTYPE value with xsl

>In XSL, you don't have access to the source document's DTD.

That I think is obvious, you just need an association with the spec your
using (ie. XSLT, etc.)

The XML file that I'm trying to generate should have an associated DTD for
it. Yet how do you place the DOCTYPE value at the top? I've tried
encapsulating the area with CDATA[] yet that didn't work.

I want to generate:

<?xml version="1.0">
<!DOCTYPE docRoot PUBLIC "-//B-Bop Associates//myDTD v0.1//EN"
"myDTD-00_01.dtd">
<docRoot>
  ... xml info here ...
</docRoot>

> Also I was curious if anyone was able to have the
> latest version of James Clarks XT to do indent-result
> properly. I keep getting all tags together in my output.

You'll need to provide a code sample. There are several possible
explanations.

Here is the xml generated from a simple xsl file:

<?xml version="1.0"?><!-- $Id: w2f.xsl,v 1.1 1999/09/10 00:05:08 earl Exp
$ --><!-- myxml.xml
file --><compReport><reportId><number>1234</number><rev>5678</rev></reportId
><metaReport><reportDate ...

This has the tags with no carriage return, line-feeds, etc. I normally could
use:

<xsl:stylesheet
  indent-result="yes"
  xmlns:xsl='http://www.w3.org/XSL/Transform/1.0'
   >

and it would indent nicely, but that has changed to use the <xsl:output ...>
which doesn't
include any examples of within the latest WD-XSLT.

I am using the latest xt.exe from http://www.jclark.com/xml/xt.html

- Earl




 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.