[ http://issues.apache.org/jira/browse/XALANJ-1526?page=all ]
Brian Minchau closed XALANJ-1526. --------------------------------- Closing this issue. > getAttributes does not work in ElemExtensionCall subtree > -------------------------------------------------------- > > Key: XALANJ-1526 > URL: http://issues.apache.org/jira/browse/XALANJ-1526 > Project: XalanJ2 > Issue Type: Bug > Components: Xalan-extensions > Affects Versions: 2.5Dx > Environment: Operating System: Windows NT/2K > Platform: PC > Reporter: Jean-Christophe Koerber > Fix For: 2.7 > > Attachments: Bug1526ExtensionElement.txt, Bug1526Patch.txt, > Bug1526PatchFinal.txt, TotoExtension.java, TotoMain.java, tototest-in.xml, > tototest.xsl > > > Method (getAttributes()) to get an attribute list from a node belonging to > ElemExtensionCall subtree gives an unexpected error... > public void myElement (XSLProcessorContext context, ElemExtensionCall element) > throws Exception > { > NodeList elementList; > Node node; > int index; > int maxIndex; > NamedNodeMap attributeList; > elementList=element.getChildNodes(); > for (index=0, maxIndex=elementList.getLength(); > index<maxIndex; > index++) > { > node=elementList.item(index); > attributeList=node.getAttributes(); > // ... > } > // ... > } > 14.05.2003 10:02:34: ; SystemID: > file:///D:/Dev/slr2/ide/javax.xml.transform.stream.StreamSource; Line#: 311; > Column#: 25 > javax.xml.transform.TransformerException: Can't find resource for bundle > org.apache.xalan.res.XSLTErrorResources, key ER_FUNCTION_NOT_SUPPORTED > at org.apache.xalan.extensions.ExtensionHandlerJavaClass.processElement > (ExtensionHandlerJavaClass.java:455) > at org.apache.xalan.templates.ElemExtensionCall.execute > (ElemExtensionCall.java:265) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates > (TransformerImpl.java:2336) > at org.apache.xalan.templates.ElemLiteralResult.execute > (ElemLiteralResult.java:696) > at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes > (ElemApplyTemplates.java:425) > at org.apache.xalan.templates.ElemApplyTemplates.execute > (ElemApplyTemplates.java:216) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates > (TransformerImpl.java:2336) > at org.apache.xalan.templates.ElemLiteralResult.execute > (ElemLiteralResult.java:696) > at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes > (ElemApplyTemplates.java:425) > at org.apache.xalan.templates.ElemApplyTemplates.execute > (ElemApplyTemplates.java:216) > // ... > <myExtension:myElement> > <first name="something"> > <second name="something-else" value="myValue"/> > </first> > <myExtension:myElement> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
