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

Re: defining sections

Subject: Re: defining sections
From: geoff hopkins <geoffhopkins123@xxxxxxxxx>
Date: Fri, 25 Nov 2005 06:57:32 -0800 (PST)
Re:  defining sections
thank you to all your help I owe you all a pint of
beer!

--- Geert Josten <Geert.Josten@xxxxxxxxxxx> wrote:

> Sorry, wasn't paying attention enough.
> 
> As David said earlier, the data templates were
> selecting data child elements again for 
> apply-templates, but they don't contain them. I
> changed the apply-templates statements below..
> 
> Regards,
> Geert
> 
> >>>	<xsl:template match="root">
> >>>		<root>
> >>>			<artefact doc_ref="{$DOC_REF}" type_id="1">
> 
> (cut)
> 
> >><xsl:apply-templates select="data[(.='Functional
> >>Requirements') or (.='Design Derived
> >>Requirements')]"/>
> >>
> >>>			</artefact>
> >>>		</root>
> >>>	</xsl:template>
> >>>
> >>>	<xsl:template match="data"/>
> >>>
> >>>	<xsl:template match="data[.='Functional
> >>>Requirements']">
> >>>		<before>
> >>>			<xsl:value-of select="."/>
> >>>		</before>
> 
>      <xsl:apply-templates
> select="following::data[following::data[.='Design
> Derived Requirements']]" 
> mode="before" />
> 
> >>>	</xsl:template>
> >>
> >><xsl:template match="data" mode="before">
> >>	<before>
> >>		<xsl:value-of select="."/>
> >>	</before>
> >></xsl:template>
> >>
> >>>	<xsl:template match="data[.='Design Derived
> >>>Requirements']">
> >>>		<after>
> >>>			<xsl:value-of select="."/>
> >>>		</after>
> 
>      <xsl:apply-templates select="following::data"
> mode="after" />
> 
> >>>	</xsl:template>
> >>
> >><xsl:template match="data" mode="after">
> >>	<after>
> >>		<xsl:value-of select="."/>
> >>	</after>
> >></xsl:template>
> 
> 



		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

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.