This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: DTD


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@rediffmail.com] 
Sent: Wednesday, May 01, 2002 2:33 AM
To: xsl-list@lists.mulberrytech.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]