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

Embedded stylesheets

Subject: Embedded stylesheets
From: "Kaarle Kaila" <kaarle.kaila@xxxxxx>
Date: Sun, 1 Feb 2004 13:22:12 +0200
embedded stylesheet
hi,

I have tried to use an embedded xslt stylesheet according to example in
Michael Kays XSLT Programmers Reference 2nd edition on page 109 but it does
not seem to work as desired by me.

Extract of my xml-file is at end of message.

If I look at the result with IE 6 it shows the headers OK but it also all
other text (with default template).
I tried to translate it using XMLStarlert  (http://xmlstar.sourceforge.net/)
that complained
xml-stylesheet : no ID backup found

My question is: should this way of using embedded stylesheets work or is it
very much dependent on spaciel features of various xslt engines?

regards
Kaarle

--
Kaarle Kaila
email: kaarle dot kaila at iki dot fi
www.iki.fi/kaila

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="#backup"?>
<genealog><owner><ownername>Kaarle Kaila</ownername><ownerinfo>Kallen
lisätietoa&#13;
Tämä tulee riville 2&#13;
ja tässä näin riville 3&#13;
(Cyrillic text)?????? ???????? on rivillä
4</ownerinfo><address><street>Kalenteritie 23 B
4</street><postalcode>02200</postalcode><postoffice>Espoo</postoffice><count
ry>Suomi</country>
<email>kaarle.kaila@xxxxxx</email></address><mediapath>Kaila</mediapath></ow
ner>


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" id="backup">
<xsl:template match="xsl:sylesheet"/><xsl:template
match="genealog"><html><body><h1>suku-backup</h1><xsl:apply-templates/></bod
y></html></xsl:template><xsl:template
match="units"><xsl:apply-templates/></xsl:template><xsl:template
match="unit"><xsl:value-of
select="./name"/><br/></xsl:template></xsl:stylesheet>


<units>
<unit unitid="I1" tag="INDI" sex="F"
createdate="2004-01-16"><name><givenname>Liisa
Annikki</givenname><surname>Koski</surname></name><notices><notice
tag="NAME" row="1" createdate="2004-01-16"><name><givenname>Liisa
Annikki</givenname><surname>Kaila</surname></name></notice>
<notice tag="BIRT" row="2" createdate="2004-01-16">
<date><start>19180929</start></date><place>Hämeenkyrö</place><name/></notice
>
<notice tag="DEAT" row="3" createdate="2004-01-16">
<date><start>19880531</start></date><place>Espoo</place><name/></notice>
<notice tag="OCCU" row="4"
createdate="2004-01-16"><description>Vaatesuunnittelija</description><name/>
</notice></notices></unit>

<!-- more unit elements -->
</units>
<!-- other elements -->

</genealog>


 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.