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]

RE: multiple test?


At 09:05 AM 6/22/01, Mike wrote:
> > <xsl:when test="@label = '' && @id = ''">
> >
> > What am I missing here?
>
>(a) The "and" operator
>(b) a manual.

Oh, and
(c) an understanding of the fundamentals of XML syntax

I'm sorry to pound on the poor fellow, but really, some preparatory 
homework is worth doing. Isn't it ironic that XML, a technology of "machine 
tooling" that leverages up-front effort to create huge downstream savings, 
is now being learned so widely by people who don't have time to make even a 
minimal up-front investment to help prevent time-wasting, pain and 
embarrassment later?

Lesson to newbies: please feel welcome to ask any (W3C) XSL question on the 
list. In return for this free service, please help maintain the quality of 
the resource by doing some preliminary research and preparation to help 
assure that the question you ask is a good one. A basic question to clarify 
the fundamental workings of the language is a good one, since it can help 
other newbies. A simple question about syntax that can be answered by any 
book or reference ... ain't.

[In XML, the '&' character is the open delimiter for an entity or character 
reference, so *cannot* be used alone. Since it is also not a legal name 
character, a document that contains '&&' is *not* XML and an XML parser 
must refuse to process it (the only exception being if it occurs inside a 
CDATA marked section). Knowing this kind of thing helps give you a sense of 
what's worth trying, what's not, when you're forced to guess, which really 
you shouldn't be.]

Cheers,
Wendell




======================================================================
Wendell Piez                            mailto:wapiez@mulberrytech.com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
   Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


 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]