Subject: RE: [xsl] Process output from imported stylesheet? From: "Magnus Teo" <magnusteo@xxxxxxx> Date: Thu, 11 Mar 2004 16:18:18 +0800 |
so your included/imported file would have to be complete before the stylesheet was compiled.- ugh, bummer. Thanks Josh.
You could use a two pass approach, where you generate the XSL in the first pass, and then use the generated XSL file to process your XML.- I'm letting my users process their XML data through a library of XSLs, this being one of them and the wish was to let them select which elements to avail and order of appearance. If I generate a unique XSL for each of the users, it may be unmanageable to add new features in the future. =\
Perhaps if you provide an example of the problem you are trying to solve someone could help with an alternative to dynamic call-templates?- Alright, here are very brief extracts of the various files involved, please pardon any errors.
- Secondary XML file where settings of which elements to display are. <?xml version="1.0" encoding="UTF-8"?> <Test xmlns="http://www.test.test"> <Content genre="Some config"> <Order> <Element>Title</Element> <Element>DatePublished</Element> <Element>Desc</Element> <Element>DateModified</Element> <Element>Author</Element> </Order> </Content> </Test>
- Original Primary XSL which predetermines template order <xsl:template match="base:Section"> <xsl:call-template name="Title" /> <xsl:call-template name="DatePublished" /> <xsl:call-template name="Desc" /> <xsl:call-template name="DateModified" /> <xsl:call-template name="Author" /> <xsl:call-template name="Divider" /> </xsl:template>
_________________________________________________________________ Find gifts, buy online with MSN Shopping. http://shopping.msn.com.sg/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Counting using variable i, Arulraj | Thread | RE: [xsl] Process output from impor, Magnus Teo |
RE: [xsl] xsl search engine, Jarno . Elovirta | Date | RE: [xsl] Process output from impor, Magnus Teo |
Month |