RE: [xsl] DTD

Subject: RE: [xsl] DTD
From: "Dion Houston" <dionh@xxxxxxxxxxxxx>
Date: Wed, 1 May 2002 02:59:10 -0700
Hi Tinku:

(anyone else on the list please correct me if I'm wrong)

XSLT doesn't do anything at all with DTD's other than to allow you to
specify one on an output file.

In the case of a DTD present in an XML file, XSLT won't see it, and
therefore has no ability to copy it (not to mention, XSLT works with
source _xml_ files, not DTD)

In the case of default value, entities, etc, the DOM (or underlying
document model) expands out the values.  Therefore if you have a default
value of "default" for an attribute "bar" on element "foo", XSLT sees

<foo bar="default"/>

If your source contains:

<foo/>

And if you do a copy of that element, your output will be:

<foo bar="default"/>

HTH!

Dion

-----Original Message-----
From: tinku [mailto:amegha1@xxxxxxxxxxxxxx] 
Sent: Wednesday, May 01, 2002 2:33 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] DTD

hi,

Does XSLT processor modifies the DTD present in the original input 
file?

How does the XSLT processor restores the default values present in 
the DTD in the input file?

-------
Tinku



_________________________________________________________
Click below to visit monsterindia.com and review jobs in India or 
Abroad
http://monsterindia.rediff.com/jobs


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • [xsl] DTD
    • tinku - 1 May 2002 06:39:35 -0000
      • <Possible follow-ups>
      • tinku - 1 May 2002 08:21:03 -0000
      • tinku - 1 May 2002 09:32:32 -0000
      • Dion Houston - Wed, 1 May 2002 02:59:10 -0700 <=