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

Re: refering to internal xml data

Subject: Re: refering to internal xml data
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Fri, 21 Nov 2003 17:04:05 -0700
internal xml
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:  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:  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:  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

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.