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

AW: AW: Extract string from CDATA value

Subject: AW: AW: Extract string from CDATA value
From: "Huditsch Roman" <Roman.Huditsch@xxxxxxxxxxxxx>
Date: Tue, 30 Nov 2004 14:46:12 +0100
aw extract
Hi,

<xsl:template match="case">
	<xsl:if test="@id = .//parameter/value ">
		<!-- do whatever there is to do -->
	</xsl:if>
</xsl:template>

The "if" statement tests, if there is any <parameter> element with a <value>
child inside the current <case> element, whose (the <value>'s) content is the
same as within the "id" attribute of the current <case>.

Wbr,
Roman

> -----Urspr|ngliche Nachricht-----
> Von: Sven Waibel [mailto:sven.waibel@xxxxxxxx]
> Gesendet: Dienstag, 30. November 2004 14:26
> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Betreff: Re: AW:  Extract string from CDATA value
>
> Hi,
> that's my xml file
> :
> <case id="85">
>    <itables>
>      <itable id="111">
>           <i>
>         <parameter>
> 		<value><![CDATA[a,c,m]]></value>
> 	</parameter>
>           </i>
>           <i>
>         <parameter>
> 		<value><![CDATA[85]]></value>
> 	</parameter>
>           </i>
>         </itable>
>    </itables>
> </case>
>
> case-id compare with CDATA
>
> Sven
>
>
> Huditsch Roman wrote:
>
> > Can you give an example of your xml file?
> > I suppose I doesn't work because of an context problem...
> >
> > Wbr,
> > Roman
> >
> > _______________________________________
> >
> > Roman Huditsch
> > IT and Electronic Publishing
> > LexisNexis ARD Orac
> > Marxergasse 25
> > 1030 Vienna
> > Austria
> > ph: +43-1-534 52-1514
> > f: +43-1-534 52-140
> > e-mail roman.huditsch@xxxxxxxxxxxxx
> > www.lexisnexis.at
> >
> >
> >
> >>-----Urspr|ngliche Nachricht-----
> >>Von: Sven Waibel [mailto:sven.waibel@xxxxxxxx]
> >>Gesendet: Dienstag, 30. November 2004 11:51
> >>An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >>Betreff: Re:  Extract string from CDATA value
> >>
> >>I understand, but when i compare it  this way:<xsl:if test="@id = value">
then it
> >>don't work, just you explained. My
> >>attribute has not both.
> >>
> >>But how can i compare these two value?
> >>
> >>Sven

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.