[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: how to embed this complicated set of characters in

Subject: RE: how to embed this complicated set of characters into the result file via an XSL
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sun, 25 Jan 2004 16:34:55 -0000
mso stylesheet
> The problem is that it has such a weird set of characters 
> that my attempted methods (tried and failed, as explained 
> below) are not working.

Word's angle-bracket syntax is neither XML nor HTML, so neither the XML
nor HTML output methods in XSLT can generate it. You have two options:

(a) write your own output method (many XSLT processors allow this, for
example by subclassing the standard methods)

(b) use disable-output-escaping to generate angle-brackets directly,
without causing them to be escaped.

The first approach is architecturally cleaner, but the second is
probably quicker.

Michael Kay

> 
> 
> <html xmlns="http://www.w3.org/TR/REC-html40" 
> 	xmlns:v="urn:schemas-microsoft-com:vml" 
> 	xmlns:o="urn:schemas-microsoft-com:office:office" 
> 	xmlns:w="urn:schemas-microsoft-com:office:word">
> 		
> <head>
> 
>  ************ TEXT NEEDED INSIDE THE HEAD: *************************
> 
> <meta http-equiv="Content-Type" content="text/html; 
> charset=iso-8859-1"/> <meta name="ProgId" 
> content="Word.Document"/> <meta name="Generator" 
> content="Microsoft Word 10"/> <meta name="Originator" 
> content="Microsoft Word 10"/> <title>Untitled Document</title>
> 
> <!--[if gte mso 9]>
> <xml>
>  <o:DocumentProperties>
>   <o:Author>word</o:Author>
>   <o:LastAuthor>word</o:LastAuthor>
>   <o:Revision>0</o:Revision>
>   <o:Created>2000-01-01T02:59:00Z</o:Created>
>   <o:LastSaved>2000-01-01T02:59:00Z</o:LastSaved>
>   <o:Company>HP</o:Company>
>  </o:DocumentProperties>
> </xml>
> <![endif]-->
> 
> <!--[if gte mso 9]>
> <xml>
>  <w:WordDocument>
>   <w:TrackRevisions/>
>  </w:WordDocument>
> </xml>
> <![endif]-->
> -->
> 
> ********************************************************************
> 
> </HEAD>
> 
> METHODS I HAVE TRIED AND FAILED:
> 
> METHOD 1:
> 
> Using a CDATA section:
> 
> <![CDATA[
> 
> <!--[if gte mso 9]>
> <xml>
>  <o:DocumentProperties>
>   <o:Author>Luau Document Builder - Rendering Engine - 
> asanwal@xxxxxxxxxxxxxxxxx</o:Author>
>   <o:LastAuthor>Luau Document Builder</o:LastAuthor>
>   <o:Revision>0</o:Revision>
>   <o:Created>2000-01-01T02:59:00Z</o:Created>
>   <o:LastSaved>2000-01-01T02:59:00Z</o:LastSaved>
>   <o:Company>MW2 Conulting</o:Company>
>  </o:DocumentProperties>
> </xml>
> <![endif]-->
> 
> <!--[if gte mso 9]>
> <xml>
>  <w:WordDocument>
>   <w:TrackRevisions/>
>  </w:WordDocument>
> </xml>
> <![endif]-->
> 
> ]]>
> 
> 
> METHOD 2:
> 
> Using an external file where the given text is put with and 
> without CDATA sections.
> 
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY mswordmarkup SYSTEM "mswordmarkup.dat">
> ]>
> 
> I can never get the required output. The text does not get 
> included or it gets loaded with &lt; & &gt; stuff.
> 
> BTW - These are the XSL settings I have for the output etc.
> 
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:output method="html" encoding="UTF-8" indent="yes"/>
> 
> 
> Please suggest a way to get this done so that I can have in 
> included into my resulting HTML when I execute the XSLs.
> 
> (If you might be suggesting a break up of the given TEXT to 
> allow inclusion please SHOW me how I should break it up to 
> have it included AS IT IS NEEDED in the HTML)
> 
> Thanks,
> _____________________________________________________
> 
> Abhishek Sanwal
> HP - Houston Campus
> ?
> ?
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.