> -----Original Message----- > From: Cameron McCormack [mailto:[EMAIL PROTECTED] > Sent: Sunday, 14 May 2006 5:16 PM > To: user@forrest.apache.org > Subject: Re: Own type of documen transformed to document-v20 > > Hi Gav. > > Gav: > > Why do you want to do that, do you need to over-ride or replace > > Document-v20 elements? > > I just want to have some new elements that can be transformed into > document-v20 elements. > > > I think what you could be looking at doing is including document-v20 > > And then adding any specific ones for yourself into your Document-v01 > > (Actually , looking at it this should be Status-v01) > > Do you mean the XSLT or the DTD? > > > What you are missing at this stage is the actual DTD and MOD files > > That contain your definitions. > > > > So, you need to create status-v01.dtd and status-v01.mod. > > > > These need to go in a /resources/schema/ directory. > > > > Take a look at /main/webapp/resources/schema/dtd/v20a/ and look at > > The document-v20.dtd and document-v20.mod as examples, create your > > Own status.dtd and status.mod. > > Do I have to create DTDs for this? I'm not a big fan of them, and I > have no interest in validating. I just want particular files on my site > to be transformed with a different .xsl file than the usual > document2html.xsl.
Ok, will take another look, but initially I assumed you wanted to use DTDs as you declared them in your code, this is why it is failing as It can not find the specified DTD. e.g. <sourcetype name="status-v0.1"> <document-declaration public-id="-//Test//DTD Status Document V0.1//EN" /> </sourcetype> And <!DOCTYPE status SYSTEM "-//Test//DTD Status Document V0.1//EN"> To my thinking, it was probably easier to create the DTD rather than Go around removing all your references to it. You would need to declare your <status></status> element somewhere, Either in a new DTD or add it to v20. I am not an expert in this, just throwing in what bit I know. Not Sure if you can do all you are trying to just with xslt. Gav... > > > Also look in the whiteboard plugins, there are some good examples > > In there. > > Ok I'll take a look there. > > -- > Cameron McCormack ICQ: 26955922 > cam (at) mcc.id.au MSN: cam (at) mcc.id.au > http://mcc.id.au/ JBR: heycam (at) jabber.org > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.392 / Virus Database: 268.5.6/338 - Release Date: 12/05/2006