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

Re: hard problem

Subject: Re: hard problem
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Sun, 1 Feb 2004 20:20:42 +0100
embed html in xsd file
Can't this be combined with David Tolpin's clever tool for dynamic
determination of the type of an xml document (which of a number of schemas
this document satisfies) and based on this result to apply the appropriate
transformation?

In case if each document has its own unique default namespace then a
multitude of stylesheets can be imported (each containing templates for the
transformation of a specific type of document) and a simple

     <xsl:apply-templates select="/*"/>

is all what is needed.

So, all documents will be processed by the same central stylesheet, which
imports all other stylesheets that may be involved in the processing...
(wouldn't something like "import just-in-time" be marvelous!).


Cheers,

Dimitre Novatchev
FXSL developer,

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html



"Michael Kay" <mhk@xxxxxxxxx> wrote in message
news:000001c3e8e9$546e13b0$6401a8c0@xxxxxxxxxx
> This looks like a good use case for an extension function transform(doc,
> stylesheet) which can be invoked from XSLT and returns the result of
> transforming a document using a given stylesheet.
>
> Such a function has been suggested from time but I've never seen a
> convincing use case for it before.
>
> Michael Kay
>
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> > Nikolas Nehmer
> > Sent: 01 February 2004 16:31
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  hard problem
> >
> >
> > Hi,
> >
> > I have a really hard problem. Imagine you have a set of
> > publications, consisting of books, articles, PhDThesises,...
> > all modeled in XML(and corresponding XSD) files. All those
> > publications have different characteristics, like different
> > elements,...Every publication class is linked with a
> > specialized XSL File for visualization purposes, for example
> > a book with an ISBN Number is displayed differnt from an
> > article,... Every publication is saved in it's own file.
> >
> > Now I want to create a list of all those publications without
> > creating an XSL file with too much overhead. In common object
> > oriented programming languages like Java I would say OK every
> > Object in my list knows how to visualize, so I just call
> > every object's visualization method and I have created the
> > list. But unfortunately this is XML and not Java ;-(
> > So far my list consisted of several Xlinks pointing to the
> > publication XML files. A specialized list.xsl file visualized
> > those links and when you klicked the links, the spezialized
> > publication visualization opened. But what I want to do now
> > is to make something like to call the publication's
> > visualizer. In my opinion xlink:show="embed" would be a very
> > simple solution to my problem but as I know this function is
> > not implemented yet in browsers like Mozilla. Does anyone
> > have some suggestions? Maybe something like simulating the
> > xlink:show="embed" functionality on XSL level (in the
> > list.xsl) could be a solution?!
> >
> > Best regards,
> > Nick
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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