xslt - org.xml.sax.SAXParseException: Element type "a" must be followed by either attribute specifications, ">" or "/>" -
i getting error posted in title.
this works:
<xsl:variable name= "data"> <xsl:value-of select="abc"/> </xsl:variable> but when seek add together variable href doesn't work next code:
<a href="../depts/"{$data}".html"><xsl:value-of select="group"/></a> i next error:
org.xml.sax.saxparseexception: element type "a" must followed either attribute specifications, ">" or "/>" how can resolve this?
you have invalid xml because of quotes around {$data} here:
<a href="../depts/"{$data}".html"> ... </a> ^ ^ do need these quotes? isn't want?
<a href="../depts/{$data}.html"> ... </a> xslt
No comments:
Post a Comment