You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Christine Li (JIRA)" <xa...@xml.apache.org> on 2005/03/02 00:17:52 UTC
[jira] Updated: (XALANJ-1526) getAttributes does not work in ElemExtensionCall subtree
[ http://issues.apache.org/jira/browse/XALANJ-1526?page=history ]
Christine Li updated XALANJ-1526:
---------------------------------
Attachment: Bug1526ExtensionElement.txt
This patch only added implementation of getAttributes(), getAttribute(String name) and
getAttributeNS(String namespace, String localName) for ElemLiteralResult. There are quite
number of methods on org.w3c.dom.Node haven't been implemented. I am going to open another
bug report to keep tracking this problem and hopefully those methods will be implemented
in the future.
> getAttributes does not work in ElemExtensionCall subtree
> --------------------------------------------------------
>
> Key: XALANJ-1526
> URL: http://issues.apache.org/jira/browse/XALANJ-1526
> Project: XalanJ2
> Type: Bug
> Components: Xalan-extensions
> Versions: 2.5Dx
> Environment: Operating System: Windows NT/2K
> Platform: PC
> Reporter: Jean-Christophe Koerber
> Assignee: Xalan Developers Mailing List
> Attachments: Bug1526ExtensionElement.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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org