[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: To DTD or Schema? Issues for Transformiix, Soblotron etc
I now have to look seriously at the default attributes issue, It is always possible to do the attribute defaulting in the stylesheet so that it works even if the dtd or schema isn't read. So if you want <xxx> to act the same as <xxx yyy="yes"> but are not sure if the dtd or schema supplying that default will be acted upon, then write your xsl like so: <xsl:template match="xxx"> <xsl:variable name="yyy"> <xsl:value-of select="@yyy"/> <xsl:if test="not(@yyy)">yes</xsl:if> <xsl:variable> ... ... rest of template, but use $yyy instead of @yyy .... David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|