Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Re: Associating a Stylesheet with a Document

From: "Peter Hunsberger" <peter.hunsberger@-----.--->
To: "Joe Schaffner" <schaffner.joe@-----.--->
Date: 6/5/2006 2:05:00 PM
On 6/4/06, Joe Schaffner <schaffner.joe@g...> wrote:
> 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.

<snip/>

> 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...

Can this be browser specific?  As David points out you can use client
side JavaScript to load both the XML and the XSLT.  The JavaScript can
in turn be parametrized.  You can pick up Ajax libraries such as Dojo
that will hide most of the cross browser issues for you, but given
that XML + XSLT does not work on all browsers your limited from the
word go...

You could also use a separate server side XSLT to modify the XML to
include the appropriate XSLT, but unless the XSLT has some specific
reasonfor running on the client I can't see why you wouldn't run
everything server side at that point.

-- 
Peter Hunsberger


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent