Subject: AW: AW: [xsl] Extract string from CDATA value From: "Huditsch Roman" <Roman.Huditsch@xxxxxxxxxxxxx> Date: Tue, 30 Nov 2004 14:46:12 +0100 |
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: [xsl] 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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] List of XSL entities, M. David Peterson | Thread | [xsl] Can't match node without node, Robert Soesemann |
RE: [xsl] List of XSL entities, Pawson, David | Date | Re: [xsl] Preseving character entit, Geert Josten |
Month |