Details
-
Bug
-
Status: Resolved
-
Resolution: Cannot Reproduce
-
2.2.x
-
None
-
None
-
Operating System: Windows NT/2K
Platform: PC
-
5336
Description
jdk1.2.2_8
win2ksp2
xalan2.2_d14
xerces1.4.4
Error description:
C:!work\Serega\SC\1>java org.apache.xalan.xslt.Process -in member.xml -xsl my.x
sl -out my.html -HTML
javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml
.transform.TransformerFactory cannot be found
at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory
.java:145)
at org.apache.xalan.xslt.Process.main(Process.java, Compiled Code)
Xalan: was not successful.
batch file:
set CLASSPATH=%CLASSPATH%;xalan.jar;xerces.jar;xml-apis.jar;bsf.jar;
java org.apache.xalan.xslt.Process -in member.xml -xsl my.xsl -out my.html -HTML
member.xml:
<?xml version="1.0" encoding="utf-8"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
<MemberArea>
<Module name="site">
<TitlePage>title</TitlePage>
</Module>
</MemberArea>
</xsp:page>
XSL file:
<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:template match="MemberArea">
<page>
<xsl:variable name="para-font-size">12pt</xsl:variable>
Value: <xsl:value-of select="$para-font-size"/>
<xsl:for-each select="Module">
<b><xsl:value-of select="@name"/></b>
<xsl:apply-templates/>
</xsl:for-each>
</page>
</xsl:template>
<xsl:template match="TitlePage">
<title>
<xsl:value-of select="."/>
</title>
</xsl:template>
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
set output:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\anty\Application Data
CLASSPATH=c:\jdk1.2.2\lib\tools.jar;.;
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=DESIGN
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\
JAVA_HOME=c:\jdk1.2.2
LOGONSERVER=
SRV3
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\Program Files\Far;c:\jdk1.2.2\bin\;C:\Oracle\Ora81
\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 4 Stepping 2, AuthenticAMD
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0402
ProgramFiles=C:\Program Files
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\anty\LOCALS~1\Temp
TMP=C:\DOCUME~1\anty\LOCALS~1\Temp
USERDNSDOMAIN=tres.local
USERDOMAIN=TRES
USERNAME=anty
USERPROFILE=C:\Documents and Settings\anty
windir=C:\WINNT