This reminds me of a problem I saw in webhelp. I think it was solved by inserting a comment in the script tag. Then the end tag is preserved.
Peter On Jul 23, 2014 7:01 PM, "Peter Fleck" <[email protected]> wrote: > Thanks Stefan, > > When I put something between the ></script> it works, although obviously > it gets copied to each instance. > However at the moment I'm happy to just getting it working. > > Peter > > > On 23/07/2014 20:10, Stefan Knorr wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hi Peter, > > We had a similar problem here, we did not find a solution that fit us > too well (we're using DocBook 4, XHTML 1.1 & Saxon 6 or Xsltproc > [interchangeably]). Xsltproc always just worked, but Saxon was troubling. > > Despite the tone, everything below is iirc, because I explored that > topic a year or so ago. Also, I make the assumption that you are using > XHTML & Saxon, too. Correct me if I am wrong about that. > > | The trouble is that you are generating X[HT]ML, but browsers > | generally think they are being served HTML and you need to convince > | them otherwise. > > * you could just continue to create your XHTML (you do use XHTML, > right?) and make _sure_ your server serves it with the > "application/xhtml+xml" MIME type; caveats: > + not sure how to make that work locally > + you might run into trouble on IE 7 or below (which generally > likes to show source trees, I think) > > * you could switch to HTML 4 or HTML 5 (no X!), in this case, the > DocBook stylesheets should take care of correctly setting the > saxon:output tag > > * if you're using Saxon, take a look at the saxon:output tag and the > HTML mode it supports; caveat: > + finicky, especially when you want to support both Saxon and > another processor > > * the quick (and error-prone) solution would be to add something in > between the start and end tag of the script, such as an XML comment > (NB: you would have to do this for other tags that require such > behaviour, too, e.g. <link>) > > > Ultimately, I too would still be interested in how to properly solve > this... > > > Stefan. > > - -- > SUSE LINUX Products GmbH, Maxfeldstraße 5, D-90409 Nürnberg > Geschäftsführer: Jeff Hawn, Jennifer Guild, Felix Imendörffer > HRB 16746 (Amtsgericht Nürnberg) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.22 (GNU/Linux) > > iF4EAREIAAYFAlPP+ngACgkQ5AP3bIqhlM0bqgEApSiCXu710LPOcDGyEg+2GMSm > ns6WfCOAu1+FDyWwCV8BAKLD23C29yaOXaymwRWNJacqfWX51E440ptgoSTTt15s > =qOgU > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > >
