ndw / xmlcalabash1

XML Calabash, an XProc processor
http://xmlcalabash.com/
108 stars 41 forks source link

Support XHTML5 serialization on p:store #150

Closed josteinaj closed 10 years ago

josteinaj commented 10 years ago

Section 6.1.2 of the XSLT and XQuery Serialization 3.0 spec describes a new attribute on xsl:output called html-version which, if method="xhtml", lets you specify that the output should be serialized according to XHTML5 by setting html-version="5.0".

Could this be exposed on p:store as cx:html-version?

ndw commented 10 years ago

Until such time as the underlying Saxon processor supports html-version, it won't have any effect.

I'll leave this issue open until then and then I'll add something to support it.

ndw commented 10 years ago

I implemented a workaround. When Saxon supports the underlying options, that'll work too.

josteinaj commented 10 years ago

Cool! So how do I use it?

ndw commented 10 years ago

I suppose it would have been nice if I'd included that!

See http://xmlcalabash.com/docs/reference/langext.html#ext.html-serializer