[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

Subject: Re: To DTD or Schema? Issues for Transformiix, Soblotron etc
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 5 May 2000 14:49:10 +0100 (BST)
Re: To DTD or Schema? Issues for Transformiix
 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


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.