You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by g4 <ja...@root10.net> on 2003/08/05 13:18:20 UTC

New content type

Hi list,

I'd like to be able to add a couple of new elements to the existing 
XML, so for example add a tagline element:

<body>
     <section>
       <title>Title......</title>

       <tagline>a tag line.....</tagline>

	...

     </section>
   </body>

I've tried to follow the notes on this:

http://xml.apache.org/forrest/your-project.html#adding_new_content_type

but I'm still unsure, many thanks in advance.

Jason Lane


Re: New content type + Version type

Posted by Jeff Turner <je...@apache.org>.
On Tue, Aug 05, 2003 at 02:26:59PM +0100, g4 wrote:
> Sorry Jeff, one other thing, are we using v12.mod yet? Should I just  
> use v11?

Depends on what your site's docs are using.  Have a look at your XML
content files, at the top.  The DOCTYPE declaration specifies the
version.  1.2 is currently preferred and is the default.

--Jeff

New content type + Version type

Posted by g4 <ja...@root10.net>.
Sorry Jeff, one other thing, are we using v12.mod yet? Should I just  
use v11?

Thanks.

On Tuesday, Aug 5, 2003, at 13:46 Europe/London, Jeff Turner wrote:

> On Tue, Aug 05, 2003 at 12:18:20PM +0100, g4 wrote:
>> Hi list,
>>
>> I'd like to be able to add a couple of new elements to the existing
>> XML, so for example add a tagline element:
>>
>> <body>
>>     <section>
>>       <title>Title......</title>
>>
>>       <tagline>a tag line.....</tagline>
>>
>> 	...
>>
>>     </section>
>>   </body>
>>
>> I've tried to follow the notes on this:
>>
>> http://xml.apache.org/forrest/your- 
>> project.html#adding_new_content_type
>
> Sorry, those docs apply to 0.4 and are out of date for CVS, which I
> assume you're using?  The updated documentation for DTD modifications  
> is
> available at:
>
> http://forrestbot.cocoondev.org/sites/xml-forrest/validation.html
>
> The DTD has extension points, where new tags can be plugged in.  Your
> 'tagline' tag seems to be on the same level as 'p', 'source' and other
> block-level elements.  In the DTD you'll find this:
>
> <!-- ===============================================================  
> -->
> <!-- Blocks definitions -->
> <!-- ===============================================================  
> -->
> <!ENTITY % local.blocks "">
> <!ENTITY % blocks  
> "%paragraphs;|%tables;|%lists;|%special-blocks;%local.blocks;">
>
> So you can override the 'local.blocks' entity as described in the
> documentation, and define it as '|tagline'.
>
>
> --Jeff
>
>
>> but I'm still unsure, many thanks in advance.
>>
>> Jason Lane
>>
>
>
Jason Lane


Re: New content type

Posted by g4 <ja...@root10.net>.
On Tuesday, Aug 5, 2003, at 13:46 Europe/London, Jeff Turner wrote:

> On Tue, Aug 05, 2003 at 12:18:20PM +0100, g4 wrote:
>> Hi list,
>>
>> I'd like to be able to add a couple of new elements to the existing
>> XML, so for example add a tagline element:
>>
>> <body>
>>     <section>
>>       <title>Title......</title>
>>
>>       <tagline>a tag line.....</tagline>
>>
>> 	...
>>
>>     </section>
>>   </body>
>>
>> I've tried to follow the notes on this:
>>
>> http://xml.apache.org/forrest/your- 
>> project.html#adding_new_content_type
>
> Sorry, those docs apply to 0.4
> and are out of date for CVS, which I
> assume you're using?

Yes

>   The updated documentation for DTD modifications is
> available at:
>
> http://forrestbot.cocoondev.org/sites/xml-forrest/validation.html
>
> The DTD has extension points, where new tags can be plugged in.  Your
> 'tagline' tag seems to be on the same level as 'p', 'source' and other
> block-level elements.  In the DTD you'll find this:
>
> <!-- ===============================================================  
> -->
> <!-- Blocks definitions -->
> <!-- ===============================================================  
> -->
> <!ENTITY % local.blocks "">
> <!ENTITY % blocks  
> "%paragraphs;|%tables;|%lists;|%special-blocks;%local.blocks;">
>
> So you can override the 'local.blocks' entity as described in the
> documentation, and define it as '|tagline'.

Great, thanks Jeff ;)

>
>
> --Jeff
>
>
>> but I'm still unsure, many thanks in advance.
>>
>> Jason Lane
>>
>
>
Jason Lane

Developer
Root10 developments


Re: New content type

Posted by Jeff Turner <je...@apache.org>.
On Tue, Aug 05, 2003 at 12:18:20PM +0100, g4 wrote:
> Hi list,
> 
> I'd like to be able to add a couple of new elements to the existing 
> XML, so for example add a tagline element:
> 
> <body>
>     <section>
>       <title>Title......</title>
> 
>       <tagline>a tag line.....</tagline>
> 
> 	...
> 
>     </section>
>   </body>
> 
> I've tried to follow the notes on this:
> 
> http://xml.apache.org/forrest/your-project.html#adding_new_content_type

Sorry, those docs apply to 0.4 and are out of date for CVS, which I
assume you're using?  The updated documentation for DTD modifications is
available at:

http://forrestbot.cocoondev.org/sites/xml-forrest/validation.html

The DTD has extension points, where new tags can be plugged in.  Your
'tagline' tag seems to be on the same level as 'p', 'source' and other
block-level elements.  In the DTD you'll find this:

<!-- =============================================================== -->
<!-- Blocks definitions -->
<!-- =============================================================== -->
<!ENTITY % local.blocks "">
<!ENTITY % blocks "%paragraphs;|%tables;|%lists;|%special-blocks;%local.blocks;">

So you can override the 'local.blocks' entity as described in the
documentation, and define it as '|tagline'.


--Jeff


> but I'm still unsure, many thanks in advance.
> 
> Jason Lane
>