Serializer Not Producing Result with Doctype
Added by Anonymous over 15 years ago
Legacy ID: #7469834 Legacy Poster: W. Eliot Kimber (drmacro)
Using the S9API I'm constructing a serializer destination like so: Serializer result = new Serializer(); I then run my transformation, which has this output declaration: <xsl:output doctype-public="urn:pubid:foo.com/doctypes/dita/article" doctype-system="article.dtd" /> This certainly works outside of my API use (e.g., running the transform manually), but through API, the result doc does not have DOCTYPE declaration. What configuration or setup magic am I missing? Thanks, Eliot
Replies (4)
Please register to reply
RE: Serializer Not Producing Result with Doctype - Added by Anonymous over 15 years ago
Legacy ID: #7469849 Legacy Poster: Michael Kay (mhkay)
What Saxon version are you using? There have been some bugs concerning the interaction of properties set in the Serializer and properties set via xsl:output. As far as I'm aware these are all fixed in 9.1.0.7.
RE: Serializer Not Producing Result with Doctype - Added by Anonymous over 15 years ago
Legacy ID: #7469856 Legacy Poster: W. Eliot Kimber (drmacro)
I might be using 9.1.0.1 but I can upgrade to 9.1.0.7 and see if the problem persists. Thanks, E.
RE: Serializer Not Producing Result with Doctype - Added by Anonymous over 15 years ago
Legacy ID: #7469899 Legacy Poster: W. Eliot Kimber (drmacro)
Upgrading to 9.1.0.7 fixed the problem. Thanks! Cheers, Eliot
RE: Serializer Not Producing Result with Doctype - Added by Anonymous over 15 years ago
Legacy ID: #7469915 Legacy Poster: Michael Kay (mhkay)
This bug is relevant: https://sourceforge.net/tracker/?func=detail&aid=2025294&group_id=29872&atid=397617 Fixed in 9.1.0.2
Please register to reply