Subject: RE: DOCTYPE and <xsl:preserve-space> From: "Earl Bingham" <earl@xxxxxxxxx> Date: Fri, 10 Sep 1999 09:50:01 -0700 |
>> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: DOCTYPE and <xsl:preserve-space, Mike Brown | Thread | RE: DOCTYPE and <xsl:preserve-space, Mike Brown |
RE: how to change xsl dynamically?, Tom Gaven | Date | RE: how to change xsl dynamically?, Schwartz, Todd |
Month |