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

RE: accessing lookup table in XSL stylesheet using non-defau

Subject: RE: accessing lookup table in XSL stylesheet using non-default namesp ace
From: "Medina, Edward" <emedina@xxxxxxx>
Date: Tue, 4 Apr 2000 09:33:49 -0400
baan xml
Do you get an error, or nothing happens
when you try to view it?

have you tried this?

<xsl:stylesheet 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:baan="http://www.baan.com/xml">

<baan:data>
	<baan:lang code="us" desc="English">English</baan:lang>
</baan:data>

<xsl:template match="/">
<!-- does not work -->
	<xsl:variable name="lookup" select="document('')/baan:data"/>
	<xsl:value-of select="$lookup/baan:lang/@desc"/>
</xsl:template>

</xsl:stylesheet>

Eddy

-----Original Message-----
From: Linda van den Brink [mailto:lvdbrink@xxxxxxx]
Sent: Tuesday, April 04, 2000 8:30 AM
To: Xsl-List (E-mail)
Subject: accessing lookup table in XSL stylesheet using non-default
namesp ace


Hi all, 

Can anyone tell me why the following does not work? I tried and tried it
with xt and SAXON. 

Linda

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:baan="http://www.baan.com/xml">

<baan:data>
	<baan:lang code="us" desc="English">English</baan:lang>
</baan:data>

<xsl:template match="/">
<!-- does not work -->
	<xsl:variable name="lookup" select="document('')/baan:data"/>
	<xsl:value-of select="$lookup/baan:lang/@desc"/>
</xsl:template>

</xsl:stylesheet>


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


 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.