|
Subject: [xsl] xsl:if prob with attribute From: Jarkko.Moilanen@xxxxxx Date: Fri, 16 Aug 2002 12:23:01 +0300 (EEST) |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Immediate help required (, James Fuller | Thread | Re: [xsl] xsl:if prob with attribut, Vasu Chakkera |
| RE: [xsl] Immediate help required (, James Fuller | Date | RE: [xsl] Re: xsl/xslt coding stand, "Braumüller, Hans" |
| Month |