/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: Choose.java,v 1.2.4.1 2005/09/01 12:00:14 pvedula Exp $
*/
/**
* @author Jacek Ambroziak
* @author Santiago Pericas-Geertsen
* @author Morten Jorgensen
*/
/**
* Display the element contents (a lot of when's and an otherwise)
*/
}
/**
* Translate this Choose element. Generate a test-chain for the various
* <xsl:when> elements and default to the <xsl:otherwise> if present.
*/
// These two are for reporting errors only
final int line = getLineNumber();
// Traverse all child nodes - must be either When or Otherwise
while (elements.hasMoreElements()) {
// Add a When child element
}
// Add an Otherwise child element
}
else {
}
}
}
// It is an error if we find some other element here
else {
}
}
// Make sure that there is at least one <xsl:when> element
return;
}
// next element will hold a handle to the beginning of next
while (whens.hasMoreElements()) {
if (nextElement != null)
if (test instanceof FunctionCall) {
try {
}
}
catch (TypeCheckError e) {
// handled later!
}
}
// remember end of condition
// The When object should be ignored completely in case it tests
// for the support of a non-available element
// goto exit after executing the body of when
}
else
}
// Translate any <xsl:otherwise> element
}
// now that end is known set targets of exit gotos
while (exitGotos.hasMoreElements()) {
}
}
}