This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to select only the attributes present in the source document
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] How to select only the attributes present in the source document
- From: Ingo Schildmann <ingoschi at web dot de>
- Date: Wed, 23 May 2001 11:41:12 +0200
- References: <003501c0e369$c015f6b0$fea141d5@pstark>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Wednesday 23 May 2001 11:21, you wrote:
> How can I specify that <xsl:copy-of select="@*" /> should NOT select and
> copy default attributes (from the DTD) into the result document?
>
> I want only the attributes that are present in the instance (source
> document).
>
You would have to convince the XML parser not to validate the document, so
that the DTD is ignored. The XSLT processor doesn't get any information
whether the attribute value comes from the document or the DTD.
--
Ingo Schildmann ingoschi@web.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list