Well, I finally took the plunge. After 5 years of no personal home page,
and taking care of various old ASP based sites for others, I started work
on a personal site as well as the conversion of an e-store into the realm
of AxKit. (I weened myself onto FreeBSD/Apache/Perl about a year or so ago
after 5+ years on IIS/ASP.) Interesting enough, this also comes at a
period where I'm spending a lot of time converting old crusty html to
validating xhtml/css, so AxKit is fitting in just nicely.

After getting into it, I am as thrilled with AxKit as I though I'd be. So
to Matt, Kip, Jorge, and all the others; many thanks for the great stuff!
It's very liberating to work with. :-)

Before I get to deep into my site, I wanted to get some advice from others
on the best way to structure the files and stylesheet flow.

In it's basic form, the site consists of an *.xsp file containing the page
level information, a to_xhtml.xsl styleseet which transforms that content
into xhtml, and a default.css, which takes care of the layout on the
client side.

When setting up the basic shell of the site, this seems just right.

<page>
  <title>My Boring Page</title>
  <content>
    <item title="My Story">
      ...dfsdff...
    </item>
  </content>
</page>

Now, lets say I'm going to add a page containing a list of CDs in my
collection. At the XSP level, the xml will probably drop in as something
simple like

<page>
  <title>My CD Collection</title>
  <content/>
  <cdlist>
    <cd artist="26">Foo Album</cd>
    <cd artist="36">Bar Album></cd>
  </cdlist>
</page>

Now, where's the best place to go from here? Add a cd.xsl stylsheet before
the to_xhtml.xsl stylesheet to convert the <cdlist> to the tags that
to_xhtml.xsl is expecting?


<page>
  <title>My CD Collection</title>
  <content/>
    <item title="First 2 CDs">
      <li><a href="/artist/26/">Foo Album</a>
      <li><a href="/artist/36/">Bar Album</a>
   </item>
  </content>
</page>

Is there ever a point that this approach would get out of hand?
Or is this complete off the mark? You could put the 'cd' XSL in the
'to_xhtml' code, but then you seem to loose a little flexbility.

What about global site data, like a list of links?
Is it best to use another stylesheet to add those to the base page content
before the to_xhtml.xsl transformation, esp. assumeing we may also have a
to_html4.xsl and a to_rss.xsl?

I'm sure there is more than one way to do this. I'd just prefer not to
paint myself into a corner; too soon at least.  :-)

Thanks,
-=Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to