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

xsl architecture issue

Subject: xsl architecture issue
From: "Mattias Konradsson" <preacher@xxxxxxxxxxx>
Date: Wed, 9 Jan 2002 13:21:18 +0100
architecture issue
hmm, I'm having a problem with the information architecture at my site.
Firstly
I have a bunch of xml documents in different formats and secondly a "skin"
xml file
for each document with information about how it should be presented. The
skin file has a url reference to it's actual content file which is parsed
through the document() function in xslt. So far so good. This way I can
store documents in a clean format and simply make up new skin files for
different presentations.

The problem is that the content file can be a widely different and including
all their stylesheets in the master stylesheet through xsl:include can't
give good performance. What I'd really need was the possibility to pass the
url to thestylesheet that should be used for the content but conditional
includes as I understand are not supported..
Anyone have a good idea how I can accomplish this kind of separation?

short example

Content file  (content.xml)

<document>
    <mycontent>whatever</mycontent>
</document>

Skin file  (docdialog.xml)

<dialog title="Bookmarks" width="600" minWidth="500" menu="xml/menu.xml"
minHeight="400"  xmlns:existic='http://www.existic.com'>
<content >
   <documentRef url="document.xml"/>
</content>
</dialog>

document stylesheet


Master stylesheet (dialog.xslt)
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="document.xslt"/>

 <xsl:template match="dialog">
  <div class="dialog" minHeight="{@minHeight}"  minWidth="{@minWidth}"
id="{$dialogID}" style="" mover="titletext">
   <div  class="content"><xsl:apply-templates/></div>
    </div>
</xsl:template>

 <xsl:template match="documentRef">
  <xsl:apply-templates select="document(@url)"/>
 </xsl:template>

</xsl:stylesheet>


I'm working with msxml3.0 on the clientside

Best Regards
---
Mattias Konradsson







 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.