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

xsl:if prob with attribute

Subject: xsl:if prob with attribute
From: Jarkko.Moilanen@xxxxxx
Date: Fri, 16 Aug 2002 12:23:01 +0300 (EEST)
 xsl:if prob with attribute
Hi!

I've been stuck on this problem for a while and I don't
whats wrong with my xslt. I need to select elements 
whose attribute name value starts-with "C". 

XSLT:
<snip>
<xsl:variable name="XDocContent" select="XDocument/XDocCell"/>
<xsl:if test="$XDocContent/XDocUserInput/@name=(starts-with(.,'C'))">
			
 <p><input type="checkbox" value="ON" disabled="true" checked="true"></input>
 <xsl:value-of select="$XDocContent[@row=$row and @col=$col]/XDocPosttext"/>
</p>
<snip>


XML:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<XDocument>
  <XDocTemplate>Dokkari8</XDocTemplate>
  <XDocCellHeader row="1" col="1">
      <Organization>abc</Organization>
      <Department>jkl</Department>
      <DiaryNum>ghi</DiaryNum>
      <XDocType>def</XDocType>
      <DateTime>mno</DateTime>
  </XDocCellHeader>

  <XDocCell row="4" col="1">
    <XDocUserInput name="C2">on</XDocUserInput>
    <XDocPosttext>Check-box1</XDocPosttext>
  </XDocCell>

  <XDocCell row="5" col="1">
    <XDocPretext>Fill-in1</XDocPretext>
    <XDocUserInput name="F1">fdsafsadfsadfsadfsadf</XDocUserInput>
  </XDocCell>

</XDocument>

Cheers 
Jarkko


****************************************************************
Jarkko Moilanen          "Erehtyminen on inhimillista, 
Researcher/ ITCM         mutta todella suuret mokat 
jm60697@xxxxxx           vaativat tietokoneen käyttöä."         
www.uta.fi/~jm60697                                           
GSM: +358 50 3766 927                                         
****************************************************************
* ITCM | Information Technology and Crisis Management            
* http://www.itcm.org                                            
****************************************************************

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.