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

Re: DOCTYPE

Subject: Re: DOCTYPE
From: Edierley Messias <edierley@xxxxxxxxxxx>
Date: Wed, 17 Jan 2001 11:32:11 -0200 (EDT)
xalan copy doctype
On Tue, 16 Jan 2001, Mike Brown wrote:
>Edierley Messias wrote:
>> In my xml document a have the doctype declaration:
>> --------------------------------------------------------------------
>> <?xml version="1.0"?>
>> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">

============================================================================
Hi people and Mike, 
I'm using xalan like:
java org.apache.xalan.xslt.Process -in deck.wml -xsl copy.xsl

I'm trying to copy the deck.wml (xml file) to another xml file only
changing some nodes. In fact I already did that, but the processor,
expands the <!DOCTYPE> declaration to the DTD definiton pointed by the
URL.

I saw the xsl:output instruction, but I only wants to copy the <!DOCTYPE>,
not expanding it.

Have some way to do this in Xalan?

My xsl have the classic template to copy all nodes in the document:
<xsl:template match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>

I believe that will copy all nodes, including <!DOCTYPE>, but I just want
to copy, not to expand it.

Thanks in advance people.

=============================================================================

>
>I thought Xalan was an XSLT processor that relied on an XML parser like
>Xerces to do the dirty work of parsing the XML and XSLT documents it
>processes. How exactly are you making Xalan do this?
>
>It isn't wrong for an XML parser to go look at the remote DTD, but it is
>wrong for it to actually insert it into the XML. How did you accomplish
>this?
>
>What are you trying to do, anyway? Transform the XML to something else?
>
>Are you trying to create a <!DOCTYPE> in your output? There are attributes
>in the xsl:output instruction for achieving that.
>
>   - Mike
>____________________________________________________________________
>Mike J. Brown, software engineer at            My XML/XSL resources: 
>webb.net in Denver, Colorado, USA              http://skew.org/xml/
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>

_________________________
Edierley Messias
www.dcc.ufmg.br/~edierley
icq 32943484


 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.