OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Associating a Stylesheet with a Document

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: Re: Associating a Stylesheet with a Document
  • From: "Joe Schaffner" <schaffner.joe@gmail.com>
  • Date: Sun, 4 Jun 2006 11:36:23 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZWNS4URlWDU2l3JdL5S57wrgsYdRmygnJfjt/gyLZ/gMQQBkAAphWvBv9EhRRc8fNO1CzOjfTm/Ujt6OUitK1jFQBTjU3crpDTrjN/f1RuldeF8tLEleSD6Y/N0pT9fsWy+XR3nE1Xt+rSPdMwOaYmrGjjK2sDtaxnYgo+fM4mY=
  • In-reply-to: <514a17f50605300248q1c0c8e21p512699b58d1f543e@mail.gmail.com>
  • References: <514a17f50605300248q1c0c8e21p512699b58d1f543e@mail.gmail.com>

The problem, of course, is that I will have to modify my xml, all 937+
files, one for each verb, when I add a new style sheet (while possibly
retaining the old ones - variations, in other words) and I was
thinking of creating stylesheets on-the-fly, in response to a query,
which were all based on the same, underlying database of
fully-conjugated verbs.

I was thinking perhaps I could do something like this:

http://modern-greek-verbs/tripod.com/agv/foo.xsl?...

By default, the browser would associate foo.xsl with foo.xml, but that
would not solve my problem either.

I need a separate file, or something, which maps the style sheets to
the documents.

Is there a canonical solution to this problem?

Aha! Maybe that would be another xml application, of some sort,
perhaps even HTML (yuck) a variation on the index.html theme - a
separate document which maps the stylesheets with the documents, one
which I could modify offline...

Joe
http://modern-greek-verbs.tripod.com/agv/

On 5/30/06, Joe Schaffner <schaffner.joe@gmail.com> wrote:
> Hello Everyone,
>
> I've gotten to the point now where I understand all the components:
> XML, XSL, XPath.
>
> Thanks.
>
> I saw the following example in an XML book:
>
> <?xml version="1.0"?>
> <?xml-stylesheet="simple-ie5.xsl" type="text/xsl"?>
> <article ...
> </article>
>
> The stylesheet is named right in the input document!
>
> I don't want to do that.
>
> I'm looking for an out-of-band method of associating the stylesheet
> and the document, and I was thinking of the http URL. It seems natural
> to me that the URL for an XML application should point at the xsl, not
> the xml -- which is meaningless to the browser.
>
> Thanks, again.
>
> Joe
> A Lexicon of Ancient Greek Verbs
> Written in HTML
> http://modern-greek-verbs.tripod.com/agv/
> Which I would like to redo in XML,
> But I haven't started.
> ===================
>




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS