Hi,

*********** REPLY SEPARATOR  ***********

On 28.03.2002 at 09:50 Hahn Kurt (CHA) wrote:

>I really start losing it, I'm trying to do something very simple for
>hours,
>and it just wouldn't work. With an XML document like this:
><page> (root element)
> <content>
><rowset>
>  <row>
>    <loj_pt_odj />
><obj_numero_gc>text</obj_numero_gc>
><obj_soustype>text</obj_soustype>
><obj_concattitregc1>text </obj_concattitregc1>
><obj_concattitregc2 />
></row>
>...</rowset>
>..... </content>
>
>
>I'm trying to do some simple transformations. This:
><xsl:template match="/">
>  <listeAffaires>
>    <xsl:value-of select="//content"/>
> </listeAffaires>
></xsl:template>
>gives me everything in the original document, and that's OK.

This is strange, it shouldn't return anything but the value of the <content> tag.

>However, I
>replace "content" with some other element, like
>    <xsl:value-of select="//row"/>
>it gives me just an empty tag, although, according to my XSL sources, the
>operator "//" can be used to reference as many levels down in the hierarchy
>as necessary. Can anybody help me out here?
>

At least in your example the <row> tag has no value, so it is
absolutely correct that nothing is returned. If you use <xsl:value-of>,
you will only get the value of the matched tag.

Greetings,
Andreas

>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to