Import XML via stylesheet

If I have a xml like this:

<Grp>

    <concept>33</concept>

    <system>C</system>

I can import it in lotus notes with

<xsl:stylesheet xmlns:xsl=‘XSLT Namespace

             version='1.0'>



 <xsl:template match="*|@*"/>

 <xsl:template match="text()"/>



<xsl:template match='mtf'>

        <database xmlns='http://www.lotus.com/dxl' version='1.01'>                    <xsl:text>

</xsl:text>

              <xsl:apply-templates select="Grp"/>

         </database>

 </xsl:template>



<xsl:template match="Grp">

        <document form='test'> <xsl:text>

</xsl:text>

              <xsl:text>    </xsl:text><item name='concept'><text><xsl:value-of select="concept"/></text></item> <xsl:text>

</xsl:text>

              <xsl:text>    </xsl:text><item name='system'><text><xsl:value-of select="system"/></text></item> <xsl:text>

</xsl:text>

       </document><xsl:text>

</xsl:text>

  </xsl:template>

</xsl:stylesheet>

but if I have a problem with an other xml, it is not possible to import ‘valeur’

<Grp>

    <concept>33</concept>

    <system>C</system>

    <NewGrp>

        <valeur>C</valeur>

    </NewGrp>   

who can help me ???

Thank you very much

Subject: Import XML via stylesheet

Surely you need a <xsl:value-of select=“valeur”/> in your stylesheet otherwise the parser will skip any nodes of that name?

Subject: RE: Import XML via stylesheet

Thank you but i do it but it doesn’t work.

Subject: RE: Import XML via stylesheet

Sorry try: <xsl:value-of select=“NewGrp/valeur”/>

Subject: RE: Import XML via stylesheet

It’s OK.

I have also this:

or

How can I read the value FR or NL in the stylesheet and then choose the good variable?

Thanks

Subject: RE: Import XML via stylesheet

You need to use the following:

<xsl:if test=“language[@lang=‘FR’]”>

<xsl:value-of select=‘whatever…’/>

</xsl:if>

or something like that…

Subject: RE: Import XML via stylesheet

Thanks,

I go try now to put a for each