[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] if child element does not exist stop generation


Subject: Re: [xsl] if child element does not exist stop generation
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 03 May 2005 12:24:54 -0400

At 10:17 AM 5/3/2005, David wrote:
Error:sequence missing <length> child!


that is not well formed XML you need to close (or escape) the length element.

[java] [Fatal Error] interface.xsl:478:11: Element or attribute do not match QName production: QName::=(NCName':')?NCName.

That says something else (that you haven't shown) isn't a legal element
or attribute name in sone place where a name is required.

You also meant to test  <xsl: if test="not(length)"> I assume as the
code you show generates an error message about a missing length if there
is a length element.

The element name "xsl:" might give you an error like the one cited, if


<xsl: if test="length">

is how you have it literally. :-> (The lack of a value on the putative 'if' attribute never gets caught because the processor stops after the first well-formedness error.)

(Hm: doing nothing but riffing on David again today!)

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx 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 ======================================================================


Current Thread
Keywords
xml