Committer's log entry: Modified the output handler and SAX handler to produce proper HTML output. Special characters in <script> and <style> elements are no longer escaped, and end-tags are properly produced (sometimes we would forget the last '>'). PR: bugzilla 2517 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/19/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java MatchingIterator.java StepIterator.java
Committer's log entry: Verious fixes for iterators. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/19/2001
Modified: java/src/org/apache/xalan/xsltc/dom BitArray.java DupFilterIterator.java KeyIndex.java
Committer's log entry: A fix in the duplicate filter iterator to ensure that the iterator can be reset properly. The iterator was using its own variable for tracking the current node (not the base class' _position variable) but did not implement the reset() method). PR: bugzilla 1430 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/19/2001
Modified: java/src/org/apache/xalan/xsltc/compiler VariableRef.java
Committer's log entry: Forgot to add this file with my fix for bug 1430. PR: bugzilla 1430 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/19/2001
Modified: java/src/org/apache/xalan/xsltc/compiler LastCall.java ParameterRef.java PositionCall.java Predicate.java RoundCall.java VariableRefBase.java
Committer's log entry: Fix for combination of wildcards and position predicates in match patterns. PR: bugzilla 1532 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/19/2001
Modified: java/src/org/apache/xalan/xsltc/compiler RelationalExpr.java
Committer's log entry: bug fix 2838, (namedtemplate test)
-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: Fix to prevent escaping of the '"' character. This character should only be escaped inside attribute values, and not in text nodes. PR: bug 2952 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Committer's log entry: Fix for ChildrenIterator to speed up last() and position() calls. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/dom AbsoluteIterator.java
Committer's log entry: This fix may affect a series of bugs. The AbsoluteIterator (/foo/bar/... etc.) did not update its _position variable, causing position() to return wrong values if called more than once. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/compiler/util MethodGenerator.java
Committer's log entry: Added shortcut to call the reset() method on any iterator. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: Fix to ensure that node iterators stored inside parameters are clones for each time the parameter is referenced. If this is not done then the node iterator will be in an unstable state after it has been referenced once. PR: bugzilla 3238 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Step.java
Committer's log entry: A fix for layers of parent location paths and steps representing an XPath pattern/expression like /foo/*/bar PR: bugzilla 3311 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/compiler ParameterRef.java ParentLocationPath.java Predicate.java
Committer's log entry: Removed a change from yesterday that caused a pretty bad regression in the position() and last() functions. Also changed a line un Param.java to add more information in debug outout. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: Fix to prevent complaints about illegal namespace declarations in output. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/compiler VariableBase.java WithParam.java java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: Added escaping of special characters in parameter names when passed to a template using <xsl:with param/>. PR: bugzilla 3324 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/cmdline Compile.java
Committer's log entry: minor edit to usuage for -s option
-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/cmdline Transform.java
Committer's log entry: Added functionality behind the '-s' flag in the Transform command-line tool. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/20/2001
Modified: java/src/org/apache/xalan/xsltc/cmdline Compile.java Transform.java
Committer's log entry: Fixed two compile errors (bad, bad, bad). PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/21/2001
Modified: java/src/org/apache/xalan/xsltc DOM.java java/src/org/apache/xalan/xsltc/compiler LastCall.java PositionCall.java java/src/org/apache/xalan/xsltc/dom DOMAdapter.java DOMImpl.java MultiDOM.java
Committer's log entry: Fixed the getTypedPosition() and getTypedLast() methods of the DOM. These were used to implement XPath patterns such as /foo/bar[8]/baz. PR: bugzilla 2803 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/21/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: Added a little method to the output post-processor to replace whitespaces in URLs by "%20" sequences. This is all the escaping I think we should bother our heads doing. PR: bugzilla 1512 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/21/2001
Modified: java/src/org/apache/xalan/xsltc DOM.java java/src/org/apache/xalan/xsltc/compiler Constants.java Step.java java/src/org/apache/xalan/xsltc/dom DOMAdapter.java DOMImpl.java MultiDOM.java NthIterator.java
Committer's log entry: Two fixes in this one. One to make sure that the context-node is set correctly when applying templates using an iterator that has a predicate that tests on '.' (the current node), such as select="foo/bar[. = 'blob']". The other fix is for the nth position iterator, that failed to count to n backwards in cases when the underlying iterator was reverse. PR: bugzilla 2954 (two bugs in one, really) Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/21/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: A fix for CDATA elements. The tags of CDATA sections were passed through the output post-processor's character escaping function but should be passed directly to the SAX handler. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/24/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java NthIterator.java
Committer's log entry: The fix for 2954 introduced a regression, so I am pulling out the fix. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/24/2001
Modified: java/src/org/apache/xalan/xsltc/dom NthIterator.java
Committer's log entry: A revised fix for bug 2954, that does not cause the regressions previously sown by some tests. PR: bugzilla 2954 (revised fix) Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/24/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Committer's log entry: A fix for the last() function for children iterators. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/24/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Committer's log entry: Fixed the descendant iterator so that it does not return text-nodes for descendant::* PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/24/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Import.java Param.java Stylesheet.java
Committer's log entry: Fix for resolving mutiple defined global parameters and variables. The Import class has been fixed to set import precedences properly, and the Param class has been changed to use the import precedence to resolve between multiple definitions of the same variable/parameter. PR: bugzilla 3404 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/24/2001
Modified: java/src/org/apache/xalan/xsltc/compiler/util ClassGenerator.java
Committer's log entry: Forgot this file in my last update. Submitted by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/24/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java NthIterator.java
Committer's log entry: Another fix for the preceding-sibling iterator. It appeared that this iterator returned its nodes in the wrong order, and this was the reason why the position iterator (used to implement preceding-siblling::*[n]) did not return the correct node. It is quite amazing that this iterator has been returning nodes in the wrong order for so long without any of us notising, and hopefully this fix will help eliminate a few of our open bugs. PR: bugzilla 2954 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Param.java Stylesheet.java Variable.java VariableBase.java
Committer's log entry: Fix to resolving multiple defined global variables or parameters. PR: bugzilla 3404 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: Optimisation for string-2-int and real-2-int conversions. PR: bugzilla 3448 Obtained from: n/a Submitted by: John Howard<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Param.java Step.java Variable.java VariableBase.java xpath.cup java/src/org/apache/xalan/xsltc/dom DOMAdapter.java DOMImpl.java java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: Fix for nth-position typed descendant iterators (previously not fully implemented). PR: bugzilla 3468 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: Fix for our handling of the <xsl:comment? element. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Param.java Variable.java
Committer's log entry: Removed previous attempt to fix forward references in globar vars. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Stylesheet.java
Committer's log entry: Fix for allowing LRE as top-level elements in the stylesheet (they will be ignored). PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/dom NodeSortRecord.java
Committer's log entry: Fix to make sure all num-numeric values are grouped last in numeric sorts. PR: bugzilla 3517 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java NodeIteratorBase.java
Committer's log entry: A fix to ensure that the current position of any iterator is always kept updated. The returnNode() method of the NodeIteratorBase base class updates the _position variable for each returned node. This method should be called by the next() method of any iterator, except for next() methods that call super.next() (because this method calls returnNode() and so _position would be incremented twice or more for one returned node). PR: bugzilla 3816 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: Updated the information returned by the system-property() function. xsl:verision returns "1.0" xsl:vendor returns "Apache Xalan XSLTC" - must be different from Xalan!!!" xsl:vendor-url returns "http://xml.apache.org/xalan-j" PR: bugzilla 3470 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java
Committer's log entry: Fix to allow indentation to be turned off XML/HTML output. PR: bugzilla 3469 Obtained from: n/a Submitted by: Douglas J. Sellers<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Output.java Parser.java Stylesheet.java
Committer's log entry: Fix to make sure the one, and only one, xsl:output element is compiled per translet (import precedence taken into account). PR: bugzilla 3099 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: Changed BasisLibrary.formatNumer() (this is the implementation of format-number()) so that it correctly formats NaNs into "NaN". PR: bugzilla 2890 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/25/2001
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: Another little update to format-number() to make sure it returns "Infinity" and "-Infinity" for infinite numbers. PR: bugzilla 2889 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/26/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Stylesheet.java
Committer's log entry: Changed the order in which a stylesheet parses its top-level elements. PR: bugzilla 3812 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/26/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Step.java java/src/org/apache/xalan/xsltc/dom NthIterator.java
Committer's log entry: Removed a bug in the NthIterator iterator that prevented the iterator from properly being reset. This bug manifested itself if the Nth iterator was wrapped inside a step iterator. PR: bugzilla 3419 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/26/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Step.java
Committer's log entry: Added node-ordering for preceding iterators when used in apply-templates or value-of elements. PR: bugzilla 3463 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/26/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Step.java
Committer's log entry: Removed debug statement in Step.java Submitted by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/26/2001
Modified: java/src/org/apache/xalan/xsltc/dom DupFilterIterator.java
Committer's log entry: Modified the DupFilterIterator so that it also orders nodes. PR: bugzilla 3466 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/26/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Step.java
Committer's log entry: Fix after a regression for preceding-sibling::* iterator. Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
09/28/2001
Modified: java/src/org/apache/xalan/xsltc Translet.java java/src/org/apache/xalan/xsltc/cmdline Transform.java java/src/org/apache/xalan/xsltc/dom NodeSortRecordFactory.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java java/src/org/apache/xalan/xsltc/trax TemplatesImpl.java TransformerImpl.java
Committer's log entry: A fix for the problem with loading auxiliary classes for sorting when called from TrAX API. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>XSLTC source code updates for Xalan-Java 2.2.D10
XSLTC source code updates:
-
Committed by
<EMAIL_ADDRESS>on
08/13/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Parser.java
Committer's log entry: I added a flag to the compiler/Parser class that is set if the outermost element in the stylesheet contains a definition of the XSL namespace. The parser already has a global variable '_target' that is set if the stylesheet contains a <?xml-stylesheet?> PI or not. The compiler will now flag an error if neither flags are set after the whole XSL/XML input document has been parsed. PR: bugzilla 1780 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/13/2001
Modified: java/src/org/apache/xalan/xsltc/compiler UnionPathExpr.java
Committer's log entry: Added a small fix that orders the expressions inside a union in such a way that expressions with an attribute axis or attribute node type will be put first. PR: bugzilla 2921 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/13/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Parser.java
Committer's log entry: A small fix that will allow top-level elements of an unknown URI. XSLTC now ignored the element(s), while it previously reported an error of an unsupported XSLT extension. PR: bugzilla 2840 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/13/2001
Modified: java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java DefaultSAXOutputHandler.java TextOutput.java
Committer's log entry: A start on a fix for output DOCTYPE declarations based on the attributes of the <xsl:output> element. I also added a fix for bug 2863, to prevent us from outputting namespace delcaration that point a prefix to the null URI (such as 'xmlns:blob=""'). PR: bugzilla 2863 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/13/2001
Modified: java/src/org/apache/xalan/xsltc/compiler xpath.cup
Committer's log entry: bug 2553, fixes AbbreviatedAbsoluteLocationPath, some relative location paths still give duplicates, will need to filter.
-
Committed by
<EMAIL_ADDRESS>on
08/14/2001
Modified: java/src/org/apache/xalan/xsltc/cmdline Transform.java java/src/org/apache/xalan/xsltc/compiler Output.java java/src/org/apache/xalan/xsltc/runtime DefaultRun.java DefaultSAXOutputHandler.java TextOutput.java java/src/org/apache/xalan/xsltc/trax TransformerImpl.java
Committer's log entry: Implemented support for the doctype-system and doctype-public attributes of the <xsl:output/> element. The translet post-processor (TextOutput) can now be instanciated with a ContentHandler and an optional LexicalHandler. The LexicalHandler will receive notofications of the DOCTYPE declaration. The default SAX output handler now implements both ContentHandler and LexicalHandler. The LexicalHandler only handles the startDTD() method, by outputting the DOCTYPE declaration, and all other methods are empty. The trax.Transformer implementation has also been updated to use the LexicalHandler, but I still have not found any way in which a SAX client can set the LexicalHandler. PR: bugzilla 1504 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/14/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XslElement.java
Committer's log entry: A minor change to the class handling the <xsl:element> element to be more in-sync with the XSLT 1.0 spec (and M.Kay's book). This in order to make it more readable and maintainable. I was trying to debug the code for something I thought was a bug, and it was just impossible to navigate. This change was necessary, even though the code functioned as it should. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/14/2001
Modified: java/src/org/apache/xalan/xsltc/compiler LiteralElement.java Parser.java
Committer's log entry: Fix for outputting all necessary namespace declarations with LREs. PR: bugzilla 2863 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/14/2001
Modified: java/src/org/apache/xalan/xsltc/dom ReverseIterator.java
Committer's log entry: A fix to allow reverse iterators to be reset (inside nested for-each loops). PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/15/2001
Added: java/src/org/apache/xalan/xsltc/dom DupFilterIterator.java
Committer's log entry: bug fix 2553, new iterator to get rid of dups
-
Committed by
<EMAIL_ADDRESS>on
08/15/2001
Added: java/src/org/apache/xalan/xsltc/compiler FilteredAbsoluteLocationPath.java
Committer's log entry: bug fix 2553, new abs location path
-
Committed by
<EMAIL_ADDRESS>on
08/15/2001
Modified: java/src/org/apache/xalan/xsltc/compiler xpath.cup Constants.java
Committer's log entry: bug fix 2553, updated Constants for dup processing and updated CUP rule for AbbreviatedAbsoluteLocationPaths
-
Committed by
<EMAIL_ADDRESS>on
08/16/2001
Modified: java/src/org/apache/xalan/xsltc/dom AbsoluteIterator.java DOMImpl.java DupFilterIterator.java StepIterator.java UnionIterator.java
Committer's log entry: Implementation of id() and key() pattern - finally! Added a small fix to the DOMImpl$DescendantIterator to prevent NPEs. PR: bugzilla 1376 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/16/2001
Modified: java/src/org/apache/xalan/xsltc/compiler IdKeyPattern.java KeyCall.java Mode.java Output.java Parser.java TestSeq.java xpath.cup
Committer's log entry: Forgot an 'import' in DupFilterIterator PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/16/2001
Modified: java/src/org/apache/xalan/xsltc TransletOutputHandler.java java/src/org/apache/xalan/xsltc/dom DupFilterIterator.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java DefaultSAXOutputHandler.java SAXAdapter.java TextOutput.java TransletOutputBase.java
Committer's log entry: missing file
-
Committed by
<EMAIL_ADDRESS>on
08/16/2001
Modified: java/src/org/apache/xalan/xsltc/runtime DefaultSAXOutputHandler.java
Committer's log entry: Added another fix for the missing DOCTYPE declaration. XSLTC will now output DOCTYPE declarations for HTML output if either doctype-system or doctype- public is declared in the <xsl:output> element. XSL output will get a DOCTYPE declaration only if doctype-system is declared. PR: 1504 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/16/2001
Modified: java/src/org/apache/xalan/xsltc/dom AbsoluteIterator.java
Committer's log entry:
-
Committed by
<EMAIL_ADDRESS>on
08/16/2001
Modified: java/src/org/apache/xalan/xsltc/compiler xpath.cup
Committer's log entry: turning on filtering, bug 2553
-
Committed by
<EMAIL_ADDRESS>on
08/16/2001
Modified: java/src/org/apache/xalan/xsltc/dom DupFilterIterator.java
Committer's log entry: Removed a bad optimisation in the duplicate filter iterator. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/17/2001
Modified: java/src/org/apache/xalan/xsltc/compiler xpath.cup
Committer's log entry: re-activated the no dups filtering, dont know how this got reverted back to no filtering, but it is fixed again.
-
Committed by
<EMAIL_ADDRESS>on
08/17/2001
Modified: java/src/org/apache/xalan/xsltc/compiler IdKeyPattern.java Key.java KeyCall.java Parser.java Sort.java xpath.cup java/src/org/apache/xalan/xsltc/compiler/util CompareGenerator.java NodeSortRecordGenerator.java java/src/org/apache/xalan/xsltc/dom DTDMonitor.java DupFilterIterator.java KeyIndex.java NodeSortRecord.java NodeSortRecordFactory.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java BasisLibrary.java
Committer's log entry: Major update for id() and key(). Patterns containing id() and key() are now 100% supported (about time), and id() and key() expressions should now work in all (at least most) combinations. PR: bugzilla 1376 (!!!) and 2624 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/20/2001
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: A small fix for a cleanup I did in the basis library (it broke the substring() function)> PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/20/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: Added small fix to prevent NPE in output handler. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/20/2001
Modified: java/src/org/apache/xalan/xsltc TransletOutputHandler.java java/src/org/apache/xalan/xsltc/compiler Variable.java VariableRef.java VariableRefBase.java java/src/org/apache/xalan/xsltc/compiler/util MultiHashtable.java java/src/org/apache/xalan/xsltc/dom DOMImpl.java java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java TextOutput.java TransletOutputBase.java
Committer's log entry: Added element/attribute prefix information in the internal DOM. This should fix some problems we have had with the copy and copy-of elements. Added a few lines of code in an attempt to speed up the DOM builder. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/21/2001
Modified: java/src/org/apache/xalan/xsltc/dom DTDMonitor.java
Committer's log entry: An attempt to optimise the building of the ID index. The previous version of this code would traverse the DOM once for each type of element that had a defined ID attribute. The new version traverses the DOM once, and looks up each element's type in a hashtable to determine its ID attribute type (if any). The new version of the code does not use string comparisons, like the old one. This update was done to compensate for the possible performance degradation of having implemented an element/attribute prefix array in the internal DOM. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/21/2001
Modified: java/src/org/apache/xalan/xsltc/trax TemplatesHandlerImpl.java TemplatesImpl.java TransformerHandlerImpl.java TransformerImpl.java
Committer's log entry: Protected some methods in our TrAX code that are not defined in the TrAX API. These methods were never intended for public use and should have been defined as "protected" to begin with. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/22/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XslElement.java
Committer's log entry: Fix for a problem with some combinations of <xsl:element> and namespace aliasing. The output lacked the necessary namespace definitions when an element created with <xsl:element> was given a qname with a prefix that was mapped to some other prefix. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/23/2001
Modified: java/src/org/apache/xalan/xsltc/compiler ParameterRef.java
Committer's log entry: removed typeCheck(), uses the base classes method now
-
Committed by
<EMAIL_ADDRESS>on
08/23/2001
Modified: java/src/org/apache/xalan/xsltc/compiler VariableRefBase.java
Committer's log entry: added default typeCheck() to this base class
-
Committed by
<EMAIL_ADDRESS>on
08/23/2001
Modified: java/src/org/apache/xalan/xsltc/compiler RelationalExpr.java
Committer's log entry: bug fix 2838, cast to type real if both operands are ResultTreeType
-
Committed by
<EMAIL_ADDRESS>on
08/27/2001
Modified: java/src/org/apache/xalan/xsltc DOM.java java/src/org/apache/xalan/xsltc/compiler AbsoluteLocationPath.java AbsolutePathPattern.java AncestorPattern.java ApplyTemplates.java BooleanExpr.java CallTemplate.java CastExpr.java Constants.java Copy.java CopyOf.java DocumentCall.java FilterExpr.java FilteredAbsoluteLocationPath.java ForEach.java FunctionCall.java Key.java KeyCall.java LastCall.java LocalNameCall.java Mode.java NameCall.java NamespaceUriCall.java Number.java Param.java ParameterRef.java ParentLocationPath.java ParentPattern.java PositionCall.java Predicate.java RelationalExpr.java Sort.java Step.java StepPattern.java Stylesheet.java SyntaxTreeNode.java Template.java TestSeq.java Text.java TransletOutput.java ValueOf.java Variable.java VariableRef.java Whitespace.java XSLTC.java java/src/org/apache/xalan/xsltc/compiler/util ClassGenerator.java ErrorMsg.java MethodGenerator.java NodeSetType.java NodeType.java ResultTreeType.java java/src/org/apache/xalan/xsltc/dom Axis.java DOMAdapter.java DOMImpl.java LoadDocument.java MultiDOM.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java BasisLibrary.java
Committer's log entry: Changes all calls from the compiled translet code to the DOM to be calls to the DOM interface (and not to a specific DOM class). I did this to make it possible to plugi in any DOM implementation. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/27/2001
Modified: java/src/org/apache/xalan/xsltc TransletOutputHandler.java java/src/org/apache/xalan/xsltc/compiler Constants.java TransletOutput.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java DefaultSAXOutputHandler.java TextOutput.java TransletOutputBase.java
Committer's log entry: Added an <xsltc:output> extension to allow for multiple output files. I know that this is not a prioritised task, but I need this for a little project I am working on. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/28/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Param.java ParameterRef.java Variable.java VariableBase.java VariableRef.java java/src/org/apache/xalan/xsltc/compiler/util NodeSetType.java NodeType.java ReferenceType.java ResultTreeType.java StringType.java Type.java
Committer's log entry: A few fixes for the regression caused by my last (huge) putback. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/28/2001
Modified: java/src/org/apache/xalan/xsltc/dom DupFilterIterator.java
Committer's log entry: A fix for the position() function when using duplicate filter iterators. PR: n/ Obtained from: N/A Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/30/2001
Modified: java/src/org/apache/xalan/xsltc/runtime SAXAdapter.java
Committer's log entry: Submitted by: Tom Amiro I just added an empty close method to resolve the build problem.
XSLTC source code updates for Xalan-Java 2.2.D9
XSLTC source code updates:
-
Committed by
<EMAIL_ADDRESS>on
07/27/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Committer's log entry: Integrated fix for problem with count() function for certain iterators. PR: Bugzilla 1407 Obtained from: n/a Submitted by: John Howard<EMAIL_ADDRESS>Reviewed by: Morten Jorgensen<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/30/2001
Modified: java/src/org/apache/xalan/xsltc DOM.java java/src/org/apache/xalan/xsltc/compiler EqualityExpr.java FilterParentPath.java Parser.java Predicate.java Step.java SyntaxTreeNode.java Variable.java XSLTC.java java/src/org/apache/xalan/xsltc/dom DOMAdapter.java DOMImpl.java MultiDOM.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java DefaultSAXOutputHandler.java TextOutput.java java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java
Committer's log entry: Added code that will speed up predicates such as //foo[@attr=$var], //foo[bar = $var] and //foo/[@attr = 'str']. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/31/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Expression.java Param.java ParameterRef.java Predicate.java Stylesheet.java SyntaxTreeNode.java Variable.java VariableRef.java WithParam.java
Committer's log entry: Fix for parameter and variable handling. This fix makes sure variable slots are released once a variable goes out of scope. I have also extracted common functionality from Variable and Param into VariableBase, and similarly extracted some functionality from VariableRef and ParameterRef into a new class VariableRefBase. This can potentially make some code more efficient as one can test for 'if (blob instanceof VariableBase)' instead of testing on both Variable and Param. PR: Bugzilla 2661 and 2699 Obtained from: n/a Submitted by: John Howard<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/31/2001
Added: java/src/org/apache/xalan/xsltc/compiler VariableBase.java VariableRefBase.java
Committer's log entry: Forgot to add these two in my last putback. PR: none Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/31/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Predicate.java Step.java Stylesheet.java XSLTC.java
Committer's log entry: Removed type-cast error in Stylesheet.java PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/31/2001
Modified: java/src/org/apache/xalan/xsltc/compiler VariableBase.java java/src/org/apache/xalan/xsltc/runtime DefaultSAXOutputHandler.java
Committer's log entry: Removed some of the linefeeds we output in the default SAX output handler to produce output more similar to Saxon (for testing purposes). Added a test for null-pointers in the new VariableBase class. PR: bugzilla 2922 & 2598 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/31/2001
Modified: java/src/org/apache/xalan/xsltc/dom NodeCounter.java
Committer's log entry: Added a small fix to prevent unwanted output when using the xsl:number element. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/01/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Constants.java If.java Key.java Predicate.java Step.java When.java java/src/org/apache/xalan/xsltc/compiler/util CompareGenerator.java java/src/org/apache/xalan/xsltc/dom NodeCounter.java java/src/org/apache/xalan/xsltc/runtime DefaultSAXOutputHandler.java
Committer's log entry: A few changes to make our output look more like Saxon's (to simplyfy test diffs). PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/01/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransformerImpl.java DOM2SAX.java
Committer's log entry: add support for DOMResult handling
-
Committed by
<EMAIL_ADDRESS>on
08/01/2001
Added: java/src/org/apache/xalan/xsltc/trax SAX2DOM.java
Committer's log entry: work in progress, converted needed for DOMResult
-
Committed by
<EMAIL_ADDRESS>on
08/02/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransformerImpl.java
Committer's log entry: added setting of systemId in DOMSource handling
-
Committed by
<EMAIL_ADDRESS>on
08/02/2001
Modified: java/src/org/apache/xalan/xsltc/trax SAX2DOM.java TransformerFactoryImpl.java TransformerImpl.java
Added: java/src/org/apache/xalan/xsltc/trax TransformerHandlerImpl.java
Committer's log entry: Added an implementation of the TransformerHandler interface of TrAX/JAXP. Implemented the 4 methods in TransformerFactory to instanciate this TransformerHandler implementation. Added an attribute of the TransformerFactory which contains the default name for generated translet classes (the default name is GregorSamsa from Kafka's Metemorphosis), but should be set by the user in cases where the Templates implementation cannot get the systemId from the Source object.
-
Committed by
<EMAIL_ADDRESS>on
08/02/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java TransformerHandlerImpl.java
Added: java/src/org/apache/xalan/xsltc/trax TemplatesHandlerImpl.java
Committer's log entry: Added missing TemplatesHandlerImpl file (implementation of the TrAX TemplatesHandler interface). Added initial implementation of getAssociatedStylesheet() in the TransformerFactoryImpl class. Changed behaviour of TransformerHandlerImpl class with regard to the setResult() method. This method now has to be called before startDocument() is called, which gives XSLTC the same behaviour as Xalan. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/02/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Parser.java XSLTC.java java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java
Committer's log entry: Added support for the TransformerFactory's getAssociatedStylesheet() method. Added similar methods to the native XSLTC API, as they can come in handy. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/03/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Constants.java DocumentCall.java java/src/org/apache/xalan/xsltc/dom LoadDocument.java
Committer's log entry: Fix for the document() function. The code compiled by DocumentCall now passes the context URI to the LoadDocument.document() method, and the document() method resolves the base/new URIs and constructs an absolute path/URI to the document to load. PR: bugzilla 2832 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/03/2001
Modified: java/src/org/apache/xalan/xsltc/trax DOM2SAX.java
Committer's log entry: new recursive parse(InputSource) implemented
-
Committed by
<EMAIL_ADDRESS>on
08/03/2001
Modified: java/src/org/apache/xalan/xsltc/trax DOM2SAX.java
Committer's log entry: upated
-
Committed by
<EMAIL_ADDRESS>on
08/03/2001
Modified: java/src/org/apache/xalan/xsltc/trax DOM2SAX.java
Committer's log entry: updated again
-
Committed by
<EMAIL_ADDRESS>on
08/03/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java java/src/org/apache/xalan/xsltc/trax SAX2DOM.java
Committer's log entry: Fix to get around problem with Crimson. Crimson does not like attribute- nodes to be created with 'null' or "" namespace URI. Added an if-test to invoke setAttribute(name, value) instead of setAttributeNS(uri, name, value). Had to add a little test to DOMImpl$DOMBuilder.makeAttributeNode() to get around an internal NPE problem. PR: n/a Obtained from: n.a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/03/2001
Modified: java/src/org/apache/xalan/xsltc/compiler CopyOf.java Step.java java/src/org/apache/xalan/xsltc/dom DOMImpl.java UnionIterator.java
Committer's log entry: Fix for union-iterators wrapping one or more attribute-iterators. Attributes should be wrapped in TypedAttributeIterator objects and not SingletonIterator objects when they occur insude unions. Fix for copying attribute nodes using <xsl:copy> and <xsl:copy-of> PR: bugzilla 2603 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/07/2001
Modified: java/src/org/apache/xalan/xsltc/dom LoadDocument.java
Committer's log entry: Added code behind the document() function to force the parser to be namespace aware (Crimson is pr. default, Xerces is not). PR: bugzilla 2862 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/07/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: Fix to prevent escaping of attribute values in HTML output. PR: bugzilla 3003 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/07/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: Fix for grouping a sequence of text nodes inside one CDATA section. PR: bugzilla 3005 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/07/2001
Modified: java/src/org/apache/xalan/xsltc/compiler ForEach.java xpath.cup java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java
Committer's log entry: Fix for passing node-sets as parameters into a template with a for-each loop. The ForEach class resets its node iterator by default. This behaviour is not desierd for iterators that are passed in through a parameter, so I added an it-test that checks if the iterator is of type 'Reference'. PR: bugzilla 2468 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/07/2001
Modified: java/src/org/apache/xalan/xsltc/compiler AbsolutePathPattern.java
Committer's log entry: Fix for a certain combination of absolute path patterns and ancestor patterns, such as <xsl:template match="/foo//*"/>. PR: bugzilla 2836 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/07/2001
Modified: java/src/org/apache/xalan/xsltc/compiler DocumentCall.java
Committer's log entry: Fix for document() function. Prevents run-time error. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/08/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XslElement.java
Committer's log entry: Added a test to the <xsl:element> element to verify that the element name given in the 'name' attribute contains something other than an empty string. PR: bugzilla 2794 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/08/2001
Modified: java/src/org/apache/xalan/xsltc/compiler LiteralElement.java
Committer's log entry: Applied a fix to our class for handling literal result elements. The only attributes in the XSLT namespace we handle in LREs are exclude-result-prefixes and extension-element-prefixes. We have a test to check if an attribute is in the XSLT namespace, and if it is we ignore the attribute. This test was placed before the test for the two XSLT attributes we do want to handle, causing us to ignore all xsl:exclude-result-prefixes attributes in LREs. PR: bugzilla 1506 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/08/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Attribute.java AttributeSet.java Copy.java UseAttributeSets.java XslAttribute.java java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Committer's log entry: Fix and performance improvement for attribute sets. PR: bugzilla 2536 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
08/08/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Copy.java
Committer's log entry: Fix for use of attribute sets with the xsl:copy element. We were a bit too restrictive in our tests to see if it was safe to send the attributes to the output handler. We only compiled in a test to see if the copied node was an elment, but should also have tested if the xsl:copy element's parent node was a LRE or a xsl:element element. PR: bugzilla 2538 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>XSLTC source code updates for Xalan-Java 2.2.D8
XSLTC source code updates:
-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Modified: java/src/org/apache/xalan/xsltc/runtime DefaultSAXOutputHandler.java java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java TransformerImpl.java
Committer's log entry: Added support for SAXSource and SAXResult in TransformerFactoryImpl and TransformerFactory. I had to add a new consturctor the the default SAX output handler (in the xsltc runtime library) to acommodate the SAXResult TrAX output handler. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XSLTC.java java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java
Committer's log entry: Added default error-reporting behaviour for our trax code (error messages are dumped to System.err). PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java
Committer's log entry: in progress, adding DOMSource support
-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Added: java/src/org/apache/xalan/xsltc/trax DOM2SAX.java
Committer's log entry: new class, DOM2SAX, supports DOMSources, in progress
-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Import.java Include.java Stylesheet.java XSLTC.java java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java TransformerImpl.java
Added: java/src/org/apache/xalan/xsltc/compiler SourceLoader.java
Committer's log entry: Added a SourceLoader interface to the compiler package. This interface can be used to plug in an external document loader for imported and/or included stylesheets. The trax.TransformerImpl class is updated to implement this interface and act as an adapter between the internal XSLTC SourceLoader interface and TrAX's URIResolver interface. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Modified: java/src/org/apache/xalan/xsltc/runtime Constants.java
Committer's log entry: Added the NAMESPACE_FEATURE constant. Checked to see if it was in org.xml.sax first, but it wasn't. Since this constant is used both at compile and runtime, it should be in the runtime Constants class as well as the compile Constants class. Runtime code needs to be kept separate from the compile time code.
-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Modified: java/src/org/apache/xalan/xsltc/runtime DefaultRun.java java/src/org/apache/xalan/xsltc/cmdline Transform.java java/src/org/apache/xalan/xsltc/dom DocumentCache.java
Committer's log entry: Added import for org.apache.xalan.xsltc.runtime.Constants; to the runtime classes that need to use the NAMESPACE_FEATURE constant and had them reference it rather than define it themselves.
-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XSLTC.java
Committer's log entry: minor changes for DOMSource impl support
-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java
Committer's log entry: Added DOMSource support for stylesheet
-
Committed by
<EMAIL_ADDRESS>on
07/20/2001
Modified: java/src/org/apache/xalan/xsltc/trax DOM2SAX.java
Committer's log entry: updated convertor which supports DOMSource impl
-
Committed by
<EMAIL_ADDRESS>on
07/23/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XSLTC.java
Committer's log entry: Added a small fix to the compiler (XSLTC.java) to make sure that the SAX parser reference was not reset prior to compiling the translet. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/23/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java TransformerImpl.java
Committer's log entry: Added support for DOMSource as input to our Transformer implementation
-
Committed by
<EMAIL_ADDRESS>on
07/23/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Import.java Sort.java java/src/org/apache/xalan/xsltc/dom NodeSortRecord.java NodeSortRecordFactory.java
Committer's log entry: For some reason I decided to optimise the <xsl:sort> functionaility. The sort records we used has some global values stored behind methods, but are now static fields. Somewhat faster. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/23/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Import.java Include.java
Committer's log entry: Fix for problem with import & include introduced with the latest updated for TrAX URIResolvers. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/27/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Committer's log entry: Integrated fix for problem with count() function for certain iterators. PR: Bugzilla 1407 Obtained from: n/a Submitted by: John Howard<EMAIL_ADDRESS>Reviewed by: Morten Jorgensen<EMAIL_ADDRESS>XSLTC source code updates for Xalan-Java 2.2.D7
-
Committed by
<EMAIL_ADDRESS>on
07/09/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Constants.java Param.java StepPattern.java Stylesheet.java SyntaxTreeNode.java Variable.java WithParam.java java/src/org/apache/xalan/xsltc/dom KeyIndex.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java BasisLibrary.java DefaultRun.java Parameter.java TextOutput.java
Committer's log entry: Loads of small fixes and a good few comments added to the source code. The major fixes are one fix for variable/parameter handlingi and one for key/id index handling. XSLTC now correctly updates the value of parameters with changing default values, such as with <xsl:param name="foo" select="current()"/>. Also updated bit-arrays to correctly return single node ids, so that the key() and id() functions return the correct number of nodes (they would sometimes skip the first node in the defined node set for the key/id). Added some structure and loads of comments to the Translet base class. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/10/2001
Modified: java/src/org/apache/xalan/xsltc/compiler AncestorPattern.java AttributeSet.java CallTemplate.java CastExpr.java EqualityExpr.java Expression.java FunctionCall.java If.java Import.java Include.java Mode.java NameBase.java Param.java ParameterRef.java Parser.java StepPattern.java SyntaxTreeNode.java Template.java TestSeq.java Variable.java VariableRef.java XSLTC.java XslAttribute.java java/src/org/apache/xalan/xsltc/compiler/util ErrorMsg.java ReferenceType.java java/src/org/apache/xalan/xsltc/dom MultiDOM.java StepIterator.java java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: A wide range of fixes provided by Erwin Bolwidt. o) fix for long IF and GOTO instructions inside translets. 'wide' GOTOs are now used (GOTO_W) instead of plain GOTO to allow longer jump offsets o) fix for illegal field/method names in the translet. Methods and fields no longer contain the '.' or '-' characters o) source filenames (and if possible also line numbers) are now provided with error and warning messages o) external functions that are not supported by XSLTC do not cause compile errors. They will still cause a warning message at compile-time if they are not wrapped in proper <xsl:if> or <xsl:when> elements that test on the availability of the function, and will cause a runtime error if the function is attempted called. o) added type cast from reference-type to node-type o) some other smaller fixes to prevent null-pointer exceptions Other changes: o) code cleanup and some added comments PR: n/a Obtained from: n/a Submitted by: Erwin Bolwidt<EMAIL_ADDRESS>Reviewed by: Morten Jorgensen<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/12/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Parser.java SyntaxTreeNode.java XSLTC.java
Committer's log entry: Cleaned up the XSLTC compiler class in an attempt to make it more flexible. This class was originally written as a command-line interface, but it has now grown huge and messy. I separated the command-line stuff from the methods that make up the actual functionality and made some methods public. This is part of the preparation for our new implementation of the JAXP Templates object. PR: n/a Obtained from: n.a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/12/2001
Modified: java/src/org/apache/xalan/xsltc/runtime DefaultRun.java
Added: java/src/org/apache/xalan/xsltc/cmdline Compile.java Transform.java
Committer's log entry: Extracted the command-line stuff from the core XSLTC packages. The command- line handling is now in xalan.xsltc.cmdline.Compile and xalan.xsltc.cmdline.Transform. The command-line stuff is still left in xalan.xsltc.compiler.XSLTC and xalan.xsltc.runtime.DefaultRun for backwards compatability. This should be removed shortly. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/12/2001
Modified: java/src/org/apache/xalan/xsltc/cmdline Compile.java java/src/org/apache/xalan/xsltc/compiler XSLTC.java
Added: java/src/org/apache/xalan/xsltc/cmdline/getopt GetOpt.java GetOptsException.java IllegalArgumentException.java MissingOptArgException.java java/src/org/apache/xalan/xsltc/trax TemplatesImpl.java TransformerImpl.java
Removed: java/src/org/apache/xalan/xsltc/util/getopt GetOpt.java GetOptsException.java IllegalArgumentException.java MissingOptArgException.java
Committer's log entry: Moved the org.apache.xalan.xsltc.util.getopt package to org.apache.xalan.xsltc.cmdline.getopt. Also added some skeleton code in a new org.apache.xalan.xsltc.trax directory. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/12/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransletTemplates.java
Committer's log entry: minor adjustment Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/12/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java
Committer's log entry: removed obselete try/catch
-
Committed by
<EMAIL_ADDRESS>on
07/12/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XSLTC.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java java/src/org/apache/xalan/xsltc/trax TemplatesImpl.java TransformerFactoryImpl.java TransformerImpl.java
Removed: java/src/org/apache/xalan/xsltc/trax TransletTemplates.java
Committer's log entry: A first stab at our new TrAX design.` Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/13/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XSLTC.java java/src/org/apache/xalan/xsltc/trax TemplatesImpl.java TransformerFactoryImpl.java TransformerImpl.java
Committer's log entry: A few minor adjustments to yesterdays JAXP/TrAX implementation. These is one change in the way the compiler (XSLTC) generates bytecode arrays, and the rest is basically a cleanup of error reporting and a few added comments. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/16/2001
Modified: java/src/org/apache/xalan/xsltc/dom DocumentCache.java
Added: java/src/org/apache/xalan/xsltc/trax OutputSettings.java
Committer's log entry: Reduced the refresh rate of the DocumentCache to 1 second. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/17/2001
Modified: java/src/org/apache/xalan/xsltc/dom DocumentCache.java
Committer's log entry: Submitted by: Tom Amiro Fixes bug 1591. Changed the lastModified() method to return the correct timestamp for local files beginnig with the "file:" protocol. Incorporated Brian Ewin's suggestion to use URLdecode. Todd Miller and Morten Jorgensen
-
Committed by
<EMAIL_ADDRESS>on
07/17/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java java/src/org/apache/xalan/xsltc/trax TemplatesImpl.java TransformerFactoryImpl.java TransformerImpl.java
Committer's log entry: Added some javadoc comments to our trax stuff. Added preliminary support for getting/setting output properties, and for getting/setting URL resolvers. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/18/2001
Modified: java/src/org/apache/xalan/xsltc TransletOutputHandler.java java/src/org/apache/xalan/xsltc/cmdline Transform.java java/src/org/apache/xalan/xsltc/compiler Output.java Stylesheet.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java DefaultRun.java DefaultSAXOutputHandler.java SAXAdapter.java StringValueHandler.java TextOutput.java TransletOutputBase.java
Committer's log entry: A series of changes to the XSLTC output handling to accomodate the set/getOutputSettings() methods in the TrAX API. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/19/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: Fixed the handling of the 'cdata-section-elements' attribute of the <xsl:output> element. Previously we output the whole element, including all contents, child elements and the start- and end-tags in one big CDATA section. We now correctly output only immediate text child-nodes as CDATA sections. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/19/2001
Modified: java/src/org/apache/xalan/xsltc Translet.java java/src/org/apache/xalan/xsltc/dom LoadDocument.java java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java java/src/org/apache/xalan/xsltc/trax TransformerImpl.java
Committer's log entry: Added implementation of get/setOutputProperties() of the Transformer implementation. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
07/19/2001
Modified: java/src/org/apache/xalan/xsltc/dom DocumentCache.java
Committer's log entry: Added (a rather brutal) handling of all Exceptions thrown in the DocumentCache.getLastModified() method. This class is provided only as an example/skeleton, but should still - for various reasons - be provided in the base 'xsltc.dom' package. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>XSLTC source code updates for the Xalan-Java 2.2.D releases up to and including 2.2.D6
-
Committed by
<EMAIL_ADDRESS>on
05/23/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Text.java
Committer's log entry: bug fix 1403, output escaping fixed
-
Committed by
<EMAIL_ADDRESS>on
05/23/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: bug fix 1403, output escaping fixed
-
Committed by
<EMAIL_ADDRESS>on
06/05/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Parser.java
Committer's log entry: stylesheet compilation error listening added for TrAX support
-
Committed by
<EMAIL_ADDRESS>on
06/05/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XSLTC.java
Committer's log entry: stylesheet compilation error listening added for TrAX support
-
Committed by
<EMAIL_ADDRESS>on
06/05/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TransformerFactoryImpl.java
Committer's log entry: stylesheet compilation error listening added for TrAX support
-
Committed by
<EMAIL_ADDRESS>on
06/05/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TransformerFactoryImpl.java
Committer's log entry: Transformer factory's setErrorListener() now throws IllegalArgumentException is listener is null
-
Committed by
<EMAIL_ADDRESS>on
06/05/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TransformerFactoryImpl.java
Committer's log entry: translet transformation errors now forwarded to TrAX error listener when applicable
-
Committed by
<EMAIL_ADDRESS>on
06/05/2001
Modified: java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java
Committer's log entry: translet transformation errors now forwarded to TrAX error listener when applicable
-
Committed by
<EMAIL_ADDRESS>on
06/06/2001
Modified: java/src/org/apache/xalan/xsltc/runtime AttributeList.java
Committer's log entry: Added a constructor for copying an org.xml.sax.Attributes to our org.apache.xalan.xsltc.runtime.AttributeList. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/06/2001
Modified: java/src/org/apache/xalan/xsltc/compiler ApplyImports.java ApplyTemplates.java Attribute.java AttributeSet.java AttributeValueTemplate.java BinOpExpr.java CallTemplate.java Comment.java ConcatCall.java Constants.java Copy.java CopyOf.java DecimalFormatting.java DocumentCall.java Expression.java Fallback.java ForEach.java FormatNumberCall.java FunctionAvailableCall.java FunctionCall.java If.java Import.java Include.java Key.java LiteralAttribute.java LiteralElement.java LiteralExpr.java LogicalExpr.java Message.java NamespaceAlias.java Number.java Output.java Param.java Parser.java ProcessingInstruction.java QName.java RelationalExpr.java Sort.java Stylesheet.java SymbolTable.java SyntaxTreeNode.java Template.java Text.java TransletOutput.java UnaryOpExpr.java ValueOf.java Variable.java When.java Whitespace.java WithParam.java XSLTC.java XslAttribute.java XslElement.java xpath.cup java/src/org/apache/xalan/xsltc/compiler/util MethodType.java
Committer's log entry: Removed the intermediate DOM used to contain the input document (the stylesheet) for the compiler. The compiler now uses SAX2 to import the stylesheet, and all references to DOM interfaces have been removed. This means that most classes representing XSL elements have been changed, but most classes representing XPath functions, expressions and patterns are unchanged. PR: After suggestion from Scott Boag Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/06/2001
Added: java/src/org/apache/xalan/xsltc/compiler UnsupportedElement.java
Committer's log entry: Adding a class for handling unsupported stylesheet elements Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/06/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Committer's log entry: Minor fix to make sure that attributes are processed in the correct order. PR: n/a Obtained from: n.a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/06/2001
Modified: java/src/org/apache/xalan/xsltc/runtime DefaultSAXOutputHandler.java
Committer's log entry: Minor change in output indentation/line feeds. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/06/2001
Modified: java/src/org/apache/xalan/xsltc/compiler LocationPathPattern.java Parser.java Template.java
Committer's log entry: Fixed the code that resolves conflicts between templates with identical patterns. The order of the templates is not taken into account - after import precedence and priority has been checked. Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/06/2001
Modified: java/src/org/apache/xalan/xsltc/runtime DefaultSAXOutputHandler.java
Committer's log entry: Reverted changes to SAX output handler. Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/06/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Parser.java Template.java xpath.cup
Committer's log entry: unified Parser error reporting to use Mortens reportError routine
-
Committed by
<EMAIL_ADDRESS>on
06/07/2001
Modified: java/src/org/apache/xalan/xsltc/compiler BinOpExpr.java FunctionCall.java Otherwise.java Param.java RelationalExpr.java Stylesheet.java SyntaxTreeNode.java Variable.java When.java XSLTC.java XslElement.java
Committer's log entry: Updated a few classes that were still calling Parser.addError(), Parser.addWarning() and Parser.addFatalError() to use the new common error handler Prarser.reportError(int category, ErrorMsg message). Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/08/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Parser.java java/src/org/apache/xalan/xsltc/runtime DefaultRun.java
Committer's log entry: Added two lines of code to explicitly set the feature "http://xml.org/sax/features/namespaces" of the SAXParser to "true". The default is "true" but xerces seems to set it to "false", and this caused some problems for our Stylesheet and XML doc parsers (which are both using SAX2). Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/08/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Constants.java Parser.java java/src/org/apache/xalan/xsltc/runtime DefaultRun.java
Committer's log entry: A few more changes to make sure the parsers used are namespace aware. Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/08/2001
Modified: java/src/org/apache/xalan/xsltc/compiler LiteralElement.java SyntaxTreeNode.java XslAttribute.java XslElement.java
Committer's log entry: The change from using DOM to using SAX in the stylesheet input caused some of the elements in the Abstract Syntax Tree (AST) to be out of order. I added a few lines of code to the xsl:element/attribute handling code to fix this. Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/11/2001
Modified: java/src/org/apache/xalan/xsltc/compiler AttributeSet.java Choose.java Constants.java If.java LiteralElement.java Stylesheet.java UseAttributeSets.java When.java XSLTC.java XslAttribute.java
Committer's log entry: This putback contains three fixes: o) fix for complex <xsl:attribute-set> inheritance structures o) fix for xsl:element-available() function used in <xsl:when> or <xsl:if> to test support for various extension elements o) fix for preserving namespace prefixes for <xsl:attribute> output. Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/11/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Constants.java UseAttributeSets.java ValueOf.java XslAttribute.java java/src/org/apache/xalan/xsltc/compiler/util AttributeSetMethodGenerator.java
Committer's log entry: Fix to allow iterator access within attribute sets. This is necessary for attribute sets that contain attributes whose values are generated by XSL functions such as position() and last(). Obtained from: test mk013 Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/11/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Committer's log entry: Added output character escaping for non-breaking space characters. I cannot believe we've waited this long before doing this. Madness! Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/11/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XSLTC.java Parser.java
Committer's log entry: support for java.io.InputStream StreamSources
-
Committed by
<EMAIL_ADDRESS>on
06/11/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TransletTemplates.java
Committer's log entry: support for java.io.InputStream StreamSources
-
Committed by
<EMAIL_ADDRESS>on
06/12/2001
Modified: java/src/org/apache/xalan/xsltc/compiler LogicalExpr.java
Committer's log entry: Fix for bug 1511. Predicates on the format ((a or b) and c) are not handled correctly. I added a small piece of code to direct the true-list of the OR expression to the beginning of the AND test. PR: Bugzilla 1511 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/12/2001
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java TextOutput.java
Committer's log entry: Fix attribute node-set comparisons. There was a bug in one of the compare() methods of the BasisLibrary class which prevented attribute values from being compared. The method compared node IDs instead of node values.  PR: Bugzilla 1409 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/12/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Mode.java
Committer's log entry: Fix to make sure that the implicit "text()" pattern is run when templates containing "text()" in their pattern fail. XSLTC would not previously invoke the built-in pattern for "text()" if a stylesheet contained a template such as <xsl:template pattern="foo/bar/text()" .../> PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/12/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XslElement.java
Committer's log entry: Modified test for legal element names in <xsl:element>. The element name is treated as an attribute value. Whitespaces are not allowed in plain text element names, but should be allowed inside "{...}" attribute values. PR: Bugzilla 1489 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/12/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Committer's log entry: A fix for the preceding:: iterator PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/12/2001
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Committer's log entry: Minor re-adjustment to last fix for preceding:: iterator PR: 1407 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/12/2001
Modified: java/src/org/apache/xalan/xsltc/compiler ForEach.java XSLTC.java
Committer's log entry: Fix to prevent compiler warnings to be output more than once. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/12/2001
Modified: java/src/org/apache/xalan/xsltc/compiler AttributeSet.java
Committer's log entry: Final fix (for now) for attribute sets. In cases where multiple <xsl:attribute-set.../> elements make up one attribute set (ie. they share the same name) attributes that occured last in the stylesheet will take precedence. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/12/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TransformerFactoryImpl.java
Committer's log entry: added support for java.io.InputStream StreamSources
-
Committed by
<EMAIL_ADDRESS>on
06/13/2001
Modified: java/src/org/apache/xalan/xsltc/compiler LogicalExpr.java
Committer's log entry: Fix for code handling logical expressions and combinations of logical expressions. Mindblowing stuff, but it now seems to work as it should. Added another few lines of code to properly direct the program flow in compiled predicates with various combinations of "and" and "or" expressions. PR: Bugzilla 1511 Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/13/2001
Modified: java/src/org/apache/xalan/xsltc/dom SingletonIterator.java
Committer's log entry: Fix for singleton iterators encapsulating variable references. PR: Bugzilla 1412 Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/14/2001
Modified: java/src/org/apache/xalan/xsltc/compiler LiteralElement.java
Committer's log entry: Added one-line fix to prevent null-pointer error. Simple code cleanup. PR: n/a Obtained from: suggestion by Guoliang Cao<EMAIL_ADDRESS>Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/15/2001
Modified: java/src/org/apache/xalan/xsltc/compiler LogicalExpr.java
Committer's log entry: Fix to prevent compile-time null-pointer exceptions for certain logical expressions. Some nexted AND-expressions would cause this error because their true-list would not be backpatched. This would result in an instruction list with one or more branch instructions with no target, such as a GOTO(null) or an IFEQ(null) instruction. PR: none, bug found in test run and fixed immediately Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/17/2001
Modified: java/src/org/apache/xalan/xsltc/compiler AbsoluteLocationPath.java ApplyImports.java ApplyTemplates.java CastExpr.java CopyOf.java DocumentCall.java EqualityExpr.java Expression.java FilterExpr.java FilterParentPath.java ForEach.java FunctionCall.java IdKeyPattern.java Key.java KeyCall.java NameBase.java ParentLocationPath.java Parser.java Predicate.java RelationalExpr.java Step.java UnionPathExpr.java java/src/org/apache/xalan/xsltc/compiler/util NodeSetType.java NodeType.java ReferenceType.java ResultTreeType.java Type.java java/src/org/apache/xalan/xsltc/dom UnionIterator.java java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: OK, I'm going to make a wild guess and assume that sboag's recent commit of /NodeSet/NodeSetDTM/ got a little out of control and shouldn't have gone down into org.apache.xalan.xsltc - undone to fix compile error
-
Committed by
<EMAIL_ADDRESS>on
06/18/2001
Removed: java/src/org/apache/xalan/xsltc/compiler/util NodeSetType.java
Committer's log entry: Removing NodeSetType (renamed to NodeSetDTMType). PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/18/2001
Modified: java/src/org/apache/xalan/xsltc/compiler/util Type.java
Added: java/src/org/apache/xalan/xsltc/compiler/util NodeSetDTMType.java
Committer's log entry:
-
Committed by
<EMAIL_ADDRESS>on
06/18/2001
Modified: java/src/org/apache/xalan/xsltc/compiler/util Type.java
Added: java/src/org/apache/xalan/xsltc/compiler/util NodeSetType.java
Removed: java/src/org/apache/xalan/xsltc/compiler/util NodeSetDTMType.java
Committer's log entry:
-
Committed by
<EMAIL_ADDRESS>on
06/19/2001
Modified: java/src/org/apache/xalan/xsltc/compiler ContainsCall.java FunctionCall.java If.java LogicalExpr.java Param.java QName.java StartsWithCall.java SymbolTable.java SyntaxTreeNode.java Template.java Variable.java xpath.cup java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Committer's log entry: Fix for function calls used as clauses in logical expressions. Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/19/2001
Committer's log entry: > Fix for function calls used as clauses in logical expressions. > Submitted by<EMAIL_ADDRESS>> Reviewed by<EMAIL_ADDRESS>> >
-
Committed by
<EMAIL_ADDRESS>on
06/19/2001
Committer's log entry: > > Fix for function calls used as clauses in logical expressions. > > Submitted by<EMAIL_ADDRESS>> > Reviewed by<EMAIL_ADDRESS>> > > >
-
Committed by
<EMAIL_ADDRESS>on
06/25/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TransformerFactoryImpl.java
Committer's log entry: added check to see if stylesheet is already an URL
-
Committed by
<EMAIL_ADDRESS>on
06/25/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TransletTemplates.java
Committer's log entry: added check to see if stylesheet is already an URL
-
Committed by
<EMAIL_ADDRESS>on
06/25/2001
Added: java/src/org/apache/xalan/xsltc/runtime TrAXFilter.java
Committer's log entry: proto
-
Committed by
<EMAIL_ADDRESS>on
06/25/2001
Modified: java/src/org/apache/xalan/xsltc/runtime TransformerFactoryImpl.java
Committer's log entry: removed debug statements
-
Committed by
<EMAIL_ADDRESS>on
06/26/2001
Removed: java/src/org/apache/xalan/xsltc/runtime TrAXFilter.java TransformerFactoryImpl.java TransletTemplates.java
Committer's log entry: in process of moving these to new subdir
-
Committed by
<EMAIL_ADDRESS>on
06/26/2001
Added: java/src/org/apache/xalan/xsltc/trax TrAXFilter.java TransformerFactoryImpl.java TransletTemplates.java
Committer's log entry: moved from runtime subdir to its own trax subdir
-
Committed by
<EMAIL_ADDRESS>on
06/27/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java
Committer's log entry: fixed bug with deriving translet name from stylesheet name that included paths, e.g. /tmp/foo.xsl
-
Committed by
<EMAIL_ADDRESS>on
06/27/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Predicate.java
Committer's log entry: This update allows variables that contain references to result-tree fragments to be used inside position filters. PR: n/a Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/27/2001
Modified: java/src/org/apache/xalan/xsltc/runtime AbstractTranslet.java
Committer's log entry: added url handling in doTransform
-
Committed by
<EMAIL_ADDRESS>on
06/27/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java
Committer's log entry: added a new sys property called 'transletPool' to allow user to set the destination directory for generated translets
-
Committed by
<EMAIL_ADDRESS>on
06/27/2001
Modified: java/src/org/apache/xalan/xsltc/trax TransletTemplates.java
Committer's log entry: added a new sys property called 'transletPool' to allow user to set the destination directory for generated translets
-
Committed by
<EMAIL_ADDRESS>on
06/27/2001
Modified: java/src/org/apache/xalan/xsltc/compiler XSLTC.java
Committer's log entry: made private method setDestDirectory() public to support the new transletPool system property.
-
Committed by
<EMAIL_ADDRESS>on
06/28/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Predicate.java Step.java Stylesheet.java VariableRef.java java/src/org/apache/xalan/xsltc/compiler/util MethodGenerator.java NodeSortRecordGenerator.java ResultTreeType.java TestGenerator.java
Committer's log entry: Various bugfixes in the way auxiliary classes access variables/fields in the main translet class. Fixes a few VAR tests and customer tests<EMAIL_ADDRESS>-
Committed by
<EMAIL_ADDRESS>on
06/29/2001
Modified: java/src/org/apache/xalan/xsltc/compiler Choose.java ElementAvailableCall.java FunctionAvailableCall.java Parser.java When.java
Committer's log entry: Fix for element-available() and function-available() calls. Ties these calls to tables in the XSL parser and the symbol-table (the actual implementation) instead of using redundant and not-up-to-date tables in the classes that implement the X-avaiable() calls. I also cleaned up the Choose call so that it now properly handles all types of function calls in the xsl:when elements' test clause.
-
Committed by
<EMAIL_ADDRESS>on
06/29/2001
Modified: java/src/org/apache/xalan/xsltc/compiler ForEach.java Param.java Variable.java java/src/org/apache/xalan/xsltc/compiler/util MethodGenerator.java
Committer's log entry: Added a fix for local variables inside nested xsl:for-each elements. Local variables are usually not initialized to any default value (such as with general Java classes), because code compiled for <xsl:variable> elements always assign values to variable slots before they are accessed. But the code structure generated by nested <xsl:for-each> elements is too much for the JVMs verifier to get around, so we have to initialize all local variables inside such loops to zero, false, null, whatever. This takes care some of our runtime-errors caused by apparent corrupt code. (The JVMs verifier thinks that it is corrupt, but it isn't really.) PR: none Obtained from: n/a Submitted by<EMAIL_ADDRESS>Reviewed by<EMAIL_ADDRESS>XSLTC Changes for Xalan-Java 2.1.0
The Sun XSLTC team<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>has checked XSLTC into the Xalan source tree, and we have begun the process of merging XSLTC into Xalan. XSLTC provides a compiler for compiling stylesheets into translets, and a streamlined runtime environment for using translets to transform XML input. In the near term, XSLTC will appear in a separate JAR file (xsltc.jar) with its own API and command-line utilities. You can already use the same JAXP interfaces to perform transformations with the Xalan transformer and with translets. Over time, we plan to merge the two codebases. See XSLTC Design Documents.
Since this is the first release of XSLTC on Apache (xml.apache.org), changes are relative to Preview 5 of XSLTC posted on www.sun.com/xml/developers.
- Simplified stylesheets are now implemented.
- Base package name has changed from
com.sun.xslt
toorg.apache.xalan.xsltc
- You no longer have to get the BCEL.jar file; it is included in the distribution.
- The Project X parser components and APIs have all been replaced with JAXP equivalents. Consequently, you may deploy XSLTC with JAXP-conformant parsers, such as Xerces or Crimson.
- Previously undocumented feature: -x. You can use the -x option on the java command line when you compile translets or run them to get more detailed information on errors.
- Addition of -s to DefaultRun - a new -s option has been added to the DefaultRun class for use with test auotmation. When you use the option, it prevents System.exit() from being called when and exception is encountered.


