Subject: RE: 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: 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 |
- DTD
- tinku - Wed, 1 May 2002 02:42:47 -0400 (EDT)
- <Possible follow-ups>
- tinku - Wed, 1 May 2002 04:17:36 -0400 (EDT)
- tinku - Wed, 1 May 2002 05:31:39 -0400 (EDT)
- Dion Houston - Wed, 1 May 2002 05:53:39 -0400 (EDT) <=
|
|