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]

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


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