RecordTabHandle handles all user inputs and configures the RecordingConfiguration used to record point cloud files. If requested by the user, the RecordTabHandler fires the startWriting and stopWriting signals providing the RecordingConfiguration.
More...
#include <RecordTabHandler.h>
|
|
boost::signal< void(bool)> | colorConfigurationChanged |
| | The color configuration changed signal: color is noew enabled or not.
|
| |
|
boost::signal< void(bool, SharedRecordingConfiguration)> | startWriting |
| | The start writing signal.
|
| |
|
boost::signal< void(bool, SharedRecordingConfiguration)> | stopWriting |
| | The stop writing signal.
|
| |
|
| static LRESULT CALLBACK | MessageRouter (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| | Message router. More...
|
| |
|
HWND | m_hWnd |
| | Handle of the window.
|
| |
RecordTabHandle handles all user inputs and configures the RecordingConfiguration used to record point cloud files. If requested by the user, the RecordTabHandler fires the startWriting and stopWriting signals providing the RecordingConfiguration.
| SharedRecordingConfiguration RecordTabHandler::getRecordConfiguration |
( |
| ) |
|
Getter for the record configuration.
- Returns
- The record configuration.
| bool RecordTabHandler::isColorEnabled |
( |
| ) |
|
Queries if a color recording is enabled.
- Returns
- true if a color is enabled, false if not.
| bool RecordTabHandler::isRecording |
( |
| ) |
|
Query if the RecordTab is currently recording.
- Returns
- true if recording, false if not.
| void RecordTabHandler::recordConfigurationStatusChanged |
( |
RecordCloudType |
type, |
|
|
bool |
newState |
|
) |
| |
Record configuration status changed.
- Parameters
-
| type | The type of the record configuration which has changed. |
| newState | true if the configuration is now enabled, otherwise it is disabled. |
| void RecordTabHandler::recordPathChanged |
( |
RecordCloudType |
type | ) |
|
Callback: Record path has changed.
- Parameters
-
| type | The type of the Cloud which path has changed. |
| void RecordTabHandler::setSharedRecordingConfiguration |
( |
SharedRecordingConfiguration |
recordingConfiguration | ) |
|
Sets shared recording configuration.
- Parameters
-
| recordingConfiguration | The recording configuration. |
| void RecordTabHandler::updateWriterStatus |
( |
RecordCloudType |
type, |
|
|
std::wstring |
status |
|
) |
| |
Updates the writer status with the provided status.
- Parameters
-
| type | The type of the writer whose status has changed. |
| status | The new status. |
The documentation for this class was generated from the following files:
- C:/Users/Martin/Documents/idp-kinecthdfacegrabber/RecordTabHandler.h
- C:/Users/Martin/Documents/idp-kinecthdfacegrabber/RecordTabHandler.cpp


class Struct
A Struct is a convenient way to bundle a number of attributes together, using accessor methods, without having to write an explicit class.
The Struct class generates new subclasses that hold a set of members and their values. For each member a reader and writer method is created similar to Module#attr_accessor.
Customer = Struct.new(:name, :address) do def greeting "Hello #{name}!" end end dave = Customer.new("Dave", "123 Main") dave.name #=> "Dave" dave.greeting #=> "Hello Dave!"
See ::new for further examples of creating struct subclasses and instances.
In the method descriptions that follow, a “member” parameter refers to a
struct member which is either a quoted string
("name"
) or a Symbol
(:name
).
Constants
- Group
-
Group is a Struct that is only available when compiled with
HAVE_GETGRENT
.The struct contains the following members:
- name
-
contains the name of the group as a String.
- passwd
-
contains the encrypted password as a String. An 'x' is returned if password access to the group is not available; an empty string is returned if no password is needed to obtain membership of the group.
Must be compiled with
HAVE_STRUCT_GROUP_GR_PASSWD
. - gid
-
contains the group's numeric ID as an integer.
- mem
-
is an Array of Strings containing the short login names of the members of the group.
- Passwd
-
Passwd is a Struct that contains the following members:
- name
-
contains the short login name of the user as a String.
- passwd
-
contains the encrypted password of the user as a String. an 'x' is returned if shadow passwords are in use. An '*' is returned if the user cannot log in using a password.
- uid
-
contains the integer user ID (uid) of the user.
- gid
-
contains the integer group ID (gid) of the user's primary group.
- dir
-
contains the path to the home directory of the user as a String.
- shell
-
contains the path to the login shell of the user as a String.
The following members below are optional, and must be compiled with special flags:¶ ↑
- gecos
-
contains a longer String description of the user, such as a full name. Some Unix systems provide structured information in the gecos field, but this is system-dependent. must be compiled with
HAVE_STRUCT_PASSWD_PW_GECOS
- change
-
password change time(integer) must be compiled with
HAVE_STRUCT_PASSWD_PW_CHANGE
- quota
-
quota value(integer) must be compiled with
HAVE_STRUCT_PASSWD_PW_QUOTA
- age
-
password age(integer) must be compiled with
HAVE_STRUCT_PASSWD_PW_AGE
- class
-
user access class(string) must be compiled with
HAVE_STRUCT_PASSWD_PW_CLASS
- comment
-
comment(string) must be compiled with
HAVE_STRUCT_PASSWD_PW_COMMENT
- expire
-
account expiration time(integer) must be compiled with
HAVE_STRUCT_PASSWD_PW_EXPIRE
- Tms
Public Class Methods
The first two forms are used to create a new Struct subclass class_name
that can
contain a value for each member_name
. This subclass can be
used to create instances of the structure like any other Class.
If the class_name
is omitted an anonymous structure class will
be created. Otherwise, the name of this struct will appear as a constant
in class Struct, so it must be unique for all
Structs in the system and must start with a capital letter. Assigning a
structure class to a constant also gives the class the name of the
constant.
# Create a structure with a name under Struct Struct.new("Customer", :name, :address) #=> Struct::Customer Struct::Customer.new("Dave", "123 Main") #=> #<struct Struct::Customer name="Dave", address="123 Main"> # Create a structure named by its constant Customer = Struct.new(:name, :address) #=> Customer Customer.new("Dave", "123 Main") #=> #<struct Customer name="Dave", address="123 Main">
If a block is given it will be evaluated in the context of
StructClass
, passing the created class as a parameter:
Customer = Struct.new(:name, :address) do def greeting "Hello #{name}!" end end Customer.new("Dave", "123 Main").greeting #=> "Hello Dave!"
This is the recommended way to customize a struct. Subclassing an anonymous struct creates an extra anonymous class that will never be used.
The last two forms create a new instance of a struct subclass. The number
of value
parameters must be less than or equal to the number
of attributes defined for the structure. Unset parameters default to
nil
. Passing more parameters than number of attributes will
raise an ArgumentError.
Customer = Struct.new(:name, :address) Customer.new("Dave", "123 Main") #=> #<struct Customer name="Dave", address="123 Main"> Customer["Dave"] #=> #<struct Customer name="Dave", address=nil>
static VALUE rb_struct_s_def(int argc, VALUE *argv, VALUE klass) { VALUE name, rest; long i; VALUE st; st_table *tbl; rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS); name = argv[0]; if (SYMBOL_P(name)) { name = Qnil; } else { --argc; ++argv; } rest = rb_ident_hash_new(); RBASIC_CLEAR_CLASS(rest); tbl = RHASH_TBL(rest); for (i=0; i<argc; i++) { VALUE mem = rb_to_symbol(argv[i]); if (st_insert(tbl, mem, Qtrue)) { rb_raise(rb_eArgError, "duplicate member: %"PRIsVALUE, mem); } } rest = rb_hash_keys(rest); st_clear(tbl); RBASIC_CLEAR_CLASS(rest); OBJ_FREEZE_RAW(rest); if (NIL_P(name)) { st = anonymous_struct(klass); } else { st = new_struct(name, klass); } setup_struct(st, rest); if (rb_block_given_p()) { rb_mod_module_eval(0, 0, st); } return st; }
Public Instance Methods
Equality—Returns true
if other
has the same
struct subclass and has equal member values (according to Object#==).
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joejr = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) jane = Customer.new("Jane Doe", "456 Elm, Anytown NC", 12345) joe == joejr #=> true joe == jane #=> false
static VALUE rb_struct_equal(VALUE s, VALUE s2) { if (s == s2) return Qtrue; if (!RB_TYPE_P(s2, T_STRUCT)) return Qfalse; if (rb_obj_class(s) != rb_obj_class(s2)) return Qfalse; if (RSTRUCT_LEN(s) != RSTRUCT_LEN(s2)) { rb_bug("inconsistent struct"); /* should never happen */ } return rb_exec_recursive_paired(recursive_equal, s, s2, s2); }
Attribute Reference—Returns the value of the given struct
member
or the member at the given index
. Raises
NameError if the member
does not
exist and IndexError if the
index
is out of range.
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe["name"] #=> "Joe Smith" joe[:name] #=> "Joe Smith" joe[0] #=> "Joe Smith"
VALUE rb_struct_aref(VALUE s, VALUE idx) { int i = rb_struct_pos(s, &idx); if (i < 0) invalid_struct_pos(s, idx); return RSTRUCT_GET(s, i); }
Attribute Assignment—Sets the value of the given struct member
or the member at the given index
. Raises NameError if the member
does not
exist and IndexError if the
index
is out of range.
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe["name"] = "Luke" joe[:zip] = "90210" joe.name #=> "Luke" joe.zip #=> "90210"
VALUE rb_struct_aset(VALUE s, VALUE idx, VALUE val) { int i = rb_struct_pos(s, &idx); if (i < 0) invalid_struct_pos(s, idx); rb_struct_modify(s); RSTRUCT_SET(s, i, val); return val; }
Returns a hash, that will be turned into a JSON object and represent this object.
# File ext/json/lib/json/add/struct.rb, line 16 def as_json(*) klass = self.class.name klass.to_s.empty? and raise JSON::JSONError, "Only named structs are supported!" { JSON.create_id => klass, 'v' => values, } end
Extracts the nested value specified by the sequence of key
objects by calling dig
at each step, returning
nil
if any intermediate step is nil
.
Foo = Struct.new(:a) f = Foo.new(Foo.new({b: [1, 2, 3]})) f.dig(:a, :a, :b, 0) # => 1 f.dig(:b, 0) # => nil f.dig(:a, :a, :b, :c) # TypeError: no implicit conversion of Symbol into Integer
static VALUE rb_struct_dig(int argc, VALUE *argv, VALUE self) { rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS); self = rb_struct_lookup(self, *argv); if (!--argc) return self; ++argv; return rb_obj_dig(argc, argv, self, Qnil); }
Yields the value of each struct member in order. If no block is given an enumerator is returned.
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.each {|x| puts(x) }
Produces:
Joe Smith 123 Maple, Anytown NC 12345
static VALUE rb_struct_each(VALUE s) { long i; RETURN_SIZED_ENUMERATOR(s, 0, 0, struct_enum_size); for (i=0; i<RSTRUCT_LEN(s); i++) { rb_yield(RSTRUCT_GET(s, i)); } return s; }
Yields the name and value of each struct member in order. If no block is given an enumerator is returned.
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.each_pair {|name, value| puts("#{name} => #{value}") }
Produces:
name => Joe Smith address => 123 Maple, Anytown NC zip => 12345
static VALUE rb_struct_each_pair(VALUE s) { VALUE members; long i; RETURN_SIZED_ENUMERATOR(s, 0, 0, struct_enum_size); members = rb_struct_members(s); if (rb_block_arity() > 1) { for (i=0; i<RSTRUCT_LEN(s); i++) { VALUE key = rb_ary_entry(members, i); VALUE value = RSTRUCT_GET(s, i); rb_yield_values(2, key, value); } } else { for (i=0; i<RSTRUCT_LEN(s); i++) { VALUE key = rb_ary_entry(members, i); VALUE value = RSTRUCT_GET(s, i); rb_yield(rb_assoc_new(key, value)); } } return s; }
Hash equality—other
and
struct
refer to the same hash key if they have the same struct
subclass and have equal member values (according to Object#eql?).
static VALUE rb_struct_eql(VALUE s, VALUE s2) { if (s == s2) return Qtrue; if (!RB_TYPE_P(s2, T_STRUCT)) return Qfalse; if (rb_obj_class(s) != rb_obj_class(s2)) return Qfalse; if (RSTRUCT_LEN(s) != RSTRUCT_LEN(s2)) { rb_bug("inconsistent struct"); /* should never happen */ } return rb_exec_recursive_paired(recursive_eql, s, s2, s2); }
Returns a hash value based on this struct's contents.
See also Object#hash.
static VALUE rb_struct_hash(VALUE s) { long i, len; st_index_t h; VALUE n; const VALUE *ptr; h = rb_hash_start(rb_hash(rb_obj_class(s))); ptr = RSTRUCT_CONST_PTR(s); len = RSTRUCT_LEN(s); for (i = 0; i < len; i++) { n = rb_hash(ptr[i]); h = rb_hash_uint(h, NUM2LONG(n)); } h = rb_hash_end(h); return INT2FIX(h); }
Returns a description of this struct as a string.
static VALUE rb_struct_inspect(VALUE s) { return rb_exec_recursive(inspect_struct, s, 0); }
Returns the number of struct members.
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.length #=> 3
VALUE rb_struct_size(VALUE s) { return LONG2FIX(RSTRUCT_LEN(s)); }
Returns the struct members as an array of symbols:
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.members #=> [:name, :address, :zip]
static VALUE rb_struct_members_m(VALUE obj) { return rb_struct_s_members_m(rb_obj_class(obj)); }
Yields each member value from the struct to the block and returns an Array
containing the member values from the struct
for which the
given block returns a true value (equivalent to Enumerable#select).
Lots = Struct.new(:a, :b, :c, :d, :e, :f) l = Lots.new(11, 22, 33, 44, 55, 66) l.select {|v| v.even? } #=> [22, 44, 66]
static VALUE rb_struct_select(int argc, VALUE *argv, VALUE s) { VALUE result; long i; rb_check_arity(argc, 0, 0); RETURN_SIZED_ENUMERATOR(s, 0, 0, struct_enum_size); result = rb_ary_new(); for (i = 0; i < RSTRUCT_LEN(s); i++) { if (RTEST(rb_yield(RSTRUCT_GET(s, i)))) { rb_ary_push(result, RSTRUCT_GET(s, i)); } } return result; }
Returns the number of struct members.
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.length #=> 3
VALUE rb_struct_size(VALUE s) { return LONG2FIX(RSTRUCT_LEN(s)); }
Returns the values for this struct as an Array.
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.to_a[1] #=> "123 Maple, Anytown NC"
static VALUE rb_struct_to_a(VALUE s) { return rb_ary_new4(RSTRUCT_LEN(s), RSTRUCT_CONST_PTR(s)); }
Returns a Hash containing the names and values for the struct's members.
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.to_h[:address] #=> "123 Maple, Anytown NC"
static VALUE rb_struct_to_h(VALUE s) { VALUE h = rb_hash_new(); VALUE members = rb_struct_members(s); long i; for (i=0; i<RSTRUCT_LEN(s); i++) { rb_hash_aset(h, rb_ary_entry(members, i), RSTRUCT_GET(s, i)); } return h; }
Returns the values for this struct as an Array.
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.to_a[1] #=> "123 Maple, Anytown NC"
static VALUE rb_struct_to_a(VALUE s) { return rb_ary_new4(RSTRUCT_LEN(s), RSTRUCT_CONST_PTR(s)); }
Returns the struct member values for each selector
as an
Array. A selector
may be either an Integer offset or a Range
of offsets (as in Array#values_at).
Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.values_at(0, 2) #=> ["Joe Smith", 12345]
static VALUE rb_struct_values_at(int argc, VALUE *argv, VALUE s) { return rb_get_values_at(s, RSTRUCT_LEN(s), argc, argv, struct_entry); }


Map data is from OpenStreetMap© contributors, CC-BY-SA.
Imagery© Mapbox
Powered by Leaflet.js
API Powered by Walling Info Systems
Built by the Code For Greenville Brigade: Github
Contact Us!
Close
Current Route Schedule:


Blenderのアドオンです。画像から3Dモデルを作ります。
Blender addon to create 3D object from 2D image.
使い方 / How to use
リンク / Link
License
Copyright 2018 Fuji Sunflower
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
http://www.apache.org/licenses/LICENSE-2.0
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.