You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/07/25 22:00:19 UTC
DO NOT REPLY [Bug 21894] New: -
ignoring the elements in the xml when xsltc does the transform..
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21894
ignoring the elements in the xml when xsltc does the transform..
Summary: ignoring the elements in the xml when xsltc does the
transform..
Product: XalanJ2
Version: 2.5Dx
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: shaan@wagerworks.com
CC: shaan@wagerworks.com
i have xml, xsl file and i use xalan 2.5.1 to do the transform. when i do the
transform using org.apache.xalan.xsltc.cmdline.Transform some elements are
ignored. here is the piece of code.
xsl is
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:java="http://xml.apache.org/xslt/java"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="no" method="xml" omit-xml-declaration="yes"/>
<xsl:template match="game">
<CARDSTATE>
<xsl:message>
<xsl:value-of select="symbols/H3A_SP"/>
</xsl:message>
</CARDSTATE>
</xsl:template>
<xsl:template match="*|@*|text()">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
xml is
<?xml version="1.0" encoding="UTF-8"?>
<result>
<transaction>
<outcome>
<signed>
<digested>
<game>
<wagers/>
<symbols>
<digest/>
<username/>
<clickcount/>
<credits/>
<txnid/>
<balance/>
<settled/>
<_base/>
<_addl/>
<withdrawn/>
<vig/>
<pending/>
<payout/>
<signature/>
<key/>
<casinoid/>
<modelid/>
<denomid/>
<playerid/>
<sessionid/>
<ringotxn/>
<time/>
<event/>
<STATE/>
<FORMULA/>
<settled/>
<pending/>
<payout/>
<END/>
<SIDE_ONLY/>
<D4_BJ/>
<GAME_OVER/>
<PLAYER1A_RES/>
<PLAYER1B_RES/>
<PLAYER2A_RES/>
<PLAYER2B_RES/>
<PLAYER3A_RES/>
<PLAYER3B_RES/>
<PLAYER1A_P/>
<PLAYER1B_P/>
<PLAYER2A_P/>
<PLAYER2B_P/>
<PLAYER3A_P/>
<PLAYER3B_P/>
<PAY/>
<PLAYER1A_SIDE/>
<PLAYER2A_SIDE/>
<PLAYER3A_SIDE/>
<PLAYER1A_SIDEP/>
<PLAYER2A_SIDEP/>
<PLAYER3A_SIDEP/>
<PLAYER1A_DDP/>
<PLAYER1B_DDP/>
<PLAYER2A_DDP/>
<PLAYER2B_DDP/>
<PLAYER3A_DDP/>
<PLAYER3B_DDP/>
<PLAYER1A_INSP/>
<PLAYER2A_INSP/>
<PLAYER3A_INSP/>
<PLAYER1A_W/>
<PLAYER2A_W/>
<PLAYER3A_W/>
<PLAYER1A_SW/>
<PLAYER2A_SW/>
<PLAYER3A_SW/>
<PLAYER1B_W/>
<PLAYER2B_W/>
<PLAYER3B_W/>
<PLAYER1A_DW/>
<PLAYER1B_DW/>
<PLAYER2A_DW/>
<PLAYER2B_DW/>
<PLAYER3A_DW/>
<PLAYER3B_DW/>
<PLAYER1A_IW/>
<PLAYER2A_IW/>
<PLAYER3A_IW/>
<ACTION/>
<PLAYER1A_WINS/>
<PLAYER2A_WINS/>
<PLAYER3A_WINS/>
<PLAYER1A_DONE/>
<PLAYER1B_DONE/>
<PLAYER2A_DONE/>
<PLAYER2B_DONE/>
<PLAYER3A_DONE/>
<PLAYER3B_DONE/>
<PLAYER1A/>
<PLAYER1B/>
<PLAYER2A/>
<PLAYER2B/>
<PLAYER3A/>
<PLAYER3B/>
<PLAYER1A_DD/>
<PLAYER1B_DD/>
<PLAYER2A_DD/>
<PLAYER2B_DD/>
<PLAYER3A_DD/>
<PLAYER3B_DD/>
<PLAYER1A_I/>
<PLAYER2A_I/>
<PLAYER3A_I/>
<PLAYER1A_S/>
<PLAYER2A_S/>
<PLAYER3A_S/>
<RAW_RNG/>
<END/>
<BASE_GAME/>
<GAME_OVER/>
<D4_CNT/>
<PLAYER1A_PS_AVL/>
<PLAYER2A_SP_AVL/>
<PLAYER3A_SP_AVL/>
<PLAYER1A_DD_AVL/>
<PLAYER2A_DD_AVL/>
<PLAYER3A_DD_AVL/>
<PLAYER1A_PLAYERIT_AVL/>
<PLAYER2A_PLAYERIT_AVL/>
<PLAYER3A_PLAYERIT_AVL/>
<PLAYER1B_PLAYERIT_AVL/>
<PLAYER2B_PLAYERIT_AVL/>
<PLAYER3B_PLAYERIT_AVL/>
<D4/>
<D41/>
<PLAYER1A_ON/>
<PLAYER2A_ON/>
<PLAYER3A_ON/>
<PLAYER1B_ON/>
<PLAYER2B_ON/>
<PLAYER3B_ON/>
<PLAYER1A_S_ON/>
<PLAYER2A_S_ON/>
<PLAYER3A_S_ON/>
<H1A_SP/>
<H3A_SP>1</H3A_SP>
<H2A_SP/>
</symbols>
</game>
</digested>
</signed>
</outcome>
</transaction>
</result>
commands for compile and transform as follows..
java -cp
${CP}:/home/shaan/BITKEEPER/release_1_7_4/repo_game/lib/xsltc.jar:/home/shaan/BITKEEPER/release_1_7_4/repo_game/lib/xalan.jar
org.apache.xalan.xsltc.cmdline.Compile -j transform.jar FAM-0035-FLSH-COUT.xsl
java -cp
/home/shaan/BITKEEPER/release_1_7_4/repo_game/lib/xsltc.jar:/home/shaan/BITKEEPER/release_1_7_4/repo_game/lib/xalan.jar:/home/shaan/BITKEEPER/release_1_7_4/repo_game/game/multihandbj/transform.jar
org.apache.xalan.xsltc.cmdline.Transform -j
/home/shaan/BITKEEPER/release_1_7_4/repo_game/game/multihandbj/transform.jar
/home/shaan/BITKEEPER/release_1_7_4/repo_game/game/multihandbj/state.xml
FAM_0035_FLSH_COUT
in the result H3A_SP value should display. but it's not. if i change the
position of H3A_SP in the xml then it find the value. for exampls if i put
H3A_SP before H1A_SP then works fine. I put the 2.4.1 xsltc.jar in the classpath
then no problem occurs. When i put back the 2.5.1 xsltc.jar then it couldn't
find the value. if i remove one element above H3A_SP then works fine. i don't
know what is the position do with value.