This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

accessing lookup table in XSL stylesheet using non-default namespace


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]