This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Comparing an attribute value to its default in DTD
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 19 Apr 2002 09:35:33 +0100
- Subject: RE: [xsl] Comparing an attribute value to its default in DTD
- Reply-to: xsl-list at lists dot mulberrytech dot com
No, there is no way from within XSLT/XPath of finding out what the default
value declared in the DTD is - it's not part of the XPath data model.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Manny
> Parasirakis
> Sent: 18 April 2002 19:14
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] Comparing an attribute value to its default in DTD
>
>
> I am wondering if there is a way to compare an attribute
> value with its
> default value defined in the DTD. Something like this:
>
> <xsl:apply-templates select="*@[. != '{attribute's default val}']"/>
>
> I would like to only output the attributes which are not the
> default value
> to make the outputted xml more readable. I have about 30
> attributes but
> most of then are just set to their default values. Is there
> any way to
> reference the attribute's default value?
>
>
> Emmanuel Parasirakis (Manny) Art Technology Group
> Software Architect 25 First Street, 2nd Floor
> manny@atg.com Cambridge, MA 02141
> 617-386-1603 http://www.atg.com/
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list