Hi Bertrand
If I have understood correctly then your problem is that you are getting
unwanted text displayed.
This will be because the default templates have been applied to any elements
that you have not specifically matched. Default templates are the templates
that are applied automatically even though you didn't write them. You will
notice that if you do an xslt with no templates you will still see all the
text in your source displayed. This is the default templates at work.
The solution is simple. Include this template in your xslt to suppress the
defaults.
<xsl:template match="*" />
Rod
-----Original Message-----
From: Bertrand Sauviat [mailto:bsauviat(_at_)elanspeech(_dot_)com]
Sent: 17 May 2004 15:58
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: [xsl] [XSL] XSL and <table>
Hello,
Some problems with <table>
In my XML :
<return>
<valuepos return_value="NOERROR " meaning="No error "/>
<valueneg return_value="NOTPROCESSED" meaning="warning informing
that the operation cannot be processed."/>
<valueneg return_value="NONLP" meaning="wrong "/>
<valueneg return_value="PROCESSERROR" meaning="Unexpected error"/>
<valueneg return_value="NOTVALIDPARAMETER" meaning="Invalid
lpDict"/>
<valueneg return_value="DICT_READ" meaning="Error while reading the
dictionary"/>
<valueneg return_value="DICT_NOENTRY" meaning="There is no entry at
dwIndex"/>
<valueneg return_value="NOTIMPLEMENTED" meaning="The NLP does not
support user dictionaries"/>
</return>
<notes>
<para>
<text text_value="The way the NLP manages the index order is free,
this function can only be used when 'dumping' all the dictionary. Two words
with consecutive indexes are not related together. "/>
</para>
<para>
<text text_value="Allocate a new lpszEntrywith a minimum of
(*lpdwEntrySize) bytes."/>
</para>
<notes>
I want displaying the <return> information in a table with 2 colums
The first for @return_value and the second for @meaning
So, in my XSL:
<xsl:template match="fonction/return">
<b><xsl:text>Return values</xsl:text></b><br/>
<table width="100%" align="left">
<xsl:for-each select="valuepos">
<tr>
<td><xsl:value-of select="@return_value"/></td>
<td><xsl:value-of select="@meaning"/></td>
</tr>
</xsl:for-each>
<xsl:for-each select="valueneg">
<tr>
<td><xsl:value-of select="@return_value"/></td>
<td><xsl:value-of select="@meaning"/></td>
</tr>
</xsl:for-each>
</table>
The problem is for the <notes> in my XML
All the information after <return> appears at the left of the table in IE
I don't understand why??
Thanks
Bertrand
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_________________________________________________________________________
Any opinions expressed in this email are those of the individual and
not necessarily the Company. Unless expressly stated to the contrary,
this email is not intended to give rise to a new, or affect an existing,
contractual or other legal relationship.
This email and any files transmitted with it, including replies and
forwarded copies which may contain alterations) subsequently transmitted
from the Company, are confidential and solely for the use of the intended
recipient. The unauthorised use, disclosure or copying of this email, or
any other information contained or attached, is prohibited and could, in
certain circumstances, be a criminal offence.
If you have received this email in error please notify the sender as soon
as possible.
This footnote also confirms that this email message has been swept for
the presence of computer viruses.
www.focusdiy.co.uk
_________________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________