Thanks David,
I presume document('') refers to a null document i'll look more into this
syntax..
Your example is exactly what I needed - i miss using lookup tables and have
been using choose/ when/otherwise statments to cover my lack of knowledge.
Thaks again,
-RVG
----- Original Message -----
From: "M. David Peterson" <m(_dot_)david(_at_)mdptws(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Saturday, November 22, 2003 10:29 AM
Subject: Re: [xsl] refering to internal xml data
Yes, you can... create a new namespace and then create an XML node-set
using this namespace. Reference it using the document function and then
use
the variable name within your style sheet to access the content of the
XML.
Example...
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:textValue="my::textValue"
exclude-result-prefixes="textValue"
<textValue:textValueofNumber>
<number value="1">First</number>
<number value="2">Second</number>
<number value="3">Third</number>
<number value="4">Fourth</number>
<number value="5">Fifth</number>
<number value="6">Sixth</number>
<number value="7">Seventh</number>
</textValue:textValueofNumber>
<xsl:variable name="textValueofNumber"
select="document('')/*/textValue:*"/>
<xsl:value-of select="$textValueofNumber/*[(_at_)value='2']"/>
Best of luck!
M.
----- Original Message -----
From: "Robert Van Gemert" <rcvangemert(_at_)optushome(_dot_)com(_dot_)au>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Friday, November 21, 2003 4:16 PM
Subject: [xsl] refering to internal xml data
All,
Can you include xml within a style sheet and refer to both the internal
and
external xml data.
If so a small example would help.
Thanks,
Robert
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list