xsl-list
[Top] [All Lists]

Re: if child element does not exist stop generation

2005-05-03 09:24:54
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(_at_)mulberrytech(_dot_)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
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--