[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] getting xsl to produce ill-formed xml?
is there any way to get an xsl style sheet to produce something that isn't proper xml? i just wrote a xsl style sheet to generate perl code (don't ask), and that needs to have things like '=>' in it (not to mention the comparison operator '<'). i couldn't find any combination of attributes to the xsl:stylesheet element to get xt to do that -- it would always produce '>' instead. if the result-ns is set to html, then the output will convert any < or > in the style sheet to the correct characters. but my generated perl code isn't valid html either (and more importantly, a valid html page isn't valid perl, because of the generate DOCTYPE declaration at the top). so i omitted result-ns and i wrote a perl post-processor (which i guess is appropriate) to convert those ">" strings back to ">". is this something that is basically disallowed (that is, sticking things like unbalanced '<' or '>' in an xsl:text). or would i have to write a result-ns="perl" handler that expands entities but doesn't insert that DOCTYPE? -mda XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|