[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: Associating a Stylesheet with a Document

  • To: "Joe Schaffner" <schaffner.joe@g...>
  • Subject: Re: Re: Associating a Stylesheet with a Document
  • From: "Peter Hunsberger" <peter.hunsberger@g...>
  • Date: Mon, 5 Jun 2006 09:04:39 -0500
  • Cc: xml-dev@l...
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E1AEeciF8C3r6mn6IM3eifyEtaFwLA0HmS8kt0pW4vxExe41wPyRmJqGl33awmFAaiquK6vJgiK9TdOwJYH3p/aS55aR2jsR617CtRDtpKQtFRN6mscs5hmeOPDVhyyRfyksR0MbAhooQd6I86uMIsiZpX5Oh17Uu1sNVkebgmk=
  • In-reply-to: <514a17f50606041136x6051dbeetfd6317e46208325e@m...>
  • References: <514a17f50605300248q1c0c8e21p512699b58d1f543e@m...> <514a17f50606041136x6051dbeetfd6317e46208325e@m...>

javascript modify stylesheet
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.