Sign In/My Account | View Cart  
advertisement

Article:
 Transforming XML with PHP
Subject: XML and Case Folding
Date: 2003-06-25 10:45:08
From: Joe Japh

The fact that the option Case Folding even exists displays a through misunderstanding about what XML is. I find it really disappointing that this article opens with this "feature", instead of ignoring it, or to mention it as a bug.


I'm a PHP user myself, doing occasional XML transforms with the Sabloton interface. However, there are still some bugs remaining (in both Sablotron 0.97 and the PHP bindings) which can get in the way (e.g. namespaces and xsl:copy-of is mangled).


Admittedly, I haven't used the XML_Transformer until now. Then again, it strikes me as odd why the developers didn't opt for the standardized SAX(2) interface.


Cheers,


Joe.


No Previous Message Previous Message   Next Message Next Message


Titles Only Full Threads Newest First
  • XML and Case Folding
    2003-06-26 06:16:15 Bruno Pedro [Reply]

    I mentioned case-folding mainly for two reasons:


    1 - By default PHP's xml_parse() XML_OPTION_CASE_FOLDING option is enabled.


    (please see http://php.linux.pt/manual/en/ref.xml.php#xml.case-folding)


    2 - By default XML_Transformer's caseFolding option is disabled.


    XML is case sensitive, and XML_Transformer tries to respect it. The 'problem' is in PHP's XML parsing support.


Sponsored By: