On Fri, 7 Dec 2001, Pete Phillips wrote:

> Hi
>
> I use xpathscript in stand alone mode to statically build html files
> from xml.
>
> I wanted to use the entity  ° in the xml source, and have
>
> <!ENTITY % ISOnum PUBLIC
> "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
> "ent/iso-num.ent">
> %ISOnum;
>
> in my DTD.
>
> When I run xpathscript, I get:
>
> =============================================================================
> crusher% /share/store/perl5.005_02/scripts/xpathscript 
>/data/htdocs/Dressings.org/Dressings/chlorhexidine.xml 
>/data2/htdocs/XMLscripts/dressdatacard.xps | 
>/share/store/libiconv-1.6.1/linux-gnu/bin/iconv -f UTF-8 -t ISO-8859-1 > 
>chlorhexidine.html
>
> undefined entity at line 51, column 56, byte 2378:
> </paragraph></frequency-of-change>
> <storage><paragraph>
> Chlorhexitulle should be stored in a cool place below 25&deg;C.
> =======================================================^
> </paragraph></storage><presentation><paragraph>
> Chlorhexitulle is presented individually wrapped in peel pouches,
>  at /share/store/perl5.005_02//lib/site_perl/5.005/i686-linux/XML/Parser.pm line 185
> =============================================================================
>
> I saw a posting from earlier on in the year where someone noted that
> this was possiblt a problem with XML::Parser 2.30, and thet 2.29
> worked, but this hasn't worked for me.
>
> Any thoughts ?

It's probably something to do with not enabling entity resolution. Check
the source code.

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to