Re: Examples
| From: | Hojtsy Gabor | Date: | Tue, 16 Oct 2001 10:24:45 +0000 |
| Subject: | Re: Examples | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969338014@lists.php.net to get a copy of this message | ||
> > I want to add more examples into the documentation. Is there any
> tag for
> > output, or would it be possible to create/define a new tag?!
> >
> > like:
> >
> > <example>echo "Hello World"</example>
> > <output>Hello World</output>
>
> Please look in the source and compare it with a rendered version.
> There is no output element defined in DocBook. If you want create or
> define a new tag, you should also modify DocBook itself.
As of XML, we can define tags, using namespaces, but I don't
know how DSSSL can deal with namespaces, perpaphs it can't.
I thought about adding a namespace to phpdoc, especially
to add that see also tag I would like to see in our docs,
but that was no more than just an idea, and I never looked for
the exact methods of how to make our DSSSL and XSLT style
sheets recognize those tags. I can work with XSLT and namespaces
with my own XML documents, but how this can be done with DSSSL,
I don't know currently.
Anyway, the tag we use to present long program outputs, is
the <programlisting> tag, as I know.
Goba