|
Created an attachment (id=9800)
XSL extension java source file Below is the xsl stylesheet that executes the custom xsl extension
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" exclude-result-prefixes="xps" extension-element- prefixes="xps" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xps="xalan://com.xx.TestExt" xmlns:lxslt="http://xml.apache.org/xslt"> <xsl:template match="/"> <xsl:variable name="lang"> <xps:getAttribute pathDoc="test" attName="keymask"/> </xsl:variable> </xsl:template> </xsl:stylesheet> Created an attachment (id=9801)
java source file used to execute the the transformation Created an attachment (id=9802)
bat file used to execute the java application I try this in 2.4.1 and I get a NullPointerException, but this works fine in
2.3.1 version *** Bug 24220 has been marked as a duplicate of this bug. ***
This problem is reproducable in version 2.6.5 but has been fixed in latest code in repository.
I get the following output when using with latest code. Created TransformerCreated Fragment execute transformer. Extensions created <?xml version="1.0" encoding="UTF-8"?><keymask>This text</keymask> Finsished transformer. <?xml version="1.0" encoding="UTF-8"?> Please extract the latest code and build the binaries. Thanks! Yash says it is resolved in the latest devopment code. We (the Apache developers) tend not to support older versions of code (we only have so much free time to volunteer). So I'm resolving this as was discussed at the bug triage on July 11, 2006.
Would the originator of this issue please verify that this issue is fixed in the 2.7.1 release, by adding a comment to this issue, so that we can close this issue.
A lack of response by February 1, 2008 will be taken as consent that we can close this resolved issue. Regards, Brian Minchau |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Attached is the xsl and java soruce file.