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

Re: literal result element as stylesheet with JavaScri

Subject: Re: literal result element as stylesheet with JavaScript?
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 5 Dec 2001 22:02:06 +0000
javascri p t
Hi Dan,

>> I don't know why you're using a simplified stylesheet, but if it's
>> to enable other users to write them more easily, then this would be
>> an option.
>
> This is exactly why. The only problem is that dates in the source
> XML are represented in milliseconds and need to be formated somehow.
> I was hoping not to add a lot of other 'stuff' to what !appears! to
> be a simple html document with a little XSLT here and there. Maybe
> it is a bad idea ...

It sounds like a reasonable idea to me. Perhaps, you could make it
easier if you used entities. Have the XML documents that they write
defined as entities within an outline stylesheet, that looks like:

<!DOCTYPE xsl:stylesheet [
<!ENTITY template SYSTEM 'template.xsl'>
]>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                ...>

<msxsl:script language="javascript" implements-prefix="user">
  ...
</msxsl:script>

<xsl:template match="/">
  &template;
</xsl:template>
                
</xsl:stylesheet>

All the users would have to do is edit template.xsl and process the
XML document with the above stylesheet.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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


Current Thread
  • unbreakable block, (continued)
    • ArA - Wed, 5 Dec 2001 13:23:31 -0500 (EST)
    • cutlass - Wed, 5 Dec 2001 13:30:25 -0500 (EST)
    • Jeni Tennison - Wed, 5 Dec 2001 13:33:08 -0500 (EST)
      • Dan Diebolt - Wed, 5 Dec 2001 14:11:29 -0500 (EST)
        • Jeni Tennison - Wed, 5 Dec 2001 17:03:11 -0500 (EST) <=

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.