OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Potential bug in Oracle XML Parser 2.0.7.0.0 (C) xslprocess() xslprocessex() functions



I am developing on a Solaris platform using  Oracle XML Parser 2.0.7.0.0 (C)

I have found that xslprocess() and xslprocessex() functions fail (core dump)
when processing an XML document with attribute values defaulted by
xmlparse() according to the DTD.

It works fine when the document supplies values for those same attributes.

<?xml version='1.0'?>
<!-- xslprocess() FAILS with this document -->
<!DOCTYPE Strings [
<!ELEMENT Strings (String*)>
<!ELEMENT String  (#PCDATA)>
<!ATTLIST String  length CDATA '10'
                  filler CDATA #IMPLIED>
]>
<Strings>
	<String>Too short</String>
</Strings>

<?xml version='1.0'?>
<!-- xslprocess() WORKS with this document -->
<!DOCTYPE Strings [
<!ELEMENT Strings (String*)>
<!ELEMENT String  (#PCDATA)>
<!ATTLIST String  length CDATA '10'
                  filler CDATA #IMPLIED>
]>
<Strings>
	<String length='20'>Too short</String>
</Strings>

I have a work around using
xmlparse()->getDocumentElement()->printBuffer()->xmlparsebuf() but it is not
ideal.

Has anyone experienced this problem and is there a fix?

Regards,
Craig Patterson
mailto:craig.patterson@police.wa.gov.au


************************************************************************************************
This email message and any attached files may contain information that is 
confidential and subject of legal privilege intended only for use by the individual 
or entity to whom they are addressed. If you are not the intended recipient or the 
person responsible for delivering the message to the intended recipient be 
advised that you have received this message in error and that any use, copying, 
circulation, forwarding, printing or publication of this message or attached files is 
strictly forbidden, as is the disclosure of the information contained therein.
If you have received this message in error, please notify the sender immediately 
and delete it from your Inbox.
************************************************************************************************