How can I make my XSLT processor accept html code ?

In my applications the Oracle xslt processor wont accept simple HTML tags within an XML source while transforming the source into HTML. Both processors either will throw parser exceptions or ignore the HTML code in the XML source completely, though output-escaping is explicitly enabled.
In detail, I want to transform an XML source like this...
<element>
Hello, this is a <b>XML</b> text source mingled with html<sup>TM</sup>
</element>
... with an XSL Stylesheet like this...
<xsl:stylesheet>
<xsl:output method=html cdata-sections=element/>
<xsl:template match=element>
<html>
<body>
<xsl:value-of select=. output-escaping=yes/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
... which should result in a HTML code like this ...
<html>
<body>
Hello, this is a <b>XML</b> text source mingled with html<sup>TM</sup>
</body>
</html>
The result, however, is always like this:
<html>
<body>
Hello, this is a XML text source mingled with htmlTM
</body>
</html>
This means that the additional HTML tags inside the XML source have been completely ignored by the XSLT processor though I enabled the output-escaping.
If anybody should think now that mingling HTML with XML text is stupid because I could also format the result with the XSL Stylesheet itself, he might be right, of course, but: I cant avoid this because in my application the XML source results from a users web form entry. The user working with the form must be able to decide whether he wants to include HTML in his text or not. In any case, any HTML code he enters should just be transported WITHOUT ANY CHANGES to the resulting HTML page, not omitted without comments! It seems quite simple to me, but the XSLT processor doesnt want to agree with me in this point :-(
So, once again in brief: Is there any possibility to tell my XSLT processor not to parse, transform or manipulate HTML tags, but to transport them unchanged to the output ?
After weeks of research any helping sign would be a great relief...
Many thanks in advance.

I don't understand the answer, can you please expand. I am trying to do a similar thing by creating an output buffer,
assemble a mix of text and html tags and then output this buffer later. All of the html tags are skipped or re-escaped in the final html:
In this example I want to print the IPRCROP, then add an html break (<br>).
Example 1. Use xsl:text with escape = yes
<xsl:variable name="buffy">
<xsl:for-each select="documents/document">
<xsl:value-of select="IPRCROP"/>
<xsl:text disable-output-escaping="yes">&lt;br&gt;&lt;/br&gt;</xsl:text>
</xsl:for-each>
</xsl:variable>
<xsl:value-of select="$buffy"/>
In this case the <br> and </br> end up re-escaped in the output html as #60 etc. so they appear literally as
ALFALFA <br> BARLEY <br>
and in source as: ALFALFA&#60; br &gt; &#60; /br &gt;BARLEY
Example 2, try as pure text, it just skips the <br></br> altogether
<xsl:variable name="buffy">
<xsl:for-each select="documents/document">
<xsl:value-of select="IPRCROP"/>
<xsl:text><br></br></xsl:text>
</xsl:for-each>
</xsl:variable>
<xsl:value-of select="$buffy"/>
output = ALFALFABARLEY

Similar Messages

  • How can I link .svg files in the .html code?

    How can I link .svg files in the .html code?

    I use the FileBrowser app by Stratospherix to do this.  I can watch / stream my movies on my iPhone / iPad from my hard drive connected to my Airport Extreme.  I can access all the files on that hard drive as well. 

  • How can I package a custom block of HTML code to be inserted by clicking the insert panel

    Is there a way to package custom HTML code such as
    <figure>
    <img src="" alt="" />
    <figcaption>
    Caption
    </figcaption>
    </figure>
    so that I can click a button on the insert panel and insert this code?

    Make it a snippet. You will have to insert from the Snippets panel.

  • How can a component generate both stylesheet and HTML code?

    Hi All,
    I've the following problem. My team is working on several "complex" components which provide a rich client-side behavior (via javascript and css). The components are in charge of generating the following:
    + Stylesheet (linked or inline)
    + Javascript via external libraries
    + HTML code
    The problem comes from the fact that the CSS must be generated between the <HEAD> and </HEAD> tags (according to the HTML spec). Obviously, the rest of the code (javascript and HTML) is generated somewhere else on the page, and this is the problem.
    Any ideas on how to solve this?
    I've been thinking about a pre-process phase that would call every components to render the Css, but it requires substancial changes to JSF... Any help is greatly appreciated
    Thanks in advance,
    Stephane
    http://www.otrix.com

    Thanks for the reply but in my case I absolutely need to generate an addhoc css such as:
    <style type="css/....>
    .name 1 {position: absolute; visibility: hidden... }
    .name 1 {padding: 0 0 0 0;}
    </style>
    What I do is that I spit-out the css first and then generate the HTML. It works fine in IE but I really wanted to be conform to the HTML spec which says that a STYLE tag should be located in the <HEAD> tag. I guess it's probably too much work just to be compliant with the spec....
    Thanks again,
    Stephane

  • How can I make an email signature with html

    I want to do what the question asks.
    When I put in the html it shows the code and not the links. Any help is greatly appreciated.
    Thanks

    Add this:
    ?cc=[email protected]
    You can pre-populate any part of the email. Here's a list of examples: How to Use the Mailto Syntax - Examples

  • How can i make a email for my printer

    how can i make a email for my printer to send the things to the email and get it printed if i was out of the house my printer model is 3525

    Hi alhashmi_sy,
    Welcome to the HP Support Forums. I see that you would like to learn how to setup the ePrint feature of your Deskjet Ink Advantage 3525 printer.
    The first step is to connect your printer to your wireless network. Please follow the steps in the Installing the Printer Software for a Wireless Network Connection document for your operating system. If you have already setup your printer with a USB cable, each operating system section has the steps to switch from the USB connection to a wireless connection.
    After connecting the printer to your wireless network please follow the steps for Getting the Printer Claim Code. Once you have the web services information sheet with your claim code please Set Up a Custom Email Address for ePrint.
    You should now have a customized ePrint email address for your printer. If you run into any issues please let me know at what step things went awry and the contents of any error messages. Please also let me know what operating system you are using on your computer (whatsmyos.com). Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How can I make a server differ between two or more clients?

    How can I make a server differ between two or more clients?
    The clients can connect and talk to the server fine, but how can I make the server talk to one, two or all clients? i.e. what would be a good way to implement this?
    Currently, the server listens for connections like this:
    while (listening) {
    try {
    new ServerThread(this, serverSocket.accept()).start();
    I guess one way would be to add the ServerThreads to a Hashtable with the client ID as key, and then get the ServerThread with the proper client ID, but this seems unnecessary complicated. Any ideas?

    Complicated was perhaps the wrong word, I should have
    written something like it doesn't "feel" right. Or is
    this a common and good way to solve communication
    between a server and multiple clients?Thats pretty much how I do it. I normally use an array or ArrayList of Sockets instead of HashTable, with [0] being the first player etc.... Then you can communicate with exactly who you want. If you want to send bytes to all of them, just send the same thing to each socket individually (or is there a better way to do this?).

  • How can I make server use single class loader for several applications

    I have several web/ejb applications. These applications use some common libraries and should share instances of classes from those libraries.
    But applications are being deployed independently thus packaging all them to EAR is not acceptable.
    I suppose the problem is that each application uses separate class loader.
    How can I make AS use single class loader for a set of applications?
    Different applications depend on different libraries so I need a way that will not share library for all applications on the domain but only for some exact applications.
    When I placed common jar to *%domain%/lib* - all works. But that jar is shared between all applications on the domain.
    When I tried to place common jar to *%domain%/lib/applibs* and specified --libraries* attribute on deploying I got exception
    java.lang.ClassCastException: a.FirstDao cannot be cast to a.FirstDaoHere http://download.oracle.com/docs/cd/E19879-01/820-4336/6nfqd2b1t/index.html I read:
    If multiple applications or modules refer to the same libraries, classes in those libraries are automatically shared.
    This can reduce the memory footprint and allow sharing of static information.Does it mean that classes should be able to be casted ?

    You didn't specify which version of the application server you are using, but the config is similar as long as you know what to look for. Basically, you need to change the classloader delegation. Here's how it is done in 8.2
    http://download.oracle.com/docs/cd/E19830-01/819-4721/beagb/index.html

  • How can i make buttons in an article to go for other articles in Folios Builders for Ipad?

    I am trying to make buttons in an index, for goingo to other articles, but they never worked here. When a i put Go to Destination, and choose de Indd file, it does not work.
    Can i make a scrollable frame a button either? When i tryed, it did not work, not even the button, and the scrollable frame.
    Please, need some help here.

    WHat is navto? is navegate to...?   How can i do this?
    thanks a lot for your attenttiosn.
    Em 29 jan 2014 às 06:26, Bob Levine <[email protected]> escreveu:
    Re: How can i make buttons in an article to go for other articles in Folios Builders for Ipad?
    created by Bob Levine in Digital Publishing Suite - View the full discussion
    Go to destination is unsupported in DPS. You should be using go to url with a navto: command.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6064623#6064623
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6064623#6064623
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6064623#6064623. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Digital Publishing Suite at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • WHY does Muse upload every page when I only change one thing. And how can I make Muse faster.

    I have a bunch of sites I do for people that are similar. Here's one: www.mattfelis.com.
    When I make a single change on one page, just a text change (the last time I deleted a freakin' period) and tell Muse to Upload it to FTP host, it uploads every single page in the site. Every one. And since there are 55 pages, that means it takes about 20 minutes with a darned fast upload speed (20MBPS upload). It isn't the uploading that kills me, it's the Exporting of pages. All of them. All 55. Why is it doing this?
    And while we are talking about speed, most of the time in working with these files I see what I call the beach ball of death on a constant basis. Just opening a page from Plan Mode or going back to Plan Mode from a page can take 20 seconds. I know, I've counted. Copy and paste between pages can take longer. I am running a 3 year old Mac Pro with 12 gigs of RAM and tons of disk space. How can I make Muse work better. More RAM? To speed it up I find that I have to quit about every 30 minutes and restart Muse to get it back to any semblance of speed. Smaller sites obviously don't do this but big ones (I have a lot of those) do.
    Any help would be greatly appreciated.

    There's a bug we've become aware of and fixed for the next major release where use of one or more objects on a master page that have different states that require output as separate background images can result in that master page and all pages where that master page is used always being considered out-of-date and in need of re-export and upload.
    Unfortunately, there's no workaround short of removing such items from your master page(s).
    If you're not already part of the Private Beta Program and are interested in working with the next version of Muse prior to its official release, the Private Beta Program is open to all subscribers who can accept the terms of the Non-disclosure Agreement. You can join via the Help menu within Muse. The Beta Program for the next major release will be started soon.

  • How can i make the sound louder than it already is?

    How can i make this laptop louder than it already is? Is the sound quality of this mode typically this low?

    Hi,
    Are you talking about a home theater which is connected to you laptop or the laptop istelf ? If the laptop itself then what is it ? To help us answer question quicker, please read this:
       http://h30434.www3.hp.com/t5/First-Time-Here-Learn​-How-to/Welcome-Get-started-here/td-p/699035
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • In my computer recovery has been deleted so how can i make recovery again in my computer

    how can i make recovery in my computer when recovery has been deleted

    Hi,
    The only way to re-create the Recovery Partition would be to reinstall the operating system using your recovery DVDs - make sure to back-up all your personal files etc first before doing this.
    If you don't have these DVDs, you can order a replacement set of Recovery Discs using the link below.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00810334&cc=us&lc=en&dlc=en
    If you have any problem with this link, order them directly from HP.
    If you live in the US, contact HP Here.
    If you are in another part of the world, start Here.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • How can I make my BlackBerry 8800 looks like BlackBerry 8900 or Bold?

    Hi again,
         Umm.. How can I make my BlackBerry 8800 looks like BlackBerry 8900 or Bold?
              Thanks....
    Solved!
    Go to Solution.

    Hey janvaughnquero11,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    The BlackBerry 8800 smartphone has 4.2 or 4.5 software as the latest.  BlackBerry 5, 6 or 7 device software is not available for that model.  
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • How can I make a PDF file from each folders with layers, where each page is a each folder?

    How can I make a PDF file from each folders with layers, where each page is a each folder?

    I found an answer to my own question. A work around of sorts.
    Download Photoshop Elements 6 for Macintosh. With PSE6 I made a slide show with 550 images 1920x1200, without thumbs. I ran into one problem making the slide show. My images contained 4 images which had not ben created by Photoshop and could not be included in the slide show. Opening the images in Photoshop CS4 and re-saving them still did not make then acceptable. Not a big deal. I probably could have fixed the four images by stripping all EXIF data before opening them in Photoshop. BTW, PSE6 made the slide show in demo mode.
    I hope the bug in Photoshop CS4 will be fixed in Photoshop CS5.

  • I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    Where are you located?
    Just go and buy an iTunes gift card at any store in your country.
    Then follow all the steps you did, but when it asks you for the credit card number, there shoujld be a GIFT CARD option which will let you load your account witht eh funds form the gift card without providing a credit/debit card #.

Maybe you are looking for

  • Import AOL Communicator mail failed. Error: no valid mbox files were found

    I´m having problems to import (archived) AOL Communicator mail messages into Mac Mail. After choosing File > Mailboxes > Import data from "Other" and then selecting the the folders "LIbrary" > "Application Support" > "AOL Communicator" > "local" > "A

  • Inline Error Message in a table cell

    There is a requirement where in an error message is to be thrown in a table cell. (For eg, when the filed value is getting populated from a VO.Considering the scenario where the value is null for some reasons.)Can anyone suggest to implement the same

  • Error in Rush Order

    Hi, While doing billing in rush order i got an error that"No billing document was  generated".              Plz help me

  • Error when deploy application on weblogic's console(weblogic 10 on AIX)

    ?:| After successfully start weblogic,I access console and select "Deployment".While I click "Finish" after choose the application named "ls_app", an error appears as follow. - Messages The deployment has not been installed. java.lang.NullPointerExce

  • Cant find my purchased videos

    i believe i have deleted over $150 worth of videos. I wen to tranfer everything from my mac mini to my external hard drive exactly like the guy in the apple store told me and now they are gone. they are not in my deleted files/folder/trash can either