This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: selecting all nodes which contains similar names


Sorry

it have a syntax error,

it´s function very well:

<xsl:for-each select="node()[contains(name(), 'umszweck')]">

Hans

> Hi,
> 
> i know this is a FAQ, but i cannot find it with google and in 
> the archive.
> 
> I want to extract with a shortest statement all nodes which 
> begins with the
> same characters in the element .
> 
> xml snippet
> ----
> 
> <row>
> ...
> <umszweck1>UMSZWECK1</umszweck1>
> <umszweck2>UMSZWECK2</umszweck2>
> <umszweck3>UMSZWECK3</umszweck3>
> <umszweck4>UMSZWECK4</umszweck4>
> <umszweck5>UMSZWECK5</umszweck5>
> <umszweck6></umszweck6>
> <umszweck7>UMSZWECK7</umszweck7>
> <umszweck8>UMSZWECK8</umszweck8>
> <umszweck9>UMSZWECK9</umszweck9>
> <umszweck10></umszweck10>
> <umszweck11>UMSZWECK11</umszweck11>
> <umszweck12>UMSZWECK12</umszweck12>
> <umszweck13>UMSZWECK13</umszweck13>
> <umszweck14>UMSZWECK14</umszweck14>
> etc
> ...
> </row>
> 
> xsl try
> ----
> <xsl:-for each select="node()[contains(name(),'umszweck')]">
>  <xsl:value-of select="." />
> </xsl:for-each>
> 
> It´s not function!
> 
> Must i do a when=test()?
> It is possible instead using a template?
> Anybody can forward me a code snippet?
> Excuse my still a beginner question!
> 
> Have a nice weekend!
> 
> Thanks,
> 
> Hans Braumüller 
> -- + -- 
> Networking Artist
> http://crosses.net
> http://kunstserie.com
> 
>  
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]