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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

poorly formed attributes needed 1

Status
Not open for further replies.

mgriffith

MIS
Jul 3, 2001
177
US
anyone know how i can output this in my xsl-parsed xml document
--------------------
<pre wrap> text here</pre>
-------------------

thanks
mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
yes.

make it well formed:

<pre wrap=&quot;true&quot;>text</pre>

 
i've tried this, as well as
wrap=&quot;wrap&quot;, wrap=&quot;yes&quot;, wrap=&quot;&quot;
and none seem to work...i know that with <xsl:eek:utput type=&quot;html&quot;/>, it will render some things poorly formed, such as <br/> --> <br>, but not this one...any other ideas? mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
The problem is actually the browser, not the xml. Wrap in pre tags seem to be obsolete in post 4.0 browsers, something style should be able to help with.

Take a look at thread215-300776 more discussions on this problem.

The only other way to do it would be to put the tag in cdata tags, but you wont be able to treat it like a node in xml...

eg
<![CDATA[&lt;pre wrap&gt;]]><xsl:value-of select=&quot;foo&quot;/> <![CDATA[[&lt;/pre&gt;]]>

not a good solution.


Matt




 
i didn't realize wrap doesn't work in ie, that was probably my problem the whole time

i'm just going to use a <div> rather than <pre> with some cool css, and a nice
replace(replace(&quot; &quot;, &quot;&amp;nbsp;&quot;), &quot;\n&quot;, &quot;<br/>&quot;)

and you're right, bad solution to throw an element in cdata

thanks for the comments and suggestions mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top