[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|