XSLT stylesheets and <description> format
Steve D <[email protected]> Mon, 19 Jan 2004 17:20:07 -0700
| Newsgroups | gmane.comp.web.picfolio.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Peter, Hugo, all--
As I mentioned (not very clearly, maybe) in a previous email, my XSLT
stylesheets for picfolio (blue_peach and chocolate_cream so far) work
correctly with both formats for the description of a directory or an
image in a directory: Hugo's picfolio-metadata editor format:
<description>
This is a description of a directory or an image.
</description>
and Peter's suggested format:
<description>
<para>
This is a description of a directory or an image.
</para>
</description>
The change was actually very simple. I just changed the XSLT
stylesheets, in the place where the description is formatted into one
or more paragraphs (into the <p> element of (x)html), so that the
"node()" expression is used, which selects ANY child nodes of a
<description> element regardless of whether those nodes are simply
text (as the picfolio-metadata editor currently produces) or are
elements themselves (like the <para> element that Peter suggests in
the user's manual). The XSLT stylesheets will now format each child
node of a <description> element, regardless of what TYPE of node it
is, into a separate paragraph in the final XHTML output.
Whenever I make a change to one of the styles I create for picfolio, I
will keep the name and location (the URL) the same of course, in
order for current links to continue to work.
I was working on a new style, starting with the same stylesheets,
until "real life" intervened. Will get back to it soon I think.
Best wishes,
Steve D
New Mexico US
--
----------------------------------------------------------------
Who ever is not a misanthrope at forty can never have
loved mankind. -Nicolas Chamfort
----------------------------------------------------------------