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

RE: A syntaxic problem this time

Subject: RE: A syntaxic problem this time
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Fri, 2 Jul 2004 16:59:18 -0500
select desc
Hi Pierre,

Try 

//pays

Instead of

../../SELECT/{desc}

HTH,
<prs/>

-----Original Message-----
From: Pierre [mailto:pierre@xxxxxxxxxxxxx] 
Sent: Friday, July 02, 2004 2:51 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  A syntaxic problem this time 

Sorry i forgot my xml : 
<?xml version="1.0" encoding="utf-8" ?>
<formulaire>
	<FRMFAT04001>
		<champs type="input">
			<desc>Societe</desc>
			<size>32</size>
			<name>001</name>
			<obligatoire>*</obligatoire>
		</champs>
		<champs type="input">
			<desc>Adresse</desc>
			<size>32</size>
			<name>002</name>
		</champs>
		<champs type="select">
			<desc>Pays</desc>
			<name>003</name>
		</champs>
	</FRMFAT04001>
	<SELECT>
		<pays value="FR"><name>France</name></pays>
		<pays value="UK"><name>Royaumes Unis</name></pays>
	</SELECT>
</formulaire>

Pierre 

-----Message d'origine-----
De : Pierre [mailto:pierre@xxxxxxxxxxxxx] Envoyé : vendredi 2 juillet 2004
20:49 À : Xsl-List Objet :  A syntaxic problem this time 

Hi all,
Please i'm trying to do that :
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" />
	<xsl:template match="/">
	<xsl:for-each select="formulaire/FRMFAT04001/champs">
	<xsl:choose>
	<xsl:when test="@type='input'">
		<xsl:value-of select="desc" /><xsl:text> : </xsl:text>
		<input type="text" size="{size}" name="{name}"
/><xsl:value-of select="obligatoire" /><br />
		</xsl:when>
		<xsl:when test="@type='select'">
		<xsl:value-of select="desc" /><xsl:text> : </xsl:text>
		<select id="{name}" name="{name}">
		<xsl:for-each select="../../SELECT/{desc}">
	 <xsl:element name="OPTION">
  <xsl:value-of select="name" />
  </xsl:element>
  		</xsl:for-each>
  		</select>
		</xsl:when>
		</xsl:choose>
	</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>

I hope you understand what I wanna do, my problem is here xsl:for-each
select="../../SELECT/{desc}"> hox to say that I want select the desc.

Thanks to all

Pierre 



--+------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxxx>
--+--




--+------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxxx>
--+--

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.