Outputting xml using style sheet.

Hi all, hope you can help with this issue, if not back to the drawing board.
I'm generating some XML wich will be transformed into XSLFO using an XSL stylesheet. The problem is that my generated XML contains values that have < and > tags, hence the transformer throws an Exception:
Caused by: javax.xml.transform.TransformerException: The value of attribute "value" must not contain the '<' character.Here is an example of my XML "
<conditionsdto>
        <conditions>
            <item>
                <details value='This contains XML'>
             </item>
    </conditions> 
</conditionsdto>This is the snippit of xsl that pulls out the value:
<fo:block xsl:use-attribute-sets="blk.001" space-after="2mm">
          <comment>
                <xsl:value-of select="details/@value"/>
         </comment>
</fo:block>Is there a way of telling the transformer to ignore the content within the xsl:value-of select, so that it is just treated as plain text.
Hope you can help.

The problem is that my generated XML contains values that have < and > tagsThen don't do that. If you don't escape those characters as < and > then you aren't actually generating XML. So instead of <details value='This contains a <head> element'>you should generate<details value='This contains a <head> element'>You can't use a CDATA section in an attribute.

Similar Messages

  • Is it good idea to use style sheet for the bgcolor of a table that is just

    is it good idea to use style sheet for the bgcolor of a table that is just being used for formatting

    Hi,
    CSS is a way to do so. I don't think that there is any problem with using CSS on any kind of table
    Frank

  • Using Style Sheet w/ XSQL

    I have been getting into XSQL and hit a wall when trying to
    display my XSLQ w/ a 2nd style sheet.
    This is what I have been doing:
    1)XSQL query.
    File Name (d2.xsql)
    2)I then re-format that query w/ a stylesheet and return XML.
    FILE NAME (d3.xsql)
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="devcorner.xsl"?>
    <xsql:include-xsql href="d2.xsql" xmlns:xsql="urn:oracle-xsql"/>
    3) Now I want to display my XML document dynamically w/ a
    stylesheet and output XML
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="devcorner.xsl"?>
    <xsql:include-xsql href="d3.xsql" xmlns:xsql="urn:oracle-xsql"/>
    However step 3 always returns an error of:
    -->XML document must have a top level element.
    Any ideas on how I can get around this?
    Thanks!
    -Stephen

    Shaun, thanks for the response.
    The 2nd XML does have a root element (devcorner) and if I save
    this XML to my hard drive I can do a transformation on it, using
    my stylesheet.
    This is what the 2nd XML looks like
    <?xml version="1.0" encoding="UTF-8" ?>
    - <devcorner>
    + <category> (collapsed)
    </devcorner>
    The problem has to do w/ when I try to use the following XSQL to
    transform the above XML
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="devcorner.xsl"?>
    <xsql:include-xsql href="d2.xsql" xmlns:xsql="urn:oracle-xsql"/>
    thanks.
    -Stephen

  • Using style sheets in a button click event

    hi. doing a project and extending the WoodStocks application. so need to google and find how to add keyboard short cuts to the data grid, the combo box, how to manually add the read only and edit columns and to do error handling for the save button. once
    i do this, then need to have two buttons. two different styles sheets, and using xml and xsl. so, do i just then do the xml and the xsl style sheet headers in a cutton click event. have gone through the learning from http://www.w3schools.com, and done the
    xml and the xsl tutorials. and so. just asking for your feedback, tips and tricks. and now, looking to have two style sheets, one for a visual user and one for a blind user. what aspects should i have in each style sheet. looking for feedback, advice. thanks.
    marvin.
    http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz

    hi. but i need to do this in c #, so it is relevant to c#
    http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz

  • How to use style sheet

    Hi,
    I have created a ui5 page and i want to apply style to it.
    so can anyone help me with the process on how to use the separate css file and style the different elements.
    Thanks

    Hi Anshul,
    use the statement
    jQuery.sap.includeStyleSheet(jQuery.sap.getModulePath("<project name>")+'/resources/css/zexthcmleavereqcre.css');
    This would include your css in the project.
    find attched a sample folder structure make folders under webcontent folder
    in the above case the project name is 'local_json'.
    Make sure you are using the right path to point to your css file.
    Thanks and Regards, Venkatesh

  • How does one export a style sheet?

    Adobe Frame 12 help says:
    "You can also use style sheets (.css) to manage the styles in the published output. In this case, you can export the current styles to a .css file. You can then open this file in a text or .css editor (such as Adobe Dreamweaver), make changes to the styles in this file and import the file back.
    To export and import the style sheet:
    To export the output styles defined for the current output, click Export . "
    OK, so where is this?
    Nothing I can find on the menus provide this option displaying regular Frame or XML view.
    Also, when I find it, do I need to load the css into Dreamweaver? Shouldn't I be able to use the XML view?

    No Colum, I've since found it. (Actually I found a video by Bernard A. that explained a bit).
    In the "Publish" pod are 5 choices (epub, html, etc) and selecting one highlights a button for settings. Edit settings has TWO tabs, one called Style Mappings which is where the button for Import/Export styles can be found.
    There's a button there for Automap Paragraph Styles which I'm going to experiment with next.
    Thanks for your efforts to solve my huge learning curve.

  • How to apply style sheet (.css) in Weblogic directory listing

    Hi,
    We are migrating a directory listing application from Apache to Weblogic.
    Earlier we did this by Apache httpd.conf entry like below :
    <Directory "/opt/apache/httpd-2.1.9/htdocs/Myreportfolder">
    IndexOptions FancyIndexing FoldersFirst NameWidth=* XHTML
    IndexOrderDefault Descending Date
    IndexStyleSheet "/css/style.css"
    </Directory>
    /opt/apache/httpd-2.1.9/htdocs folder has all it's usual resource files.
    We were able to see documents in "Myreportfolder".
    Now we have moved to Weblogic and using virtual directory mapping as below and we are trying to achieve the same thing:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wls:weblogic-web-app xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
    - <wls:container-descriptor>
    <wls:index-directory-enabled>true</wls:index-directory-enabled>
    <wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by>
    </wls:container-descriptor>
    - <wls:virtual-directory-mapping>
    <wls:local-path>/Myreportfolder</wls:local-path>
    <wls:url-pattern>/*</wls:url-pattern>
    </wls:virtual-directory-mapping>
    <wls:context-root>/getreports</wls:context-root>
    </wls:weblogic-web-app>
    We are able to view the reports but we do not get look-and-feel of Apache like directory listing.
    but we encounter below issues:
    1) File/Folder icons are not visible - we want to use style sheets in http header from the response that is returned from weblogic server
    2) Filename is limited to 29 characters when it is showing
    3) Files are not sortable as Descending order - we sorted using tag <wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by> but the latest file is shown at the last
    We are thinking that Weblogic must be having some configuration like Apache httpd.conf where we can apply style sheets (css ).
    We would appreciate af anyone can provide better insight into the issue.
    or is it possible to extend weblogic.servlet.fileservlet class to serve this purpose.
    Thanks & regards,
    Rabi

    Hi Vikash,
    Check the below links which will you idea on the same.
    Stylesheet for WDA without integrating in SAP Portal
    Apply custom css to WebDynpro application
    Thanks
    KH

  • Style sheet with ADF

    Hi,
    I want to use Style sheet in my ADF project. I use the 'styleclass' component for each of my field in the jsp page. But I dont see any effect on my jsp page. Is there any thing to be added to web.xml or faces-config.xml files?
    Please let me know as I need this soon.
    Thanks,
    Haripriya.S

    Hi,
    I tried to have a custom skin in my application. I basically need a blue background for my application in all the pages.
    Here is the code that I added in my stylesheet (rebillSkins.XSS). I have also configured the path of the stylesheet in adf-faces-skins.xml file.
    Code:
    <style name="AFDarkBackground">
    <property name="background-color">#c5d4e9</property>
    </style>
    <style selector="af|body">
    <includeStyle name="AFDarkBackground"/>
    </style>
    But when I run my application I get the white backgroud as before. Am i wrong in my code anywhere? Please could you help me?
    Thanks,
    Haripriya.S

  • Applying different style sheets

    I'm not sure if this is possible, but I would like to apply
    different style sheets to different outputs.
    For example: (Both outputs use the same data)
    Output to PDF = Style Sheet 1
    Output to WebHelp = Style Sheet 2
    Is there an easy way to do this?

    It would be lovely to select a style sheet as you are
    generating the output, wouldn't it? As far as I can see, however,
    style sheets are assigned per topic thru a reference RH sticks in
    the HTML header.
    Which leaves you two options:
    1) The simple but tedious way: In the Topics list (on the
    right), select all the topics. Right-click and pick Properties.
    When the Properties window opens, choose the stylesheet you want on
    the Appearance tab. Click OK. You would need to do this each time
    you switch from generating WebHelp to generating PDF.
    2) The complex but cool if it works way: I don't use the PDF
    plug-in - do you still generate PDF from the Printed Documentation
    layout? If so, can you use the StyleMapping.dot template? (I seem
    to remember that the PDF goes through a Word stage behind the
    scenes.) You can open StyleMapping.dot in Word (be sure to use File
    > Open so you get the .dot) and change the styles into what is
    effectively a new style sheet. It may take some tweaking - I still
    can't get my bulleted styles to come out quite right - but it's
    great for global changes.
    HTH,
    Elisa

  • Problems with a style sheet in InDesign CS3

    Hello everyone. I was wondering if anyone had any clue as to what the holy heck is happening to me.
    I am attempting to standardize our documents and use style sheets--hey, what a concept, right? So I'm going through a recently completed document and grabbing text and using that to create paragraph style sheets and character based style sheets.
    With one paragraph style sheet, the text is set to Janson Text Lt Stnd 55 Roman. However, when you apply the style sheet to a paragraph, the first word sets to a missing font. The rest of the paragraph is OK. It's only the first word. The paragraph style sheet does not have a "+" next to it. Highlighting the individual word and reapplying the paragraph style sheet does not change this.
    I went to the character style palette, thinking that there was an override. Nope, the character style was set to "None." I clicked on "Override" to apply the paragraph style, and again, the first word is stubbornly refusing to change.
    What gives? I am stumped!
    Best,
    Chryss

    Styles based on Basic paragraph are a nightmare because every document starts with a basic paragraph style, and there's no guarantee that it will be the same from document to document. When you import styles based on Basic Paragraph from some other document, different attributes will be overridden depending on what is the same, and what is different.
    The best way to deal with this is to either import the basic paragraph stle along with everything else, or put all the docs in one book file and pick one to use as the master, then synchronize the styles.
    It sounds like your first word problem could be an applied character style, though, or less likely, a nested style.
    Peter

  • FF 5 on mac is no longer displaying background images that are defined in style sheets. This has woeked correctly for years with older versions.

    The problem occurs both in safe mode with all add-ons turned off and in normal mode with add-ons active. I see the missing images error on most sites using style sheets including Mozilla.

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    * Firefox > Preferences > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    See also http://support.apple.com/kb/HT1343#odd10

  • Style sheet with Struts frame work

    Hi,
    I am using MyEclipse editor. I am trying to use Style sheet in my JSP page using Struts frame work. I tried several ways but style sheet is not applying on my JSP page. Please look at my code and let me know where is the problem.
    1. I created a project called "AcmiReports". In the webroot I created folder called "CSS". In this folder I created "AcmiReports.css" file. In my JSP I am using like this
    <head>
    <link rel="stylesheet" type="text/css" href="/AcmiReports/WebRoot/css/AcmiReports.css">
    </head>
    Where am I doing wrong? I read somewhere that I need to set some thing in struts-config file. Is this true.
    Please help me.
    Thanks,
    Anamika

    No its not working fine, i m also facing the same problem with my code..
    when ever i come to jsp page through action css works fine, but if i directly forward to jsp page, css doesnt work
    can any body help me, its to urgent.. i need to submit my project till 1st of april... please do the need full asap
    i m copying the code used to apply the css in my jsp file
    <title><bean:message key="login.title" /></title>
    <link href="default.css" rel="stylesheet" type="text/css" />
    <script language=javascript src="clock.js" type="text/javascript"></script>
    same code works fine through action, but through normal forward it doesnt...

  • Applying style sheets to Jato

    Is there an example of this somewhere or some documentation? I'm using Jato
    1.2.
    Also, in the emails that fly back and forth I have seen a date sample
    mentioned.
    Where is this? I have got the JatoSamples.war deployed and I don't see a date
    example. I just wonder if I'm missing some other Jato examples.
    Thanks.
    Belinda

    There is some confusion here. The JatoSample project that shipped with the
    Developer CD does not include the Components samples (which includes the Date
    example). The "live" sample that is viewable on the intenal web site
    http://ias.red.iplanet.com/jato/ does include the Component samples.
    We intentionally disabled the Component samples in the Developer CD version
    because at the time that it shipped we had an unresolved issue with running the
    Component samples on certain servlet containers. That issue has been favorably
    resolved.
    The downloadable version of Jato 1.2 should contain a version of the JatoSample
    which does have the Component sample enabled.
    ----- Original Message -----
    From: Matthew Stevens
    Sent: Thursday, November 29, 2001 8:39 AM
    Subject: RE: [iPlanet-JATO] applying style sheets to Jato
    Belinda,
    Sorry for the delay. JATO is now available on http://developer.iplanet.com
    and the JATO Sample WAR file is available separately for download - so make
    sure you have this latest example. The sample is available LIVE on internal
    sites which I will send you offline. We are working to have this and other
    samples running live on the public web site shortly.
    For the Date component example please check out the Components section in
    the Index of the running application and the following in the WAR file
    WEB-INF/classes/jatosample/module1/E0130Viewbean.java
    WEB-INF/jatoSample.tld
    WEB-INF/classes/jatosample/components
    Could you please elaborate on your requirements for style sheets. Other
    than using style sheets normally as you would with JSPs, what are you trying
    to do? We would like to be focused in our answers.
    matt
    -----Original Message-----
    From: Belinda Garcia [mailto:<a href="/group/SunONE-JATO/post?protectID=014056235009078154169082148140172241239144044214017123152006048067">belinda.garcia@s...</a>]
    Sent: Tuesday, November 27, 2001 5:08 PM
    Subject: [iPlanet-JATO] applying style sheets to Jato
    Is there an example of this somewhere or some documentation? I'm using Jato
    1.2.
    Also, in the emails that fly back and forth I have seen a date sample
    mentioned.
    Where is this? I have got the JatoSamples.war deployed and I don't see a
    date
    example. I just wonder if I'm missing some other Jato examples.
    Thanks.
    Belinda
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    [Non-text portions of this message have been removed]

  • Style Sheets & templates enquiry

    I am only just getting into using Style Sheets but am not sure if I can assign a particular location & width to a paragraph, which, if changed, will change all documents using it?
    Is there a way to create a dynamic template in InDesign which is referenced/ linked to all the documents based on it?
    Thanks

    There is no dynamic styles (like CSS) in InDesign, but you can use Book feature for synchronizing styles between documents.
    You can´t define size or location parameters of a column with paragraph style, with object styles you can define fixed width of column if it helps.....

  • Cascading style sheets with htp procedures and functions

    I'm new to style sheets. I currently build dynamic web pages with database procedures using htp/htf. Can someone tell me how to use style sheets with this functionality.
    Thanks

    This is a good point to start learning about css:
    http://www.htmlhelp.com/reference/css/

Maybe you are looking for

  • How do I find my old iPhoto Library?  It disappeared.

    Hello, iPhoto was frozen for a few days (it wouldn't move past the grey, loading screen).  I forced it to a quit a couple times to no avail.  I finally updated my software from the Apple drop down box and the computer restarted.  After it restarted,

  • How do I sync a single iPhone with music on one PC and apps on a different one?

    I have an iPhone 4.  I currently sync with only one Windows PC; my work PC, where I keep my apps, calendar, email, etc (my work PC does not have anything BUT apps, calendar, email, notes).  I want to add all of my music to the same iPhone, though, an

  • Error Addition to stock of material A in storage type 002 is not allowed

    Dear all, I am doing GR for PO in WM. During TO creation I am getting this error Addition to stock of material  A in storage type 002 is not allowed. Hence  no storage bins can be entered. May I know under what scenarios this type error props up? Tha

  • Drawing oval

    Here i draw net consist of 6 rows and 7 columns , then i want to draw oval in the top of the net . I think i wrote correct code but the oval not appear . I want to know why ?? my simple code : import java.awt.BorderLayout; import java.awt.Dimension;

  • Select query execution steps/order

    I want to know what order is followed while executing a sql query, and why? select, from, join, where, group by, having, order by Thanks,