Inserting xsl-stylesheet with XmlCursor

Has anyone successfully inserted xml-stylesheet tags with XmlBeans? I tried using an XmlCursor thusly:
<pre>
//Insert stylesheet ref
XmlCursor xml = m_respDoc.newCursor();
xml.toFirstChild();
xml.insertChars("<?xml-stylesheet type=\"text/xsl\" href=\"/Myweb/output.xsl\"?>");
</pre>
However, when I do that, XmlBeans inserts "xml-fragment" around the payload of the document.
Ideally, I should be able to just insert the stylesheet tag, but I found nothing in the XmlBeans API docs to suggest this was doable.
TIA.

Thanks Mike, that worked a lot better.
However, for some reason, when I inserted the processing instruction, I stopped getting the XML header ("<?xml version="1.0" encoding="UTF-8" ?> "). I can't quite figure out when XMLBeans prints this header and when it doesn't, or if the Container or servlet does it when I set the content type. Anyways, thanks for solving my immediate problem.

Similar Messages

  • Using xsl stylesheet with List View Web Part to display custom text

    Hi 
    i have an xsl stylesheet with sharepoint listview webpart. The list view shows some items based on a filter. I want to display custom text such as "No Items" when there are zero items in the list view using the xsl stylesheet. How do i achieve
    this. I have spent hours searching but couldnt find the exact answer. Please help me out. I am a light user not a hard core developer so I dont use Visual Studio. Thanks in advance

    Hi 
    I have customised the list view webpart using a custom xsl file by including it in the xsl link of the list view webpart. So i think i need to include the condition in the xsl file itself else it wont work. Since the list view webpart isnt using the default
    xsl. Please let me kknow if you have any idea about including a condition in xsl to check if there are not items in view. 
    The code of the xsl is included below.
    <!--
    This section is the set up and can be used at the top of any external XSLT stylesheet file
    -->
    <xsl:stylesheet
    xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
    version="1.0"
    exclude-result-prefixes="xsl msxsl ddwrt"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
    xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema">
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
    <table>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowview"></xsl:call-template> 
    </xsl:for-each>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
        <tr>
      <td><img height="78" width="60"><xsl:attribute name="src"><xsl:value-of select="@Photo"/></xsl:attribute></img></td>
        <td>
        <table style="margin-left:10px;">
        <tr><td><xsl:value-of select="@FullName"/></td></tr>
        <tr><td><xsl:value-of select="@DOBinWords"/></td></tr>
        </table>
        </td>
      </tr>
    </xsl:template>
    </xsl:stylesheet>

  • Chaining stylesheets with XSQL!

    I am attemping to post a form to an XSQL page and insert the parameters into an Oracle database. The easiest way to do the tranformation is to apply a stylesheet to the XML generated automatically by the XSQL servelet and then apply another stylesheet to the result of the first transformation. I guess my real question is how can I apply a series of XSLT stylesheets in succession with each one operating on the results of the previous transformation?
    Thank you in advance for your time,
    Jason Long

    Dear Steve,
    My problem is that the <OPTIONS>...</OPTIONS> is not present in the orginal post. I am having a problem selecting this node in order to apply ext:xmlMarkup. The following is the exact code I am trying to use:
    This is the stylesheet that I am applying to the posted request. This works just fine.
    addItem.xsl
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ext="http://www.oracle.com/XSL/Transform/java/MarkupExtensions"
    exclude-result-prefixes="ext">
    <xsl:output method="xml" indent="no" />
    <!-- Root template -->
    <xsl:variable name="sku" select="//sku" />
    <xsl:template match="/">
    <ROWSET>
    <ROW>
    <xsl:apply-templates select="//sku | //quantity | //specialRequests | //customerID"/>
    <OPTIONS>
    <xsl:apply-templates select="//dropDown | //checkbox | //addOn"/>
    </OPTIONS>
    </ROW>
    </ROWSET>
    </xsl:template>
    <xsl:template match="dropDown">
    <dropdown id="{substring-before(text(),'|')}" value="{substring-after(text(),'|')}" />
    </xsl:template>
    <xsl:template match="OPTIONS">
    <OPTIONS>
    <xsl:value-of select="ext:xmlMarkup(*)" />
    </OPTIONS>
    </xsl:template>
    <xsl:template match="addOn">
    <addOn sku="{text()}" />
    </xsl:template>
    <xsl:template match="checkbox">
    <checkbox value="{text()}" />
    </xsl:template>
    <xsl:template match="dropDown">
    <dropdown id="{substring-before(text(),'|')}" value="{substring-after(text(),'|')}" />
    </xsl:template>
    <xsl:template match="quantity">
    <QUANTITY><xsl:value-of select="//quantity" /></QUANTITY>
    </xsl:template>
    <xsl:template match="specialRequests">
    <SPECIAL_REQUESTS><xsl:copy-of select="//specialRequests/text()" /></SPECIAL_REQUESTS>
    </xsl:template>
    <xsl:template match="customerID">
    <CUSTOMER_ID><xsl:value-of select="//customerID" /></CUSTOMER_ID>
    </xsl:template>
    <xsl:template match="sku">
    <SKU><xsl:value-of select="//sku" /></SKU>
    </xsl:template>
    <xsl:template match="submit" />
    </xsl:stylesheet>This is the XSQL page I am sending the request to for insert into the DB.
    addItem.xsql
    <?xml version = '1.0'?>
    <root xmlns:xsql="urn:oracle-xsql" connection="connJMLIE">
    <xsql:insert-request
    table="cart"
    transform="addItem.xsl" />
    </root>Every column is added except OPTIONS. This is null if any "<" are present. This is why I am trying to use ext:xmlMarkup.
    My problem is how do I apply the OPTIONS template to the results of the addItem.xsl in order to escape "<" and add the data as I intended?
    Thank you for your time Steve,
    Jason

  • XSL transformation with xsl:import generates exceptions

    I am using the Schematron's basic XSL file basic-schematron.xsl to validate the XML format of one of our data files. The XSL file looks something like this
    ================
    <xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias">
    <xsl:import href="skeleton1-5.xsl"/>
    <xsl:template name="process-prolog">
    <axsl:output method="text" />
    </xsl:template>
    ==================
    But, the validation fails while trying to run the transformation on my Schematron input file using this basic-schematron.xsl with java.lang.NoSuchMethodError:
    ======= OUTPUT ============
    Markup Error: no match attribute on <key> outside <rule>
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: GregorSamsa.process$dash$root(Lcom/sun/org/apache/xalan/internal/xsltc/DOM;Lcom/sun/org/apache/xml/internal/dtm/DTMAxisIterator;Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;ILjava/lang/Object;)V
         at GregorSamsa.applyTemplates()
         at GregorSamsa.applyTemplates()
         at GregorSamsa.transform()
         at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:594)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:640)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)
         at com.solipsa.xsdvalidator.XSDValidator.validateSchematron(XSDValidator.java:137)
         at com.solipsa.xsdvalidator.XSDValidator.validate(XSDValidator.java:181)
         at com.solipsa.xsdvalidator.XSDValidatorUI.jButton1ActionPerformed(XSDValidatorUI.java:244)
         at com.solipsa.xsdvalidator.XSDValidatorUI.access$300(XSDValidatorUI.java:21)
         at com.solipsa.xsdvalidator.XSDValidatorUI$4.actionPerformed(XSDValidatorUI.java:140)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1766)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ============= OUTPUT ==============
    I tried the individual JAXP 1.3 for J2SDK 1.4.2 (Using the -Djava.endorsed.dirs JVM param) and tried the JDK 1.5.0_02 which has JAXP 1.3 inbuilt and they all fail.
    I tried the above with separate Xalan/Xerces jar files, and then it works fine.
    The problem seems to be somthing specific to the JAXP 1.3 environment. I can provide more details, if required. Any help is highly appreciated.

    One morning your code woke up and found it had been transformed into a giant insect.
    But seriously, here's the name of the method that doesn't exist:GregorSamsa.process$dash$rootIs GregorSamsa your class? Maybe your server has an old version of it which is missing that method? (Or: those $ signs look strange to me, maybe they are a mistranslation of some other character?)

  • XSL transformation with java binding

    Hi everyone!
    I am trying to implement na XSL transformation that uses java code binding.
    My XSL looks as follows:
    <i><xsl:stylesheet xmlns:myobj="java.lang.System"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xf="http://www.sapportals.com/wcm/app/xmlforms">
    <xsl:param name="myobj"/>
    <xsl:value-of select="string(myobj:currentTimeMillis())"/>
    </xsl:stylesheet></i>
    Everything works fine - current time is displayed.
    But when I try to use my custom java class the compiler returns an exception:
    <i>com.sapportals.wcm.WcmException: com.sap.engine.lib.xml.util.NestedException: Could not load class: ep.UmeLookup required for execution of 'UmeLookup.isReady'</i>
    My second xsl stytesheet with a reference to custom class looks as follows:
    <i><xsl:stylesheet xmlns:ume="ep.UmeLookup" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xf="http://www.sapportals.com/wcm/app/xmlforms">
    <xsl:param name="ume"/>
    <xsl:value-of select="string(ume:UmeLookup.isReady())"/>
    </xsl:stylesheet></i>
    I developed java class (ep.UmeLookup), made a .jar from it, included the jar archive in a Library project and deployed the library to the J2EE engine.
    It looks like my class is not 'visible' in J2EE engine, while in my opinion it should be. Does anyone know how to change that??
    BR / marek

    Ask this lady a question. Maybe she could answer your question.
    XSLT Mapping With JAVA Enhancement ( For Beginners)

  • Problem in XSL mapping with leading zero's

    Hi ,
    i am facing a problem in disigning a XSL mapping where one of the source field (type string ) ,and I need to remove the leading zero's to map it to target.
    we have format-numer ,but It is not working in this case ,may be because of type string.
    and the replace command is not supported .
    So can any one suggest me some way to resolve this xsl problem.
    Thanks,
    Raju.

    I write an example
    xsl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <xsl:template match="/">
              <doc>
                   <xsl:apply-templates/>
              </doc>
         </xsl:template>
         <xsl:template match="source_field">
              <source_field>
                   <xsl:call-template name="remove_leading_zeros">
                        <xsl:with-param name="value" select="."/>
                   </xsl:call-template>
              </source_field>
         </xsl:template>
         <xsl:template name="remove_leading_zeros">
              <xsl:param name="value"/>
              <xsl:choose>
                   <xsl:when test="starts-with($value, '0')">
                        <xsl:call-template name="remove_leading_zeros">
                             <xsl:with-param name="value" select="substring($value, 2)"/>
                        </xsl:call-template>
                   </xsl:when>
                   <xsl:otherwise>
                        <xsl:value-of select="$value"/>
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
    </xsl:stylesheet>
    to test:
    input xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <doc>
    <source_field>000000123456</source_field>
    <source_field>0987654</source_field>
    </doc>
    output xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <doc xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <source_field>123456</source_field>
         <source_field>987654</source_field>
    </doc>
    hope can help you.
    regards
    Bin

  • XSL Stylesheet syntax

    In .xsl file,
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    What is this xmlns:xsl="http://www.w3.org/TR/WD-xsl" for?
    and what is the different between xmlns:xsl="http://www.w3.org/1999/XSL/Transform ?
    Any help will be grateful.
    Regards,
    Kelly Chen
    null

    Thanks for your response Rick and I hope it resolves Kelly's issue. But I too would like to know exactly what the difference is between the two examples Kelly provided because I have run into an issue where some code will run with the first example but not with the second and vice verse and without knowing why the parser is reporting an error it's hard to know which reference to use when:
    1. Exactly what does a parser do with a namespace (or other URI) reference that causes it to treat the two examples differently?
    2. Is there any documentation (or freeware source code) available that might show how namespace (and other) references are used to validate?
    3. Does the parser compare the given string with a hard-coded string in the parser to see if they match? Does the parser look the URI up on the net to see if it exists? Does it do something like:
    if uri = 'xmlns:xsl="http://www.w3.org/TR/WD-xsl"' then load namespace values from new.txt
    else if uri = 'xmlns:xsl="http://www.w3.org/1999/XSL/Transform' then load namespace values from old.txt
    Thanks again!
    null

  • Howto add static text in xsl stylesheet

    Hi,
    I'am having problems trying to write a static text to a fixed length file using the file adapter.
    I'am using the FlatStructure sample provided.
    When I run the sample, there's no problem... But when I remove the mapping from tns:State <-> fix:State (in addr1Toaddr2.xsl) and change the fix:State to a static text (Set Text option in right mouse popup menu) then this text will NOT show up in the written fixed length file.
    My addr1Toaddr2.xsl looks like this:
    <?xml version="1.0" encoding="windows-1252"?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="XSD">
    <schema location="file://D:/OraBPELPM_2/integration/bpelpm/orabpel/samples/tutorials/121.FileAdapter/FlatStructure/address-csv.xsd"/>
    <rootElement name="Root-Element" namespace="http://xmlns.oracle.com/pcbpel/demoSchema/csv"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="XSD">
    <schema location="file://D:/OraBPELPM_2/integration/bpelpm/orabpel/samples/tutorials/121.FileAdapter/FlatStructure/address-fixedLength.xsd"/>
    <rootElement name="Root-Element" namespace="http://xmlns.oracle.com/pcbpel/demoSchema/fixedLength"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 1.0 AT [WED MAY 18 11:29:24 CEST 2005]. -->
    ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://xmlns.oracle.com/pcbpel/demoSchema/csv" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" xmlns:fix="http://xmlns.oracle.com/pcbpel/demoSchema/fixedLength" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" exclude-result-prefixes="xsl xsd tns nxsd fix ldap xp20 bpws ora orcl">
    <xsl:template match="/">
    <fix:Root-Element>
    <xsl:for-each select="/tns:Root-Element/tns:Address">
    <fix:Address>
    <fix:Name>
    <xsl:value-of select="tns:Name"/>
    </fix:Name>
    <fix:Street>
    <xsl:value-of select="concat(tns:Street1,' ',tns:Street2)"/>
    </fix:Street>
    <fix:City>
    <xsl:value-of select="string('C2345678901')"/>
    </fix:City>
    <fix:State>
    <xsl:text disable-output-escaping="no">D2345678901
    </xsl:text>
    </fix:State>
    <fix:Country>
    <xsl:value-of select="string('E234567')"/>
    </fix:Country>
    </fix:Address>
    </xsl:for-each>
    </fix:Root-Element>
    </xsl:template>
    </xsl:stylesheet>
    Note:
    The construct "<xsl:value-of select="string('E234567')"/>" is my 'patch'to write a static text.
    Can you tell me what I'am doing wrong? Or is this a bug...
    greetings,
    Jan.

    Hi ,
    I am assuming you are using Oracle JDeveloper XSL Mapper for designing the XSL. Currently , our XSL Mapper has a limitation due to that whenever you add any static text to target node in mapper, it adds an extra "\n" with that static text. And so our Native format translator doesn't find the definition for that and that's why it doesn't get printed in the file.
    Workaround [although little painful] is remove those extra "\n" after you finish your XSL design.
    We are working to fix this issue asap.
    HTH.
    Thanks,
    Rakesh

  • Setting XSL parameter with DBMS_XMLGEN.setXSLTParam

    Hi all,
    Here's my second post about XSL parameters. This one deals with the procedure setXSLTParam from the package DBMS_XMLGEN in 10g R2.
    The test case is the following :
    DECLARE
    ctx dbms_xmlgen.ctxHandle;
    res clob;
    xsl clob := to_clob(
    '<?xml version="1.0" encoding="iso-8859-15"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" version="4.0" encoding="iso-8859-15"/>
    <xsl:param name="caption"/>
    <xsl:template match="/">
    <TABLE>
      <CAPTION><xsl:value-of select="$caption"/></CAPTION>
      <xsl:apply-templates/>
    </TABLE>
    </xsl:template>
    <xsl:template match="ROWSET">
    <TR>
      <xsl:for-each select="ROW[1]/*">
       <TH><xsl:value-of select="local-name()"/></TH>
      </xsl:for-each>
    </TR>
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="ROW"><TR><xsl:apply-templates/></TR></xsl:template>
    <xsl:template match="ROW/*"><TD><xsl:value-of select="."/></TD></xsl:template>
    </xsl:stylesheet>');
    BEGIN
    ctx := dbms_xmlgen.newContext('select level from dual connect by level < to_number(:MAXLINE)');
    dbms_xmlgen.setXSLT(ctx, xsl);
    dbms_xmlgen.setXSLTParam(ctx, 'caption', '"TEST"');
    dbms_xmlgen.setBindValue(ctx, 'MAXLINE', '10');
    res := dbms_xmlgen.getXML(ctx);
    dbms_xmlgen.closeContext(ctx);
    END;Execution gives error "*ORA-31020: The operation is not allowed, Reason: Invalid XSL Parameter or its Value*".
    I think I'm using the correct syntax for the parameter, but the procedure doesn't seem to work properly (it's also not documented explicitly for Oracle 10gR2).
    Its java-based counterpart DBMS_XMLQUERY.setXSLTParam() works well though.
    Has anyone ever managed to use this feature in 10g or newer release?
    Thanks.
    (Db version is : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production)

    select * from v$version
    BANNER                                                          
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production                          
    CORE     10.2.0.1.0     Production                                        
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production         
    NLSRTL Version 10.2.0.1.0 - Production for me your code is work. result:
    <TABLE>
    <CAPTION></CAPTION>
    <TR>
    <TH>LEVEL</TH>
    </TR>
    <TR>
    <TD>1</TD>
    </TR>
    <TR>
    <TD>2</TD>
    </TR>
    </TABLE>some interesting note:
    xslt CLOB := '<?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="no"/>
    ...In 10.2 when XSLT is used with dbms_xmlgen the XML Header tag is missing
    may be this help you

  • Error applying XSL stylesheet to XML

    Hi,
    after installed SPS 21 into portal we are facing an issue:
    A contentadministrator wants to publish a new newsfact in portal, but get the following error message:
    Error applying XSL stylesheet to XML:
    com.sapportals.wcm.WcmException: com.sap.engine.lib.xml.util.NestedException: Variable '$system_config_activateClipboard' has not been bound to a value
         at com.sapportals.wcm.service.pipeline.Pipeline.handle(Pipeline.java:284)
    Hope that somebody can give me some help.
    thanks a lot in advance.
    Regards,
    Edwin

    Hi Lorcan,
    You help solved our issue, thanks a lot.
    After generate the existing xml project with the Forms builder in the Content Management,
    the contentadministratoris able to produce a new newsfact without errors
    Regards, edwin
    Posts: 123
    Registered: 11/29/04
    Forum Points: 346 
    Solved problem (10)
    Very helpful answer (6)
    Helpful answer (2)
       Re: Error applying XSL stylesheet to XML  
    Posted: Apr 19, 2010 11:13 AM    in response to: Edwin Theuns           Reply 
    Hi Edwin,
    You need to recompile the xml forms project and that should resolve the issue. Unfortunately there is no alternative solution in such a scenario.
    Regards,
    Lorcan.

  • XSL stylesheet transformation of RSS feeds

    Does Safari support XSL transformation of RSS feeds? Or does it always override XSL with its own RSS reader format? Details below:
    I'm starting to mass-produce RSS feeds for our organization. We just want one file for each purpose which can be universally used in RSS readers, iTunes/other podcatchers, and web browsers. I created an XSL stylesheet for it which works perfectly in Internet Explorer, Opera, and Firefox (current release, anyway!), but Safari always adds the "feed://" prefix and displays it with its blue RSS reader format. Is there no way around this? If I take out the the <rss version="2.0"> header, it works, but then iTunes won't accept it.
    Do I have to produce two separate files, the first without the RSS notation for Safari's sake, and the second with the notation for iTunes? That seems like an unnecessary step for us, and confusing for our users. Is there any way around this? I couldn't find any support documents that addressed this directly. Thanks -- Jim

    You're getting a URL like this:context.getResourceAsStream("/Web-Inf/viewStudentDetails.xsl")and it looks like the MalformedURL exception is complaining about it. So my first step would be to look at it and see what's wrong with it.

  • Accessing lookup table from XSL stylesheet

    HI Gentlemen,
    Given two XMLTYPE tables: a Master and a Lookup. The Lookup table consists merely of {key, value} pairs. I am about to display Master table contents--subtrees selected from one big XMLTYPE column. The display process is governed by an appropriate XSL stylesheet. Master table elements have data only in their attributes. For example: <time U="2"/> which means that the value of the Unit attribute is 2, meaning "Minute" according to the Lookup table.
    My question is: Does anybody of you know a fast and safe method to SELECT from the Master AND Lookup (inner join, as in a pure relational environment), thereby REPLACING the key value with its MEANING (textual interpretation). This would be extremely important as numeric codes do not have meaning to the user. User-friendly behavior requires that all important information be displayed at once. (Note that I have nothing against modifying my stylesheet to query the Lookup table as well, if no straightforward master-detail querying technique exists.)
    Please give me an idea if you have.
    Thank you in advance, kind regards:
    Miklos HERBOLY

    HI odie,
    Here is the stuff you requested. I admit, it is fairly abundant, but you will see the structure and the main points. Some of the elements are multiple-occurrence, hence the XMLTABLE() solution was no good because of the large number of generated rows. The stylesheet would be ideal to display embedded "nested collections".
    Please let me know if you have anything for me.
    Thanks, regards
    Miklos
    HERE ARE THE XMLTYPE MASTER TABLE CONTENTS. TABLE IS NON-SCHEMA-BASED.
    =====================================================================
    SQL> select * from z;
    XML_DOCUMENT
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <?xml-stylesheet type="text/xsl" href="file://c:/XSL/ziffer.xsl"?>
    <ehd:ehd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ehd/go/001" xmlns:ehd="urn:ehd/001" ehd_versio
    n="1.20">
    <ehd:header>
    <ehd:id EX="E7F454A3-0F6E-460e-A495-BBBBBBBBBBB3" RT="1.2.276.0.76.3.1.1"/>
    <ehd:version_nbr V="1"/>
    <ehd:document_type_cd V="851"/>
    <ehd:service_tmr V="2006-07-01..2007-12-31"/>
    <ehd:origination_dttm V="2006-05-03"/>
    <ehd:provider>
    <ehd:provider.type_cd V="KV" S="1.2.276.0.76.5.104" SV="1.0"/>
    <ehd:person>
    <ehd:id EX="3223" RT="2.3.5.3.T.e.s.t" RTV="1.10"/>
    <ehd:person_name>
    <ehd:nm>
    <ehd:GIV V="Hans"/>
    <ehd:PFX V="von"/>
    <ehd:FAM V="Mustermann"/>
    </ehd:nm>
    </ehd:person_name>
    <ehd:organization.nm V="KV Hessen"/>
    <ehd:addr>
    <ehd:STR V="Ottostr."/>
    <ehd:HNR V="12"/>
    <ehd:ZIP V="50859"/>
    <ehd:CTY V="Köln"/>
    </ehd:addr>
    <ehd:telecom V="tel:030-4005-2121 begin_of_the_skype_highlighting              030-4005-2121      end_of_the_skype_highlighting begin_of_the_skype_highlighting              030-4005-2121      end_of_the_skype_highlighting"/>
    </ehd:person>
    <ehd:organization>
    <ehd:id EX="46" RT="1.2.276.0.76.5.233"/>
    </ehd:organization>
    </ehd:provider>
    <ehd:interface>
    <ehd:id EX="SDEBM" RT="1.2.276.0.76.5.109" RTV="1.0"/>
    <ehd:interface.nm V="Gebührenordnungsstammdatei / Satzart 851"/>
    <ehd:version V="01.30"/>
    </ehd:interface>
    </ehd:header>
    <ehd:body>
    <gnr_liste>
    <gnr V="01700V" USE="46" USE-DOMAIN="1.2.276.0.76.5.233" VT="2006-05-03">
    <allgemein>
    <gueltigkeit>
    <service_tmr V="2006-07-01.."/>
    <effective_tmr V="2006-07-01.."/>
    </gueltigkeit>
    <legende>
    <kap_bez V="1.7" DN="Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregelun
    g und Schwangerschaftsabbruch (vormals Sonstige Hilfen)">
    <bereich V="II" DN="Arztgruppenübergreifende allgemeine Leistungen"/>
    <kapitel V="1" DN="Allgemeine Leistungen"/>
    <abschnitt V="7" DN="Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregel
    ung und Schwangerschaftsabbruch (vormals Sonstige Hilfen)"/>
    </kap_bez>
    <kurztext V="Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a."/>
    <langtext V="Grundpauschale für Fachärzte für Laboratoriumsmedizin, Mikrobiologie und Infektionsepidemiologi
    e, Transfusionsmedizin und ermächtigte Fachwissenschaftler der Medizin für die Erbringung von Laborleistungen gemäß den
    Richtlinien des Gemeinsamen Bundesausschusses über die ärztliche Betreuung während der Schwangerschaft und nach der En
    tb indung (Mutterschafts-Richtlinien) und/oder der Richtlinien des Gemeinsamen Bundesausschusses zur Empfängnisregelung
    und zum Schwangerschaftsabbruch bei Probeneinsendung, "/>
    <quittungstext V="Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a."/>
    </legende>
    <anmerkungen_liste>
    <anmerkung V="Die Leistung nach der Nr. 01100 ist nicht berechnungsfähig, wenn Sprechstunden vor 07:00 Uhr o
    der nach 19:00 Uhr stattfinden oder Patienten zu diesen Zeiten bestellt werden."/>
    <anmerkung V="Im Rahmen der unvorhergesehenen Inanspruchnahme des Vertragsarztes ist die Leistung nach der N
    r. 01100 auch dann nur einmal berechnungsfähig, wenn es sich um eine Gruppenbehandlung handelt."/>
    <anmerkung V="Die Leistung nach der Nr. 01100 ist ausschließlich bei kurativer Behandlung berechnungsfähig."
    />
    </anmerkungen_liste>
    <leistungsinhalt>
    <komplex V="OBLIGAT">
    <leistung V="Persönlicher Arzt-Patienten-Kontakt im organisierten Not(fall)dienst"/>
    </komplex>
    <komplex V="FAKULTATIV">
    <leistung V="Beratung und Behandlung bis zu 10 Minuten Dauer,"/>
    <leistung V="2...Beratung und Behandlung bis zu 10 Minuten Dauer,"/>
    <leistung V="3...Beratung und Behandlung bis zu 10 Minuten Dauer,"/>
    </komplex>
    <komplex V="FAKULTATIV">
    <leistung V="In Anhang 1 aufgeführte Leistungen,"/>
    </komplex>
    </leistungsinhalt>
    <bewertung_liste>
    <bewertung V="5595" U="1" U-DOMAIN="1.2.276.0.76.5.236">
    <leistungserbringerart V="1" S="1.2.276.0.76.5.234" SV="1.02"/>
    <leistung_typ V="GL"/>
    </bewertung>
    <bewertung V="2797.5" U="1" U-DOMAIN="1.2.276.0.76.5.236">
    <leistungserbringerart V="2" S="1.2.276.0.76.5.234" SV="1.02"/>
    <leistung_typ V="GL"/>
    </bewertung>
    </bewertung_liste>
    <zeitbedarf_liste>
    <zeit V="21" U="2" U-DOMAIN="1.2.276.0.76.5.238">
    <leistung_typ V="AL"/>
    </zeit>
    </zeitbedarf_liste>
    <pruefzeit V="1" U="2" U-DOMAIN="1.2.276.0.76.5.238">
    <zeitprofilart V="3" S="1.2.276.0.76.5.228" SV="1.00"/>
    </pruefzeit>
    <rlv V="0" S="1.2.276.0.76.5.241" SV="1.00"/>
    <leistungsgruppe V="10" S="1.2.276.0.76.5.227" SV="1.00"/>
    </allgemein>
    <bedingung>
    <fachgruppe_liste V="true">
    <versorgungsbereich V="2" S="1.2.276.0.76.5.237" SV="1.01">
    <fachgruppe V="110" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="111" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="112" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="303" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="357" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="501" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="532" S="1.2.276.0.76.5.114" SV="1.00"/>
    </versorgungsbereich>
    </fachgruppe_liste>
    <anzahlbedingung_liste>
    <bezugsraum V="1" U="7" U-DOMAIN="1.2.276.0.76.5.226">
    <anzahl V="1"/>
    </bezugsraum>
    </anzahlbedingung_liste>
    <abr_best V="je Behandlungsfall mit Auftragsleistung(en) der Abschnitte 1.7.4 und/oder 1.7.5"/>
    </bedingung>
    <regel>
    <ausschluss_liste>
    <bezugsraum V="1" U="7" U-DOMAIN="1.2.276.0.76.5.226">
    <gnr_liste V="false">
    <gnr V="12220" DN="Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a."/>
    <gnr V="12225" DN="Grundpauschale für Vertragsärzte aus nicht in der Nr. 12220 aufgeführten Arztgruppen
    bei Probeneinsendung"/>
    </gnr_liste>
    </bezugsraum>
    </ausschluss_liste>
    </regel>
    <kv V="46" S="1.2.276.0.76.5.233" SV="1.01">
    <kennzeichen>
    <arztpraxis V="1"/>
    </kennzeichen>
    <kv_bewertung_liste>
    <kv_bewertung V="100" U="1" U-DOMAIN="1.2.276.0.76.5.236">
    <leistungserbringerart V="2" S="1.2.276.0.76.5.234" SV="1.02"/>
    </kv_bewertung>
    <kv_bewertung V="150" U="1" U-DOMAIN="1.2.276.0.76.5.236">
    <leistungserbringerart V="1" S="1.2.276.0.76.5.234" SV="1.02"/>
    </kv_bewertung>
    </kv_bewertung_liste>
    </kv>
    <vdx>
    <gkv_kontenart_liste>
    <gkv_kontenart V="530" S="1.2.276.0.76.5.258"/>
    <gkv_kontenart V="463" S="1.2.276.0.76.5.258"/>
    </gkv_kontenart_liste>
    </vdx>
    </gnr>
    </gnr_liste>
    </ehd:body>
    </ehd:ehd>
    1 Zeile wurde ausgewählt.
    SQL> spool off
    ==========================
    HERE IS THE XQUERY COMMAND
    ==========================
    <?xml version="1.0" encoding='windows-1252'?>
    <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
    <page xmlns:xsql="urn:oracle-xsql" connection="gksconnection">
    <xsql:query xmlns:xsql="urn:oracle-xsql">
    SELECT XMLQuery('xquery version "1.0";
    declare namespace n1="urn:ehd/001";
    declare namespace n2="urn:ehd/go/001";
    let $i := /n1:ehd/n1:body/n2:gnr_liste/n2:gnr
    where $i[@n2:V = "01700V"]
    return $i'
    PASSING xml_document
    RETURNING CONTENT)
    FROM z
    </xsql:query>
    </page>
    ======================
    HERE IS THE STYLESHEET - relevant part only
    ======================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ehd="urn:ehd/001" xmlns:pe="urn:ehd/go/001">
    <xsl:output method="html"/>
    <xsl:template match="pe:gnr">
    <html>
    <head>
    <title>EBM Ziffer</title>
    <style type="text/css">
    table
    border-collapse:collapse;
    table, td, th
    border:1px solid black;
    </style>
    </head>
    <body style="font-family:verdana;color:black">
    <h2><xsl:text>Ziffer: </xsl:text>
    <xsl:value-of select="@V"/>
    </h2>
    <table border="1">
    <tr>
    <td><xsl:text>KV</xsl:text></td>
    <td><xsl:value-of select="@USE"/></td>
    </tr>
    <tr>
    <td><xsl:text>Gültigkeit</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:gueltigkeit/pe:service_tmr/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Bezeichnung Kapitel</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Bereich</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:bereich/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:bereich/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Kapitel</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:kapitel/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:kapitel/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Abschnitt</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:abschnitt/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Unterabschnitt</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:uabschnitt/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Block</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:block/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Kurztext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kurztext/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Langtext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:langtext/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Langtext (Fortsetzung)</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:langtext_continued/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Quittungstext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:quittungstext/@V"/></td>
    </tr>
    </table>
    <!-- Anmerkungen-Liste -->
    <h4><xsl:text>Anmerkungen</xsl:text></h4>
    <table border="1">
    <xsl:for-each select="pe:allgemein/pe:anmerkungen_liste/pe:anmerkung">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Leistungsinhalt-->
    <h4><xsl:text>Leistungsinhalt</xsl:text></h4>
    <table border="1" >
    <tr>
    <th><xsl:text>Komplex</xsl:text></th>
    <th><xsl:text>Leistung</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:leistungsinhalt/pe:komplex">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td>
    <xsl:for-each select="pe:leistung">
    <xsl:value-of select="@V"/>
    </xsl:for-each>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Bewertungsliste -->
    <h4><xsl:text>Bewertungen</xsl:text></h4>
    <table border="1">
    <tr>
    <th><xsl:text>Bewertung</xsl:text></th>
    <th><xsl:text>Einheit</xsl:text></th>
    <th><xsl:text>Gebührenordnung</xsl:text></th>
    <th><xsl:text>Leistungserbringerart</xsl:text></th>
    <th><xsl:text>Leistungstyp</xsl:text></th>
    <th><xsl:text>Versorgungsgebiet</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:bewertung_liste/pe:bewertung">
    <tr>
    <td><xsl:value-of select="@V"/></td>
         <td><xsl:value-of select="@U"/></td>
    <td><xsl:value-of select="pe:gebuehrenordnung/@V"/></td>
    <td><xsl:value-of select="pe:leistungserbringerart/@V"/></td>
    <td><xsl:value-of select="pe:leistung_typ/@V"/></td>
    <td><xsl:value-of select="pe:versorgungsgebiet/@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Zeitbedarfliste -->
    <h4><xsl:text>Zeitbedarfliste</xsl:text></h4>
    <table border="1">
    <tr>
    <th><xsl:text>Zeit</xsl:text></th>
    <th><xsl:text>Einheit</xsl:text></th>
    <th><xsl:text>Leistungstyp</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:zeitbedarf_liste/pe:zeit">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td><xsl:value-of select="@U"/></td>
    <td><xsl:value-of select="pe:leistung_typ/@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    =====================================
    THE REQUESTED SAMPLE LOOKUP TABLE FOR TIME UNITS
    =====================================
    <keytabs>

    <keytab S="1.2.276.0.76.5.238" SN="S_KBV_ZEITEINHEIT" SV="1.00">
    <key V="1" DN="Sekunde" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="2" DN="Minute" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="3" DN="Stunde" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="4" DN="Tag" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="5" DN="Woche" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="6" DN="Monat" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="7" DN="Quartal" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="8" DN="Jahr" S="1.2.276.0.76.5.238" SV="1.00"/>
    </keytab>
    </keytabs>
    ==================================================================================================
    And this is, from an earlier trial with XMLTABLE() what I become when stylesheet is commented out. Only for your information here!
    Due to the three "Anmerkung" three rows were generated. What is this notation? I got it when
    executing the XSQL sheet without stylesheet. Produced by the browser.
    I can not find any info in the whole web.
    ==================================================================================================
    <!--
    <?xml-stylesheet type="text/xsl" href="untitled1.xsl" ?>
    -->
    <page>
    <ROWSET>
    <ROW num="1">
    <ZIFFER>01700V</ZIFFER>
    <GUELTIGKEIT>2006-07-01..</GUELTIGKEIT>
    <KAP_NR>1.7</KAP_NR>
    <KAP_BEZ>
    Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregelun g und Schwangerschaftsabbruch (vormals Sonstige Hilfen)
    </KAP_BEZ>
    <BEREICH_NR>II</BEREICH_NR>
    <BEREICH>Arztgruppenübergreifende allgemeine Leistungen</BEREICH>
    <KAPITEL_NR>1</KAPITEL_NR>
    <KAPITEL>Allgemeine Leistungen</KAPITEL>
    <ABSCHNITT>
    Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregel ung und Schwangerschaftsabbruch (vormals Sonstige Hilfen)
    </ABSCHNITT>
    <KURZTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a.
    </KURZTEXT>
    <LANGTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin, Mikrobiologie und Infektionsepidemiologi e, Transfusionsmedizin und ermächtigte Fachwissenschaftler der Medizin für die Erbringung von Laborleistungen gemäß den Richtlinien des Gemeinsamen Bundesauss
    </LANGTEXT>
    <QUITTUNGSTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a.
    </QUITTUNGSTEXT>
    <ANMERKUNG>
    Die Leistung nach der Nr. 01100 ist nicht berechnungsfähig, wenn Sprechstunden vor 07:00 Uhr oder nach 19:00 Uhr stattfinden oder Patienten zu diesen Zeiten bestellt werden.
    </ANMERKUNG>
    </ROW>
    <ROW num="2">
    <ZIFFER>01700V</ZIFFER>
    </ROW>
    </ROWSET>
    </page>

  • Inserting xsl into existing page

    Hello ..
    I am now attempting to add an .xsl file I created into an
    existing page. I am unsure of how to add this into my page ..here
    is the xsl file below. Thanks Rob
    <?xml version="1.0" encoding="utf-8"?><!--
    DWXMLSource="
    http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=CAANR&SECTION=HOME"
    --><!DOCTYPE xsl:stylesheet [
    <!ENTITY nbsp "&#160;">
    <!ENTITY copy "&#169;">
    <!ENTITY reg "&#174;">
    <!ENTITY trade "&#8482;">
    <!ENTITY mdash "&#8212;">
    <!ENTITY ldquo "&#8220;">
    <!ENTITY rdquo "&#8221;">
    <!ENTITY pound "&#163;">
    <!ENTITY yen "&#165;">
    <!ENTITY euro "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="utf-8"/>
    <xsl:template match="/"><link
    href="Level1_Arial.css" rel="stylesheet" type="text/css" />
    <xsl:for-each select="rss/channel/item">
    <table width="440" border="0">
    <tr>
    <td bgcolor="#CCCCCC">
    <a href="{link}"><xsl:value-of select="title"
    /></a></td>
    </tr>
    <tr>
    <td><xsl:value-of
    select="description"/></td>
    </tr>
    </table>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>

    Can anyone help me with this please? thanks Rob

  • Required attribute version missing from element xsl:stylesheet

    Tools:
    Jdeveloper : 10.1.3.3
    Error:
    Every time I add transform process activity and try to create mappings I am not able to save them.
    In source view I see this error "Required attribute version missing from element xsl:stylesheet".
    I cannot continue and do not understand how to proceed.
    Any ideas ?

    We have the same problem here from time to time. This has to be some kind of bug in JDeveloper. There is nothing wrong with our xsl files! But for some reason JDeveloper complains about the version attribute of xsl:stylesheet which in all the cases I've seen IS THERE!
    Sometimes restarting JDeveloper helps - sometimes not. I even ended up reinstalling JDeveloper a few times.
    I hoped this would be fixed in 10.1.3.3 (we use 10.1.3.2) but sadly it's not it seems.

  • XML forms error: Error applying XSL stylesheet to XML

    hi,
    I created XML forms for news and 2 weeks ago everything was working right, but today when i try to see a preview of the project i get this error:
    XML - Forms 
    <b>Error applying XSL stylesheet to XML</b>
    com.sapportals.wcm.WcmException: com.sap.engine.lib.xml.util.NestedException: Variable '$Sap' has not been bound to a value
    at com.sapportals.wcm.service.pipeline.Pipeline.handle(Pipeline.java:284)
    at com.sapportals.wcm.service.pipeline.XSLTPipeline.handle(XSLTPipeline.java:118)
    at com.sapportals.wcm.service.xmlforms.transformation.Transformer.pipeIt(Transformer.java:133)
    at com.sapportals.wcm.service.xmlforms.transformation.Transformer.transform(Transformer.java:105)
    at com.sapportals.wcm.service.xmlforms.transformation.Transformer.transform(Transformer.java:77)
    at com.sapportals.wcm.service.xmlforms.transformation.HtmlGenerator.getHtmlStream(HtmlGenerator.java:122)
    at com.sapportals.wcm.service.xmlforms.transformation.Transformation.render(Transformation.java:391)
    I really don't know where this come from is there somebody that can help me?
    i tried to change the paths of the project cause i also got this:
    <b>java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key xmsg_project_not_exist</b>
    at java.util.ResourceBundle.getObject(ResourceBundle.java:326)
    at java.util.ResourceBundle.getObject(ResourceBundle.java:323)
    at java.util.ResourceBundle.getString...
    Hope that somebody can give me some help. Please it is urgent we have to deploy the site this week.
    thanks a lot in advance.
    Regards,
    MJ

    Hi All,
    Anybody could find the cause for this?
    I'm also facing the same problem now when I try to see the preview for Edit Form. It's working fine with RederList Form. Earlier everything was fine. If somebody has got the solution for this, pls help me out. This is very urgent. Thankyou very much in advance.
    Thanks & BR,
    Ram Marni.
    [email protected]

Maybe you are looking for

  • Need iPhoto 8 or 9 for older iMac

    Installed a copy of Snow Leopard on my mother-in-law's 2007 computer, but had to wipe the HD, which as corrupted to do so.  I already tried to use her older bundled software to custom install the iPhoto software, but no luck.  The install program giv

  • Audiocodes m800 SBA will not update Replication

    Hello everyone I have a M800 Audiocodes SBA updated to Lync 2013 version 1.1.12.0 and it seems that I can not get replication to work I have tried invoke-csmanagementreplication so many time I know that's not it.  I can access the share data files on

  • Stil image (photo) quality in rendered project

    I'm having an issue with the quality of photos that I've added to a video. The quality of the still photo exhibits a lot of "jagged" edges along things that should be straight lines. Photos of stone walls look almost like the stones are vibrating. Th

  • Iphone 4 as audio interface?

    I was thinking about this the other day, and is there any barrier for the iphone to keep it from being a true audio interface? All it would need to be able to do is send audio as it was being recorded over the USB connection to a computer. Using devi

  • Calling functions from a DLL

    I am currently using Oracle to retrieve a BLOB data to process it. The only way I have of intepreting the BLOB is through a function of a DLL provided by my supplier. Is there anyway of doing so? Any Help is very greatly appreciated. Thanks