[ http://issues.apache.org/jira/browse/XALANJ-1526?page=history ]
Christine Li updated XALANJ-1526:
---------------------------------
Assign To: (was: Xalan Developers Mailing List)
Description:
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>
was:
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>
Environment:
Operating System: Windows NT/2K
Platform: PC
was:
Operating System: Windows NT/2K
Platform: PC
Xalan info: [PatchAvailable]
Bugzilla Id: (was: 19915)
> 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
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]