[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Comparing an attribute value to its default in DTD

Subject: RE: Comparing an attribute value to its default in DTD
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 19 Apr 2002 09:35:33 +0100
default value in dtd
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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Manny
> Parasirakis
> Sent: 18 April 2002 19:14
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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@xxxxxxx                    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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.