good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
XML::LibXSLT generates invalid XHTMLby Ovid (Cardinal) |
on Jul 18, 2005 at 21:51 UTC ( [id://475895]=perlquestion: print w/replies, xml ) | Need Help?? |
Ovid has asked for the wisdom of the Perl Monks concerning the following question: In trying to test some XSLT code I've been working on, I'm trying to produce valid XHTML and use Test::XML to verify the results. Unfortunately, XML::LibXSLT appears to be generating an unclosed meta tag for the HTML content type. Even if I include my own meta tag, it's removing mine and substituting the invalid one. As a workaround, I've stripped the meta tag from the resulting HTML and used is_xml() in my test, but I'd much rather have my code produce a valid meta tag. A minimal test case is below with my output in the __DATA__ section. Does anyone get valid XHTML results? If so, I'm running this on OS X. xslt-config returns 1.1.11.
Cheers, New address of my CGI Course.
Back to
Seekers of Perl Wisdom
|
|