This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Including a document containing static HTML


(sorry if this is covered in archive/FAQ - after a few hours of searching, 
I haven't found what I need)

I have an application which generates XML, then uses XSL to convert that 
into HTML.  One of the functions has users uploading blocks of html code to 
then be included in the output.

First: How to include the file?  Imagine the xml is of the form

<user_info_node file_name="XXX"/>

I have tried the following without success (no error given - just nothing 
included in the output html):

<xsl:value-of select="document(@file_name)" disable-output-escaping="yes"/>

Second: Will the disable-output-escaping="yes" save me from potentially 
non-perfectly-formed HTML (by XML standards)?  For example, any <br>'s with 
no closing to </br> that are contained in the uploaded HTML block?  How 
have other people dealt with this type of problem?

Thanks in advance


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]