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

Re: msxml xsl import

Subject: Re: msxml xsl import
From: Mark Puckett <markp@xxxxxxxxxxxxx>
Date: Fri, 23 Jul 1999 17:50:15 -0700
msxml 5.0 download
Thanks for the suggestions.  I tried both but couldn't get either to work
with MSXML 5.0.  Has anybody done this with MSXML 5.0?

Here is what I'd like to do...

TEST.XML:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<document>
	<title>How The West Was Won</title>
</document>

TEST.XSL:
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY base-stylesheet SYSTEM "base.xsl"> ]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
	<xsl:template match="/">
		<xsl:apply-templates select="document/title"/>
	</xsl:template>
	&base-stylesheet;
</xsl:stylesheet>

BASE.XSL:
<xsl:template match="title">
	Have you read <b><i><xsl:value-of /></i></b>?
</xsl:template>

-Mark
 

Miloslav Nic wrote:
> Look at
>
http://zvon.vscht.cz/ZvonHTML/Stylesheets/xslStylesheets/Zvon/zvonBasicXMLto
HTML_1_00.html
> for the way I solved similar problem.

Jon Smirl wrote:
> base-stylesheet.xsl has to be a complete style sheet including the <?xml
and
> <xsl:stylesheet tags.
> A set of only templates does not work.

Mark Puckett wrote:
> 
> 2) I'd like to create a base .xsl file with our most basic stylings and
> include them in all specific .xsl files rather than replicating the basic
> stylings in all .xsl files.  I found this example in MSDN:
> 
> <!DOCTYPE xsl:stylesheet [
>   <!ENTITY base-stylesheet SYSTEM "base-stylesheet.xsl">
> ]>
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>   &base-stylesheet;
> 
>   <xsl:template match="b">
>     [override <xsl:value-of/>]
>   </xsl:template>
> </xsl:stylesheet>
> 
> but it doesn't work.  I then noticed the editors note on the page:
> "Open issue: Reevaluate since this method does not work :-( "
> 
> Is there a way to do this with MSXML 5.0?
> 
> -Mark


 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.