Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL : make a markup as a constant

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hi everybody,

I would like to "close and then open" a markup like that :

...
<xsl:if test=&quot;$count = 4&quot;>

</tr><tr> <-- I would like to close a row of an Array
and then open a new one

</xsl:if>
...

The problem is that the XSL Engine raises an error because <tr> and </tr> can't be used like that in XML format...

Could you give me a tip to set those markup as a &quot;String&quot; or as a &quot;contant&quot;, but in order to be recognize as effective markup in the final generated document

Thanks by advance !


Schaggy
 
The parser thinks you're adding tags when you are really just adding text. Try escaping the &quot;<&quot; at least, using &lt;

I don't think you need to escape anything else.

Uura
~~~~
&quot;Common sense tells you that the world is flat.&quot;
 
you could put it inside of
<![CDATA[ ]]>
tags if you must use that syntax
mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top