You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Rafael Valcarcel <va...@caracas.geoquest.slb.com> on 2000/06/14 21:26:50 UTC
Bug Report
Sorry for reporting this bug this way but trying to access the bug
reporting system gives me a forbidden error.
-----
I was doing some testing with the Xalan 1.0.1 and I found a problem while
parsing a xml file that specifies the xsl stylesheet to use thru a
xml-stylesheet processing instruction in the xml file.
The parsing is performed but gives the following error:
processing-instruction name must be a valid NCName: ....
Since the message didn't make sense I took a look to the source code and
found the problem in:
XSLTEngineImpl.java
The line:
diag(XSLMessages.createMessage(XSLTErrorResources.WG_PARSING_AND_PREPARING,
new Object[] {xslURLString}));
is supposed to output a warning message but it gives the error message I
explained before.
The reason is that createMessage prints the message associated to the
WG_PARSING_AND_PREPARING error code (13). The problem here is that
ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME shares the same error code (also
13). In the resource bundle (XSLTErrorResources.java) the warnings are are
at the end of the array (adjusted by summing MAX_CODE). The createMessage
doesn't do that adjustment before getting the actual message so it gets the
wrong message.
The way things are createMessage can not be used to create Warning message
strings since it has no way to say if an error code of xx means
really error xx or warning xx + MAX_CODE.
This is a minor error. I am just ignoring it, but I wanted to report it so
it may be fixed some time in the future.
Rafael.
____________________________________________________________________
Rafael Valcarcel
Schlumberger - GeoQuest / BADEP IT Specialist
Edificio Banaven
entre Av. Ernesto Blohm y la Estancia, Torre B,
Piso 2, Oficinas B-23 y B-24, Urb. Chuao
Caracas , Venezuela.
Interfilial: 93-54400, Office:(58-2)9915311 (ext. 145), Office
Fax: (58-2)959-6252,
Email: valcarcel@caracas.geoquest.slb.com,
Pager Skytel: Operadora: 952-8644 PIN: 5837892
____________________________________________________________________