OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Re: Remove DOCTYPE from XML document generated from Docbook?


I'm not clear from your mail which solution you tried.   Your mail makes it 
sound like you tried editing xhtml/docbook.xsl, but your atom.xsl 
customization imports onechunk.xsl.  The first solution of editing the 
original xhtml/docbook.xsl only works if you are importing that file as the 
basis for your customization.  It would generate your output using the 
standard output (-o option) of the XSLT processor.  The second solution of 
using onechunk.xsl is not affected by editing the original xsl:output 
because it doesn't use the standard output of the processor.  You should try 
either solution, not both.

In any case, you should also upgrade from the original 1.71 version of the 
namespaced stylesheets to the latest version.  The 1.71 was experimental, 
and there is no need to use it now.

I was able to change your atom.xsl customization to import version 1.74.0 of 
xhtml/onechunk.xsl, and the output did not include a DOCTYPE.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Matej Cepl" <mcepl@redhat.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, July 14, 2008 9:14 AM
Subject: [docbook-apps] Re: Remove DOCTYPE from XML document generated from 
Docbook?


> On 2008-07-11, 22:52 GMT, Bob Stayton wrote:
>> Ugh.  This is true with Saxon as well.  I had a discussion with
>> Michael Kay about this very problem, and it seems that once
>> those attributes are set, they can't be completely unset if you
>> want no DOCTYPE generated at all.
>
> BTW, I am using xsltproc (will ask Daniel about this; hmm, no
> answer on #xml).
>
>> One solution is to edit the original xhtml/docbook.xsl file that your 
>> file
>> imports to remove those attributes from its xsl:output element.  I hate
>> having to edit the distro files, though, and sometimes you can't.  This
>> should be possible with a customization layer.
>
> I tried that, but somehow it doesn't work. I use your Docbook
> name-aware XSLT stylesheet [1.71.0x (DB5 name-spaced)] and when
> using Docbook http://mcepl.fedorapeople.org/tmp/blog.tdb together
> with http://mcepl.fedorapeople.org/tmp/atom.xsl (and xsltproc
> from libxslt-1.1.24-1.fc10.x86_64 on Fedora/Rawhide) I get
> http://mcepl.fedorapeople.org/tmp/blog.atom
>
> Do you have any idea, why it doesn't work? Do I do something
> wrong?
>
> Best,
>
> Matěj
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]