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

Re: Multiple attributes present and non-present

Subject: Re: Multiple attributes present and non-present
From: Mike Ferrando <mikeferrando@xxxxxxxxx>
Date: Thu, 7 Mar 2002 07:25:14 -0800 (PST)
Re:  Multiple attributes present and non-present
--- David Carlisle <davidc@xxxxxxxxx> wrote:
> Normally though you don't need any of these tests as you just
> copy (or apply-templates to) the set of attributes and so if they
> are
> not there nothing happens, you don't need to explictly test for
> them
> to be empty.
> 
> If your attributes are there with empty values as in 
> <x ENCODINGANALOG="">
> then either they are that way in the source or your dtd is
> defaulting
> them in that way, in which case you might want to change the dtd.

David,
Yeah, you are right. I am learning the language, so I am writing my
stylesheets and creating my own tagging system without the experience
of more forethought. I have done the following:

1. I changed my DTD to from #REQUIRED to #IMPLIED for these
attributes.

2. Since there is a one for one relationship between the attributes I
am having problems with, I have done a search and replace in my
documents so I don't have to change the name of the attribute and
therefore get an empty attribute as a result of my style sheet.

thanks again for your patience,
Mike F.

p.s. Could you reply giving an example of such a template?

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

 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.