ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

get content tab ?

Subject: get content tab ?
From: Hong-Thai.Nguyen@xxxxxxx
Date: Mon, 2 May 2005 11:40:58 +0200
thai tab
Hi all,
Il would like to get content of tab, and only this content without sub child content:
Source XML:
<Var dcol="3" fcol="5" ligne="31" valeur="AUX">
<TypeExclusif/>
<Val dcol="10" fcol="13" ligne="33" valeur="ETRE"/>
<Val dcol="10" fcol="14" ligne="34" valeur="AVOIR"/>
<WICALE>&lt;a name="DecVar.DeclVar.Deco.Var.AUX"&gt;AUX&lt;/a&gt;
<PAGING>1</PAGING>
<WERSION>versionID</WERSION>
</WICALE>
</Var>


Code XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
    <xsl:param name="typeElement" select="/"/>
    <xsl:template name="typeVar" match="Var">
        <xsl:value-of select="./WICALE"/> == (
        <xsl:for-each select="//Val | //Entier | //AliasVar">
            <xsl:if test="position() = last()">
                <xsl:value-of select="./@valeur"/>
            </xsl:if>
            <xsl:if test="position() != last()">
                <xsl:value-of select="./@valeur"/>,
            </xsl:if>
        </xsl:for-each>).
    </xsl:template>
</xsl:stylesheet>

And the format out wanted:
<a name="DecVar.DeclVar.Deco.Var.AUX">AUX</a> == (ETRE,AVOIR).

But it look like:
<a name="DecVar.DeclVar.Deco.Var.AUX">AUX</a>
        1
        versionID
     == (
        ETRE,
            AVOIR).
So, can you help me correct it ?
And, is there any tip to handle CRLF ?
Thanks

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.