Click here to Skip to main content
15,924,402 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Generalutility/library to clean-up xml-strings (&amp, etc) Pin
ohadp11-Oct-03 9:26
ohadp11-Oct-03 9:26 
GeneralRe: utility/library to clean-up xml-strings (&amp, etc) Pin
Blake Coverett11-Oct-03 10:24
Blake Coverett11-Oct-03 10:24 
GeneralRe: utility/library to clean-up xml-strings (&amp, etc) Pin
ohadp11-Oct-03 20:10
ohadp11-Oct-03 20:10 
QuestionHow to convert fixed width text file to Xml file Pin
Chai Yin Sze11-Oct-03 3:00
Chai Yin Sze11-Oct-03 3:00 
AnswerRe: How to convert fixed width text file to Xml file Pin
Jim Taylor14-Oct-03 9:53
Jim Taylor14-Oct-03 9:53 
GeneralRe: How to convert fixed width text file to Xml file Pin
mmatsumura12-Nov-03 11:54
mmatsumura12-Nov-03 11:54 
GeneralRe: How to convert fixed width text file to Xml file Pin
Jim Taylor13-Nov-03 2:52
Jim Taylor13-Nov-03 2:52 
GeneralXSLT choose function sytax problem Pin
drikusr9-Oct-03 17:06
drikusr9-Oct-03 17:06 
This is probably an easy one...

I have implemented a CHOOSE function in an XSLT transformation as follows:
<code>
<!-- ====[CONTENT]================================ -->
<xsl:variable name="selBoxHeight" select="count(./Content/content_name)"></xsl:variable>
<TR><TD>
		<DIV><xsl:value-of select="$selBoxHeight" /></DIV>
	<!-- HTML ListBox -->
	<SELECT>	
	<xsl:attribute name="class">menuoptionselectboxes</xsl:attribute>
        <!-- Set Select Box height -->
        <xsl:choose>
          <xsl:when test="$selBoxHeight <= 7"> 
	     <xsl:attribute name="Size"><xsl:value-of select="$selBoxHeight"></xsl:value-of></xsl:attribute>
          </xsl:when>
          <xsl:otherwise> 
            <xsl:attribute name="Size"><xsl:value-of select="7"></xsl:value-of></xsl:attribute>
          </xsl:otherwise>
        </xsl:choose>
<code>

I'm having a problem with the evaluation of :
test="$selBoxHeight <=7"
where the transformation fails, returning the following error:
System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 51

I have verified that this sort of comparison can be performed, see for example: O'Reilly's XML.Com.

Even soWTF | :WTF: , I have this niggling error.

Has anyone got help on the matter??


Thanks in advance
Drikus
GeneralRe: XSLT choose function sytax problem Pin
J. Dunlap9-Oct-03 18:42
J. Dunlap9-Oct-03 18:42 
GeneralRe: XSLT choose function sytax problem Pin
drikusr9-Oct-03 18:45
drikusr9-Oct-03 18:45 
GeneralConfiguration files with c# Pin
Config programmer6-Oct-03 1:43
sussConfig programmer6-Oct-03 1:43 
General&quot;Converting&quot; MFX/CDocument/CArchive to XML Pin
b_p_smith5-Oct-03 3:26
b_p_smith5-Oct-03 3:26 
GeneralUTF character encoding ... Pin
matthew l1-Oct-03 0:16
matthew l1-Oct-03 0:16 
GeneralRe: UTF character encoding ... Pin
Retsof Nawor1-Oct-03 10:17
Retsof Nawor1-Oct-03 10:17 
GeneralRe: UTF character encoding ... Pin
Michael Dunn11-Oct-03 11:12
sitebuilderMichael Dunn11-Oct-03 11:12 
GeneralMinor problem w/ gSOAP Toolkit Pin
Nirav Doshi30-Sep-03 20:11
Nirav Doshi30-Sep-03 20:11 
GeneralRe: Minor problem w/ gSOAP Toolkit Pin
Nirav Doshi1-Oct-03 2:30
Nirav Doshi1-Oct-03 2:30 
QuestionHow do? Pin
linjie30-Sep-03 4:03
linjie30-Sep-03 4:03 
AnswerRe: How do? Pin
Retsof Nawor30-Sep-03 10:14
Retsof Nawor30-Sep-03 10:14 
GeneralRe: How do? Pin
linjie1-Oct-03 2:40
linjie1-Oct-03 2:40 
Questionhow to specify a schema? Pin
linjie28-Sep-03 2:18
linjie28-Sep-03 2:18 
AnswerRe: how to specify a schema? Pin
drikusr28-Sep-03 14:17
drikusr28-Sep-03 14:17 
GeneralRe: how to specify a schema? Pin
linjie28-Sep-03 16:21
linjie28-Sep-03 16:21 
GeneralRe: how to specify a schema? Pin
drikusr28-Sep-03 16:55
drikusr28-Sep-03 16:55 
Generalhelp with passing an asp variable to xsl Pin
greyth27-Sep-03 5:06
greyth27-Sep-03 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.