Using resourceDescription in SUBSCRIPTIONBUNDLED_Email.xsl and xml's.

Hello all,
We are trying to use the Primitive Template "resourceDescription" (as described in "Customizing Notifications"-pdf) in the SUBSCRIPTIONBUNDLED_EMAIL.xsl and SUBSCRIPTIONBUNDLED_en.xml.
Could anyone urgently let me know if it's possible to use this Primitive Template in the xsl and xml mentioned?
It looks like the "resourceDescription" is not being passed on to the bundlednotificationdata-section in the xml?
Any other suggestion in how to get the "resourceDescription" available in Daily Summary Subscription emails?
Thanks in advance,
Tim.

Hello Alan,
Yes; as far as I know the only way to get your changes to any of the email notification xml files visible is by restarting the server
The notification email xsl I'm working on is the one for the daily notifications (subscriptionbundled_email.xsl).
My problem is that it seems that the resourceDescription is not being passed on by the java code that is populating the section in the xml file containg the resource information...
Unfortunately no confirmation about this yet (raised OSS with SAP as well).
I'm expecting this resourceDescription to contain the text that you can fill in using standard KM in the Description field of a resource.
I do wonder how/where your users populate the subject and description fields? Standard SAP KM or custom app?
Cheers,
Tim.

Similar Messages

  • IDML modification using xsl and xml

    Hi All
    I am new to IDML development and get stuck at first step.
    I know that IDML becomes a bunch of xml files so if I create a template and Export it as IDML and for processing the job, I want to modify the story xml file among all the xml files which has some special content in it so is it posible to change only that particular xml file using any java sample example given in SDK or other class files which has this feature ??
    One more question, might be novice, what is use of schema in all IDML process and how to generate the schema using the script given in SDK ??.
    Many Thanks in advance
    Mac

    Hi Frank,
    I assumed I would run into problems like this, so I've decided to transform XML in backing bean and send it to response's output stream and this works for me. Now I'm struggling to get my css file in this backing bean so I can use it as a parameter in my XSLT transformation. We have a css file that ADF loads, can you tell me how do I get a reference on it on a backing bean?
    Thanks,
    regards!

  • Using a SQL data source and XML data source in the same template

    I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to use a sql data source (i.e., "select org_id from po_headers_all where po_header_id = [insert header_id from xml data]...") in addition to the xml data source to populate the template at runtime? When you use the Insert > SQL functionality is it static at the time the template is created, or does it call to the database at runtime? I've looked through all the docs I could find, but this isn't clear.
    Thanks for any help or suggestions you may have.
    Rhonda

    Hi Pablo
    Thats a tough one ... if you go custom with a data template you will at least get support on the data template functionality ie you have a problem when you try and build one. You will not get support on the query inside the data template as you might have gotten with the Oracle Report, well you could at least log a bug against development for a bad query.
    Eventually that Oracle Report will be converted by development anyway, theres an R12 project going on right now to switch the shipped OReports to data templates. AT this point you'll be fully supported again but:
    1. You have to have R12 and
    2. You'll need to wait for the patch
    On reflection, if you are confident enough in the query then Oracle will support you on its implementation within a data template. Going forward you may be able to swap out your DT and out in the Oracle one without too much effort.
    Regards, Tim

  • Procedure for using Webserices and XML data button

    I am developing a report in xcelsius and I have huge data like 10000 records in my excel sheet  for one report because of which the report performance is very bad as I am increasing the max. no of rows from 512 to 10000 .Is their any way I can make those records come dynamically to the excel sheet by using XML Data Button, or Web Services etc if yes how can I use this or is their any other way to accomplish this
    As of now I am using the trial versron of XCELSIUS 2008 so can I use the option of webservices and XML in the trial version if so what I need to enter in WEbservice URL for trial versions
    Can any body send me the step by step process of using webservices & XML  when loading the data from excel to xcelsius
    if I use these options when I select the source data do I need to select the entire 10000 records , if so then again my performance will be bad , so can any one help me out please
    Thanks in advance
    Regards,
    Sany

    Dynamic datasources for Xcelsius
    http://resources.businessobjects.com/support/cx/samples/learning/downloads/ttv4-xml_data_button.pdf
    unable to use web services
    hope this helps you
    good luck
    Amr

  • Parsing DOM with XSL and output as HTML

    In a servlet I am fetching data from DB into an DOM-tree (using ordinary JDBC and building the XML-DOM while fetching rows). This is done in a servlet, and before I response to the browser i use Oracle XML-parser to join my DOM-tree with an XSL-file. If I try to my DOM-tree out before parsing, it contains data. But the parsed DOM only contains XSL-tags, no data. What do I do wrong?
    Here is the code:
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    //No problem finding the XSL-file...
    URL xslURL = createURL("employee.xsl");
    parser.parse(xslURL);
    xslDoc = parser.getDocument();
    XSLStylesheet xsl = new XSLStylesheet(xslDoc, xslURL);
    XSLProcessor processor = new XSLProcessor();
    processor.showWarnings(true);
    processor.setErrorStream(System.out);
    //XML doc does contain data!!!
    DocumentFragment result =
    processor.processXSL(xsl, xmlDoc);
    xmlOut = new XMLDocument();
    Element root = xmlOut.createElement("root");
    xmlOut.appendChild(root);
    root.appendChild(result);
    xmlOut.print(out); // Result is only the XSL-file.....
    Regards Frank =:>

    Sorry, but I still can not make it work. Here are the XSL and XML-files. My XML test file (which reflects the DOM I am makings
    is:
    <?xml version="1.0" standalone="no"?>
    <!DOCTYPE employees SYSTEM "employee.dtd">
    <?xml:stylesheet type="text/xsl" href="employee.xsl" ?>
    <employees>
    <employee>
    <id>1</id>
    <firstname>Frank</firstname>
    <lastname>Nilsen</lastname>
    </employee>
    <employee>
    <id>2</id>
    <firstname>Ronald</firstname>
    <lastname>Reagen</lastname>
    </employee>
    </employees>
    XSL-file is:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    <xsl:template match="/">
    <HTML>
    <BODY>
    <xsl:for-each select="employees/employee">
    <font color="red"><xsl:value-of select="id"/></font>
    <xsl:value-of select="firstname"/>
    <xsl:value-of select="lastname"/>
    </xsl:for-each>
    </BODY>
    </HTML>
    </xsl:template>
    </xsl:stylesheet>
    Regards,
    Frank =:>

  • XSL-TEXT: how to import subtemplates in XSL and use xdofx tags?

    Hi,
    I am working on a BI Publisher Report (XML Publisher 5.6.3 in EBS) to generate labels on a label printer. The output needs to be in plain text format, therefore I decided to use the XSL-TEXT template and create my own XSL translation.
    In principle this works pretty fine, but there are two things that worry me a bit:
    1. Does anybody know how I could import other XSL files, like sub-templates in RTF? The problem I have is that I don't know the URI or the sub-template. At the moment I store those other XSL files in the OA_MEDIA folder, but this is not really nice. In RFT you can refer to subtemplates with some xdofx commands... this brings me to my second question:
    2. In RTF templates you can use the Oracle specific XML tags, including the <xdofx:%> and <xdoxslt:%> tags. Does anybody know if and how I can use them in XSL templates?
    Any ideas are highly appreciated!
    regards,
    David.

    Hi Vetsrini,
    1. but what is the absolute path for my subtemplates if I store them in the Template Manager? How can I refer to them?
    This is what the manual says for RTFs:
    >
    Enter the Import Syntax in the Primary Template
    Import the subtemplate to the primary template by entering the following syntax in the
    primary template. The import syntax tells the XML Publisher engine where to find the
    subtemplate RTF in the Template Manager. This syntax may be entered anywhere in the
    template prior to the call-template syntax:
    <?import:xdo://APPCODE.TEMPLATE_CODE.lang.TERR?>
    where
    APPCODE is the Application code you assigned to the subtemplate in the Template
    Manager. For example, if you associated this template with the Receivables application,
    enter "AR".
    TEMPLATE_CODE is the template Code you assigned to the subtemplate in the Template
    Manager. For example, AR_CommonComponents.
    >
    sounds good and easy to me. But I don't have a RTF template. I have just a plain XSLT and those XML Publisher tags do not work there. So how do I get the absolute path of my XSLT templates stored in the Template Manager?
    2. I've included the namespace, no error anymore. But the syntax does not result in actions:
    <xsl:value-of select="xdoxslt:substr((PRODUCT_NAME),1,2)"/>
    {code}
    This does not substring() my string, the full string is returned. But anyway, I don't get an error message anymore. Maybe I just used the wrong XDOXSLT function... I need to search for a list of XDOXSLT functions, but that's not very urgent for now. I think I can do the most with plain XSL and inside the DB itself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to burst reports in text and XML format using API

    Hi there,
    I need to be able to burst PDF, Excel etc reports and at the same time, generate XML files containing metadata that will accompany the PDF files to their destination. The reason for this, is that the destination requires metadata to class the documents in the content management system.
    My issue is that I just cannot get bursting to XML, text or HTML format right. There is very little documentation available around creating reports in these formats using the API's and perhaps someone who has gotten this right can, once and for all, solve this issue where others can find the solution.
    Alright, here is some sample supporting documentation (For the sake of the question, I have removed the bursting to PDF, Excel etc. formats and I am just focusing on the XML output):
    In my code for bursting, I make use of the following constructor...
    DocumentProcessor dp =
    new DocumentProcessor("ControlFile.xml", "TestData.xml", "temp");
    The ControlFile.xml looks like this...
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    _<xapi:request select="/DATA/LIST_BRANCH/BRANCH">
    ___<xapi:delivery>
    ______<xapi:filesystem id="dst" output="C:\${BRANCH_NAME}.xml"/>
    ___</xapi:delivery>
    ___<xapi:document output-type="text" delivery="dst">
    ______<xapi:template type="xsl-fo" location="Template.xsl"></xapi:template>
    ___</xapi:document>
    _</xapi:request>
    </xapi:requestset>
    The data in my TestData.xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <DATA>
    ___<LIST_BRANCH>
    ______<BRANCH>
    __________<BRANCH_NAME>BRANCH 1</BRANCH_NAME>
    ______________ OTHER IRRELEVANT DATA
    ______</BRANCH>
    ______<BRANCH>
    __________<BRANCH_NAME>BRANCH 2</BRANCH_NAME>
    ______________ OTHER IRRELEVANT DATA
    ______</BRANCH>
    ___</LIST_BRANCH>
    </DATA>
    In my ControlFile.xml, I reference my XSL file called Template.xsl which should do my transformations into XML. That file looks like:
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    __<xsl:output method="xml" indent="yes">
    __<xsl:template match="/">
    ____<METADATA>
    _______<BRANCH>
    ___________<xsl:value-of select="BRANCH_NAME"/>
    _______</BRANCH>
    ____</METADATA>
    __</xsl:template>
    </xsl:stylesheet>
    I have tried about forty variations of the ControlFile.xml and Template.xsl and have had no luck. Among the various error messages that the compiler has reported to me, these are the most common:
    [101507_055953158][][EXCEPTION] Error while generating the Document...
    [101507_055953158][][EXCEPTION] org.xml.sax.SAXException: element metadata is not supported yet.
    [101507_061037084][][EXCEPTION] Error while generating the Document...
    [101507_061037094][][EXCEPTION] oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    I have managed in some cases to get the API code to compile, but the outputs are empty 0kb files.
    I have also exported an XSL-FO file from word, but the output is always PDF even with tweaking.
    I have wasted about 9 hours on this problem and it is driving me mad! If anyone has ideas, tips and/or solutions, they would be very welcome.
    Thanks in advance,
    Andrew

    For anyone interested... here it is!
    Format Setup:
    <TEMPLATE TYPE> DELIMITER_BASED
    <OUTPUT CHARACTER SET> iso-8859-1
    <NEW RECORD CHARACTER>     Carriage Return
    Sequences:
    <DEFINE SEQUENCE> MetaDataSeq
    <RESET AT LEVEL>     BRANCH
    <INCREMENT BASIS> LEVEL
    <END DEFINE SEQUENCE> MetaDataSeq
    Format Data Records:
    <LEVEL> BRANCH
    <MAXIMUM LENGTH><FORMAT><DATA>
    <NEW RECORD> FileHeaderRec
    16_________________Alpha_____‘<REPORT_SUMMARY>’
    22_________________Alpha_____‘<TYPE>1</TYPE>’
    255________________Alpha_____'<NAME>’ || BRANCH_NAME || ‘.pdf</NAME>’
    255________________Alpha_____'<DESC>NON-MOTOR VEHICLE CLAIMS</DESC>’
    10_________________Alpha_____‘<METADATA>’
    255________________Alpha_____‘<CONTROL_AREA>MAIN CONTROL AREA</CONTROL_AREA>’
    255________________Alpha_____‘<BRANCH_CODE>’ || BRANCH_CODE || ‘</BRANCH_CODE>’
    255________________Alpha_____‘<BRANCH_NAME>’ || BRANCH_NAME || ‘</BRANCH_NAME>’
    255________________Alpha_____'<DIVISION_CODE>1</DIVISION_CODE>’
    255________________Alpha_____‘<DIVISION_NAME>PERSONAL</DIVISION_NAME>’
    11_________________Alpha_____‘</METADATA>’
    17_________________Alpha_____‘</REPORT_SUMMARY>’
    <END LEVEL> BRANCH

  • About XML/XSL and Javascript : Plz Help Urgent

    Hai , I am developing one module which invloves XML database ,XSL and Javascript.
    In this I want to transform XML data to XHTML form using XSLT .,
    I have done this ,(using xsl templates ,In my form two radio buttons one dropdown box and two text boxes are there .).
    All the information which ever is displayed coming from XML .,
    But I want to validate this elements (which are in xslt ,ie checking text box is empty or not ..)
    Where I have to add script in XSL .,
    Plz give simple example on this ,
    I am sending this code ,plz have a look at this ,,
    XML -----+ ---XSLT---------------> XHTML(HTML) (where validation is required)*
    Hotels.xml
    ==============>
    <Services>
         <Service>
              <Hotels type="radio" title="Hotel" groupname="service" default="true"/>
              <HotelsFlights type="radio" title="Flight+Hotel" groupname="service"/>
         </Service>
         <Hotels>
              <Destination title_d="Destination :">          
                   <DestinationPlace type="OPTION" id="" title_d="Select Destination" value_d="Select Destination" defalut="true"/>
                   <DestinationPlace type="OPTION" id="" title_d="Aruba" value_d="Aruba" />
              </Destination>
              <HotelChoice title_hc="Hotels :">
                   <choice type="OPTION" id=" " title_h="AmsterDam Manor Beach" value_h="AmsterDam Manor Beach"/>
                   <choice type="OPTION" id=" " title_h="Wyndham Aruba Beach" value_h="Wyndham Aruba Beach"/>
              </HotelChoice>
              <Dates>
                   <CheckIn type="INPUT" title_dt="Check In :" id="chkin" name="chkin" size_dt="10" maxlength="10">mm/dd/yyyy</CheckIn>
                   <CheckOut type="INPUT" title_dt="Check Out :" name="chkout" size_dt="10" maxlength="10">mm/dd/yyyy</CheckOut>
              </Dates>
              <RoomNos title="No.of Rooms :">
                   <room type="OPTION" id="" titl="1" valu="1"/>
                   <room type="OPTION" id="" titl="1" valu="2"/>
                   <room type="OPTION" id="" titl="1" valu="3"/>
              </RoomNos>
              <Submit tile="Search :" type="submit" id="search" value="Search"/>
         </Hotels>
    </Services>
    Hotels.xsl-
    ------------->
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:template match="/">
         <html>
         <head>
         <script language="javascript">
         function RadioFunc()
              var result;
              alert(" Radio ");
              result +=document.write("<TABLE >");
              result +=document.write("<TR><TD>"+'Praveen'+"</TD></TR>");
              result +=document.write("</TABLE>");
              alert("Result "+result);
         function validateForm()
              alert("Before validating");
              var chkindate= document.getElementById(chkin).value;
              alert(chkindate);
         </script>
         </head>
         </html>
         <xsl:apply-templates/>
    <xsl:if test="@value_d='Select Destination'">
                        alert("Please Enter Destination");
              </xsl:if>
    </xsl:template>
    <xsl:template match="Services" >
         <form name="myform" action="two.jsp" method="get" >
              <table bgcolor="lightgreen" width="350" height="200" border="1" >
              <tr><td><xsl:apply-templates/></td></tr>
              </table>
         </form>
    </xsl:template>
    <xsl:template match="Service">
         <table border="0" align="center" valign="top"><tr>
         <xsl:for-each select="*">
              <td align="left"><xsl:value-of select="@title"/></td>
              <td align="center">
              <input type="{@type}" onClick="RadioFunc()">
                   <xsl:attribute name="Name">
                        <xsl:value-of select="@groupname"/>
                   </xsl:attribute>
                   <xsl:attribute name="value">
                        <xsl:value-of select="@value"/>
                   </xsl:attribute>
                   <xsl:if test="@default='true'">
                        <xsl:attribute name="checked"/>
                   </xsl:if>
              </input>
              </td>
         </xsl:for-each>
         </tr></table>
    </xsl:template>
    <xsl:template match="Hotels/Destination">
    <xsl:value-of select="@title_d"/>
         <SELECT id="dest" name="dest">
         <xsl:for-each select="*">
              <xsl:element name="{@type}">
                   <xsl:value-of select="@value_d"/>
              </xsl:element>
         </xsl:for-each>     
         </SELECT>
    </xsl:template>
    <xsl:template match="Hotels/HotelChoice">
    <xsl:value-of select="@title_hc"/>
    <SELECT id="hcid" name="hcid">
         <xsl:for-each select="*">
              <xsl:element name="{@type}">
                   <xsl:value-of select="@value_h"/>
              </xsl:element>
         </xsl:for-each>
    </SELECT>
    </xsl:template>
    <xsl:template match="Hotels/Dates">
    <table><tr>
    <xsl:for-each select="*">
              <td>
                   <xsl:value-of select="@title_dt"/>
              </td>
              <td>
              <xsl:element name="{@type}" >
                   <xsl:attribute name="size">
                        <xsl:value-of select="@size_dt"/>
                   </xsl:attribute>
                   <xsl:attribute name="maxlength">
                        <xsl:value-of select="@maxlength"/>
                   </xsl:attribute>
                   <xsl:attribute name="value">
                        <xsl:value-of select="text()"/>
                   </xsl:attribute>
              </xsl:element>
              </td>
    </xsl:for-each>
    </tr></table>
    </xsl:template>
    <xsl:template match="Hotels/RoomNos">
    <table align="center"><th>Travellers</th>
    <tr><td><xsl:value-of select="@title"/></td>
    <td><SELECT id="rooms" name="rooms">
              <xsl:for-each select="*">
                   <xsl:element name="{@type}">
                        <xsl:value-of select="@valu"/>
                   </xsl:element>
              </xsl:for-each>     
    </SELECT>
    </td></tr>
         </table>
    </xsl:template>
    <xsl:template match="Hotels/Submit">
         <table align="center" border="0" >
         <tr>
         <td align="center">
              <input type="{@type}" onclick="validateForm();">
                   <xsl:attribute name="value">
                        <xsl:value-of select="@value"/>
                   </xsl:attribute>
              </input>
         </td>
         </tr>
         </table>
    </xsl:template>
    </xsl:stylesheet>
    ======================================================

    Hi
    This is not the forum for this type of question ...sorry. Try the XMLDB forum, XML DB
    Tim

  • Xsl processor and xml parser?

    Hello,
    Can someone tell me wich is the xsl processor and the xml parser used by Livecycle ES? And their versions?
    Thank you

    XML Parser parses the text representation of an XML 1.0-compliant document to make the document's information set -- elements, attributes, text, comments, processing instructions, namespace declarations -- available for access to a comptuter program.
    Without a parser, a program cannot make heads or tails of the tree of information contained in your tags.
    An XSL Processor is a program that takes an XML Document as input, along with an XSLT transformation definition (also known as a stylesheet), and effects the transformation of the source document as instructed by the stylesheet. This might mean transforming:
    <ROWSET>
    <ROW>
    <ENAME>Steve</ENAME>
    </ROW>
    </ROWSET>
    into
    <human-resources>
    <employee name="Steve"/>
    </human-resources>
    or alternatively into:
    <html>
    <body>
    <b>Steve</b>
    </body>
    </html>
    In both cases, the source XML document
    is the same, but when transformed by
    one stylesheet, it might become
    the <human-resources> XML document.
    When transformed by another stylesheet,
    it can become pretty HTML.
    To put the two terms in context, an XSL processor uses an XML parser to read the source XML document and to read the XSL transformation definition (aka stylesheet) -- since it, too, is an XML document -- and then it proceeds to transform the source into the target.

  • Xml, xsl and jsp

    I used this code to create an xml file through an xsl:
    <%@page import="javax.xml.transform.*,javax.xml.transform.stream.*,java.io.File,java.util.Properties" %>
    <%
    File fXml = new File("C:\\file.xml");
    File fXsl = new File("C:\\file.xsl");
    File fRes = new File("C:\\res.xml");
    StreamSource xml = new StreamSource(fXml);
    StreamSource xsl = new StreamSource(fXsl);
    StreamResult res = new StreamResult(fRes);
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer(xsl);
    transformer.transform(xml,res);
    %>
    but in the res.xml file i have:
    <table> instead of <table>
    what can i do to solve this problem?
    thanks

    I'm near to solution
    i use
    StringWriter resultStringWriter = new StringWriter();
    StreamResult res = new StreamResult(resultStringWriter);
    and then
    transformer.transform(xml,res);
    String str = resultStringWriter.toString();
    this is my xsl:
    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text" indent="yes" encoding="ISO-8859-1"/>
    <xsl:template match="XMLDATA">
    <![CDATA[<tag1>]]><xsl:value-of select="CodiceAmministrazione"/><![CDATA[</tag1>]]>
    </xsl:template>
    </xsl:stylesheet>
    but now the problem is the output:
    \r\n<tag1>Test</tag1>\r\n
    and not
    <tag1>Test</tag1>
    If I write the xsl on one line i have no problem
    Can you help me please?

  • Xml, xsl and database

    I have several xml documents that uses different tags to describe the same type of information. In my case they describe a row in a database table.
    file1.xml
    <therow>
    <name>Jones</name>
    <title>manager</title>
    </therow>
    file2.xml
    <arow>
    <employee>King</employee>
    <job>manager</job>
    </arow>
    I want to use a technology for reading the content of the two files and generate a new document for each file that will use generic tags so the content of the new files could look like:
    file1
    <row>
    <employeename>Jones</employeename>
    <employeetitle>manager</employeetitle>
    </row>
    file2
    <row>
    <employeename>King</employeename>
    <emplyeetitle>manager</employeetitle>
    </row>
    An then I can read this information by using a generic Java class and insert it into the database table..
    I was told that the technology used for doing this was XSLT. I have been searching the web for examples and also tried to read some of the content in the Steve Muench book 'Building Oracle XML Applications'.
    I have managed to create XSL files, but I would really appreciate if someone could show me a real example of how to do this, with the xml file, the xsl file, and a small java program to read this. Can anyone help?

    follow up on http://forum.java.sun.com/thread.jspa?threadID=608775&tstart=0

  • XML containing ref to both XSL and XSD

    Hi,
    I trying to transform the following XML file(simplified) using XSLT (using customers.xsl):
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="customers.xsl"?>
    <customerData>
       <customer>
          <ssn>123456789</ssn>
          <name>Bill</name>
       </customer>
    </customerData>This works fine, and I get a nice table output of the data. However, when I specify an XSD file in the first element like this:
    <customerData xmlns="http://www.galenhollins.com/customer"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://www.galenhollins.com/customer customer.xsd">the transformation no longer works (only the table headers are being displayed, but no rows of data are being displayed). I have verified separately that the XML file can be successfully validated by the XSD (using Sun's MSV). Any ideas what might be happening? Am I allowed to both transform and validate an XML file like this at once?
    Here is a simplified verison of my XSL file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
      <html>
      <body>
        <h2>Customers</h2>
        <table border="1">
        <tr bgcolor="#FF0000">
          <th align="left">SSN</th>
          <th align="left">Name</th>
        </tr>
        <xsl:for-each select="customerData/customer">
        <tr>
          <td><xsl:value-of select="ssn"/></td>
          <td><xsl:value-of select="name"/></td>
        </tr>
        </xsl:for-each>
        </table>
      </body>
      </html>
    </xsl:template>
    </xsl:stylesheet>Thanks,
    Galen

    Hi,
    You are seeing this behavior as the way you are specifying the schema in the xml file is wrong.
    <customerData xmlns="http://www.galenhollins.com/customer"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.galenhollins.com/customer customer.xsd">
    Only the below 2 lines
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.galenhollins.com/customer
    are sufficient to specify the schema.
    The following line
    <customerData xmlns="http://www.galenhollins.com/customer"
    indicates that the customerData and all elements under it belong to the default namespace which is different than when you specify customerData as being in no namespace.
    To overcome this problem, modify your xslt as follows:
    <customerData xmlns:cd="http://www.galenhollins.com/customer"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.galenhollins.com/customer customer.xsd">
    And in all your templates add the prefix 'cd' in the match attribute as follows:
    <xsl:for-each select="cd:customerData/cd:customer">
    I have used the prefix cd but you may use any prefix you like
    (suv, axn, foo, etc)
    Hope this helps.
    Cheers,
    vidyut

  • Xsl:include and xml:import

    I want to use another stylesheet within the original one.
    the documentation just said how to declare an
    xsl:include or xsl:import element as top level, but no examples about how to call the imported or included stylesheet.
    I'll appreciate any examples you can provide to me .
    Thanks
    Chris

    I've done this, and the way i think about it is that each "imported" XSL document combines (or are appended) into the XSL document that imports the other XSL documents. As such, all of the template matching that is occuring has to be consistent with the way the XML tags are matching up with XSL templates.
    It is important that the templates in each imported XSL document will match up to the XML tags that the templates are designed to transform.
    In other words, if i have an employee list <emp>, and an XSL template matching the <emp> element, i can produce a transformation on the list itself. now, i can define a transformation for a child element of <emp> by "importing" the XSL document that defines the template match for the child element (for example, "emp/lastName" can be what the second XSL document matches on).
    Long story short, if you can paste the imported XSL into the importing XSL and things still work, then you can separate them out into multiple modular XSL files for inclusion.
    -dave
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Christos Kouros ([email protected]):
    I want to use another stylesheet within the original one.
    the documentation just said how to declare an
    xsl:include or xsl:import element as top level, but no examples about how to call the imported or included stylesheet.
    I'll appreciate any examples you can provide to me .
    Thanks
    Chris<HR></BLOCKQUOTE>
    null

  • How to filter doc and xml using SDKFileOpenChooser?

    I need to filter only word and xml
    SDKFileOpenChooser openChooser;
    openChooser.AddFilter(291, "App_Filter");   //291 for app
    openChooser.ShowDialog();
    Where i find the extension ID for app filter or any solution?

    To view only XML files using SDKFileOpenChooser use:
    openChooser.AddFilter(kXMLFileTypeInfoID, " XML files(xml)");
    For Word files, try using  kMSWordFileTypeInfoID instead.

  • App-V 5.0 - Globally published application uses shortcut configuration from both AppxManifest.xml and DeploymentConfig.xml

    Hello, i have specific shortcut naming requirements and specify them post-factum (after application sequencing) in DeploymentConfig.xml.
    When the app is published globally to a machine account both files are used for configuring the shortcuts and I have start menu spammed with multiple entries.
    I've checked that the app-v publishing server is configured with the appropriate DeploymentConfig.xml.
    why? How to work around this without re-sequencing the app?

    No it's not, it's published to an AD group with members of the group being only computer objects.
    i've checked how i'm importing the app to app-v server, looks fine, config is set:
    Import-AppvServerPackage $Args[0] | Set-AppvServerPackage -DynamicDeploymentConfigurationPath $AppVDeploymentConfig
    Get-AppvServerPackage -PackageID $PackageGuid | Grant-AppvServerPackage -Groups $Args[1] | Out-Null
    Get-AppvServerPackage -PackageID $PackageGuid | Publish-AppvServerPackage
    update 1
    I'm using the _DeploymentConfig.xml file, but I'm using the UserConfiguration section of that file. Could this be causing this behavior?
    update 2
    I've removed the UserConfig.xml from the folder when importing the app-v package to the server - same results, shortcuts are getting configured from AppxManifest.xml. I got one more angle I can check - maybe those shortcuts are somehow embedded
    inside the private image.
    and I've got it, it's the private image updating at fault.
    thanks everyone!

Maybe you are looking for

  • Buttons not working in Flash 9 Player

    I recently created a header bar in Flash 8. All of the menu buttons were working perfectly in Flash 8 but do not in Flash 9. Did some rules change? The buttons all call getURL functions to load pages.

  • PLEASE HELP - Stupidly deleted "Apple Application Support" Unable to Access Itunes Library (5,000+ songs at stake) = :(

    PLEASE HELP - I have stupidly deleted the apple application support off my computer, and I am unable to launch my Itunes..It advises me to download itunes again, however i am TERRIFIED to do so because I have over 5,000 songs in my Library and no dou

  • Uploading photo

    I had to upload a photo to a web site from my new mac pro, the site would not accept the photo,however no problem uploading from a windows laptop. The photo was a standard .jpg. Anyone got any ideas.

  • Please help !! Adobe Captivate CS4 Installer stuck at 90% " Checking system profile"

         I had installed Adobe Captivate CS4 previously. .For some reason, I used Adobe CS4 cleanup tool..and it removed captivate installers..and I was not able to uninstall captivate CS4 thro' Add/remove programs and removed Captivate using revo uninst

  • Macbook air screen quality

    Hi guys, just purchased a macbook air, was going to get the macbook pro as i won't really be taking it out the house much, not really a high flying businessmen kinda guy, just work as a scaffolder lol. Reason I bought the Air was it suited my needs p