|
Subject: Re: [xsl] refering to internal xml data From: "M. David Peterson" <m.david@xxxxxxxxxx> Date: Fri, 21 Nov 2003 17:04:05 -0700 |
Yep, document('') is a self refering statement.
Glad I could help :)
M.
----- Original Message -----
From: "Robert Van Gemert" <rcvangemert@xxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, November 21, 2003 4:55 PM
Subject: Re: [xsl] refering to internal xml data
> 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.david@xxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> 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/*[@value='2']"/>
> >
> > Best of luck!
> >
> > M.
> >
> >
> > ----- Original Message -----
> > From: "Robert Van Gemert" <rcvangemert@xxxxxxxxxxxxxxxx>
> > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > 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
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] refering to internal xml , Robert Van Gemert | Thread | [xsl] Re: refering to internal xml , Dimitre Novatchev |
| Re: [xsl] refering to internal xml , Robert Van Gemert | Date | [xsl] Template quitting too early?, Larry Kollar |
| Month |