> > I am using Embperl-2.0b8. I am feeding > (X)HTML/Emberl-Code through a XSLT > stylesheet. This works well until I have some forms > in my HTML code and > Embperl mangels for instance <option> tags by adding > a "selected" attribute. > The "selected" is not valid XML so the XSLT parses > complains. I tried > setting the optDisable* flags, but it didn't work. > Looking at the Changes > file this seems to be normal behaviour for some > reason.
This is not really an Embperl problem. Your XML, whether it's straight up XML, XHTML, XSL or whatever must be compliant. Adjusting the processor to accomodate the operator defeats a main objective of the XML recommendation. This should be changed to either: <option selected="1"/> Or: <option> <xsl:attribute name="selected">1</xsl:attribute> </option> > btw: A very similar problem. In some > non-reproducable cases Embperl modified > a URL in a link which contained something like > "http://www.example.org/foo.html?x=y" to > "http://www.example.org/foo.html?x=y&" at which > point the XSLT parser > complained because of the unescaped & in there. Use & instead of just &. When it finds a &, it expects it to be an entity: &somevalue; -Jarrod __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
