Question of the RTF model

Hi all..
I have the SQL query that has outside put the two following lines. :

http://i55.Tinypic.com/xli1yp.jpg


I need to show in the report in this way:

http://I52.Tinypic.com/8wcvb7.jpg



Is this doable... ? If so, can you let mw know how to start...

My question is: lets take the first table in the report... we can enumerate amount 1, quantity 2 in two columns side by side... but I don't think in any case to display as in above figure

Thanks for the help...

Can you provide an xml file? Send me the file at [email protected]. I tried with a sample of data and it works.

To display two tables side by side for a given date, create a table with two columns and each column by inserting the 'table of two columns"which will show your purchase data and Total.

If you know that there will be only 4 columns amount you will have to deal with, then two individual tables can contain the data that you have entered in your image. First table includes quantity 1 and 2 of the amount, the second table amount 3 and 4 (in the largest table of two columns).

Hope that helps.

Thank you
Bipuser

Published by: BIPuser on June 10, 2011 09:35

Tags: Business Intelligence

Similar Questions

  • How to debug the RTF model

    Hi all

    How to debug the RTF model, we had an error during the creation of the report...

    Thanks in advance.

    Hello

    Check out the link below, it may be useful for you

    http://bipconsulting.blogspot.com/2010/01/bi-Publisher-logging-debugging-part-4.html

    Thank you
    Ananth
    http://bintelligencegroup.WordPress.com/

  • How to make a function of Division in the RTF models.

    Hi all

    How to use the function of Division in the RTF models on two fields XML.

    I have fields XML, B. I need to perform the function(A/B) in RTF models division. I did like this, but it appears no value.

    * <? xdofx:A / B? >, <? xdofx:div(A/B)? > * but is null resulting suggestions please.


    Thanks in advance.

    Published by: user1175240 on October 15, 2010 14:15

    Could you please try it in small box? I meant the part of the div

    Published by: amri on October 18, 2010 21:05

  • Merge cells in Excel of the RTF model output

    Newbie question. When I create a RTF model whose primary production is Excel, I usually have a lot of merged cells. Any advice on how to fix that? I almost always prefer my split cells.

    exporting to XLSX

    What export to xls?

    also that there emerged word? where is the same behavior or not?

    as I said

    can not say without looking at it

    can be yes or no

    output image seems strange

    It's may be bug or incorrect model

    Look at

    Generate an Excel output with an RTF template columns and rows of a Table are combined (Doc ID 1590858.1)
  • Conditional formatting in the RTF models

    Hello

    I'll just with the design of rtf models. I have a question about the function of conditional formatting. It comes

    IF I have different types of customers(corporate,individual,etc..) passed as parameters, can, a particular cell be formatted with different colors for different customers. for example, if the setting is undertaken client the the color of a particular cell should be RED in color, and if the parameter is the color of the cell must be GREEN in color.

    Please help me with this.


    Thanks in advance

    Yes, you can conditionally format individual cells.

    Take a look at the guide (link provided) and looking for 'highlighting of cells:

    http://docs.Oracle.com/CD/E10415_01/doc/bi.1013/e12187/T421739T481157.htm

    Code example: 1000? >rouge

    Thank you
    Bipuser

  • How to display an image blob at the top of the RTF model.

    Hello

    I want to display an image blob (company logo) in my RTF model

    My problem is how can I display this image in the header of the template.

    I tried this

    <?

    < fo:instream - foreign-object content-type = "image/jpeg" >

    < xsl: value-of select=".//LOGO"/ >

    < / fo:instream - foreign-object >

    ? >

    but failed

    Thanks in advance.

    I tried this

    <>

    ?>

    but failed

    course

    What is red elements?

    model you can be like

    ... of data...

    (after all data)

    (as a field)

    (in the header/footer)

    a few comments https://oralublog.wordpress.com/2014/10/04/bi-publisher-11g-footers-and-headers-in-rtf-template/

  • Exit Excel does not not the headers on each page of the rtf model

    Hi all

    I have an rtf template where I used a title in the header section. This repeats outputs in PDF and RTF. But output Excel it is not repeated.

    This is an expected behavior. If it's... does perform a work around...

    enjoy all the entries on this...

    Best regards

    gt1942

    AFAIK, you can't repeat the page output to Excel headers using RTF model.

    Excel page headers can be repeated for each page using Excel template.

  • code xdoxslt:Sum does not not in the RTF model: method not found "sum".

    We get the error when you run a RTF model customized using the application (Oracle HRMS) below and in Office BiPublisher for a particular set of data (1 employees check data). Format RTF model code which seems to be the cause of the error is the cumulative total code which is supposed to sum YTD_HOURS for all elements in the DataSet xml AC_EARNINGS:

    Problem code: <? xdoxslt:sum(YTD_HOURS_[.!_=''])? >

    The error message below it seems to be having trouble with the sum

    HRMS Oracle concurrent Manager error:

    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39
    )
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl
    . Java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:677)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:425)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:244)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate (TemplateH
    Elper.Java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
    St. Java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
    St. Java:3548)
    at oracle.apps.pay.core.documents.DocGenerator.process(DocGenerator.java:521)
    Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: method
    not found 'sum' to the oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
    ... more than 17

    HR_6882_HRPROC_ASSERT
    LOCATION pyjavacom:2
    APP-PAY-06882: Assertion failure detected at the location pyjavacom:2.

    Cause: an internal error has occurred at the location pyjavacom:2.

    Action: contact your Oracle customer representative.



    Note: The RTF check model works ok most of the time, but there is a problem with the model of XML data below. In this scenario, there is no YTD_HOURS and only one line of data for this employee, unlike the data second example of another audit below.

    The data that the code does NOT work with:

    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
    Normal salary < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS > 80 < / CURRENT_HOURS >
    < YTD_HOURS > 1312 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL > 19.81 < / RATE_MUL >
    < RATE_RET / >
    < / AC_EARNINGS >

    Data that works with the code:

    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
    Normal salary < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS > 80 < / CURRENT_HOURS >
    < YTD_HOURS > 1312 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL > 19.81 < / RATE_MUL >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    < ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58444 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511222 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1.46 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25,51 < / YTD_AMOUNT >
    Life term for the Group < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58431 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511205 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 9.6 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 163,2 < / YTD_AMOUNT >
    < REPORTING_NAME > dental CB < / REPORTING_NAME >
    < CURRENT_HOURS > 0 < / CURRENT_HOURS >
    < YTD_HOURS > 0 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 64614 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10518109 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1526 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 1571.12 < / YTD_AMOUNT >
    < REPORTING_NAME > TOWP < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS > 80 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 57863 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10510820 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 937,2 < / YTD_AMOUNT >
    Holiday < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS > 48 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    < ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 63592 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10517244 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 285.07 < / YTD_AMOUNT >
    < REPORTING_NAME > F90 SVEU DIST < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 67074 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10520289 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 85.24 < / YTD_AMOUNT >
    < REPORTING_NAME > other Tx RRs < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >


    If anyone has any ideas as to what is necessary to resolve the issue we have in our company can you please let me know? I appreciate your time. If you need more information please let me know and I'll post it.

    Thank you

    Greg

    Published by: gtruta on November 20, 2012 16:20

    Published by: gtruta on November 20, 2012 16:21

    xdoxslt sum allows us to avoid the issue while fields sum with the value null. as you already now the condition with the field u do not need xdoxslt

    is - enough try this

    you are able to get a preview of the template with the code of the sum.

    Send me your model and xml. I can try at my side
    E-mail: [email protected]

  • With regard to the RTF model: enter the commands in your RTF model

    Hi all



    I read the Oracle Documentation saying: "entry of the orders in your RTF model."


    I tried to look at this one, I have a requirement.

    Really how can I enter the commands in RTF model. I didn't get this one a lot.

    Any help is very appreciated as always :)

    Thank you
    Xavier

    Well, my OPE user's guide did not have the mentioned pages but I watched this guide: http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12188.pdf

    and given the documents, you need just to include controls in a form field in the foreach loop for the element you want to split the document by... You could insert a form field and then double-click the field, go to the properties of Word-> add-> the status bar help text and change the code following the instructions in the guide.

    Hope that helps.

    Bipuser

  • Is it possible to get the linked server settings in the RTF models

    Hi all

    I have a Common.rtf have the code as
    <?template:Header?>
     (My Image)
    <?end Header?>
    I saved over file at a certain place in my system

    Now I have a different Main.rtf using Common.rtf like that
    <?import: file:///I:/MyTemplates/Common.rtf?>
    <?call@inlines:Header?><?end call?>
    Common.rtf content is perfectly visible in Main.rtf but any configuration execution for 'file location' Main.rtf possible?

    Basic requirement is to run in any computer without making any changes to the 'file location' in Main.rtf again and again. Are there property server_url or something like that what can be used in RTFs?

    Any kind of help will be appreciated. Thank you very much.

    -Sookie

    Hello

    You should be able to save the common model on the server and be able to import it via a URL call...

    Read this article by Tim Dexter: http://blogs.oracle.com/xmlpublisher/2009/06/conditional_headers.html

    Thank you!

  • Newbee question: why a RTF model increases the size of the cells on the output

    We are new to BI publisher and work to the conversion of our custom reports to BI Publisher crystal. We currently use PeopleSoft 9.1 with 8.51.12 tools and are about to upgrade to 9.2 next year. Our office of BI Publisher comes bundled with peopleSoft and that our version of BI Publisher Core is 10.1.3.4.1. Then we use Office 2013. I started to look into these reports and found something that I do not understand:

    When you add a simple table to the model, the filling of a field and running an overview pdf size are increased and spacing is added above and below the text. I looked through all the spacing options I know, but can't seem to find where I can change this.

    template.jpg

    Any suggestion will be appreciated...

    Thanks for the files.

    Data from the xml structure is to have a new line of character as below

    Instead of

    and if the additional lines were added in the output.

    To avoid this, you need to cut the space beginning and end.

    So, to add the syntax like

    and the result will be like this

  • Simple (hopefully) newbie question on the Export model

    Entirely new to ODM - so please be gentle! - and you would really appreciate to help smart people.

    We use ODM (10 g) to make some predictive analytics (SVM). The question I have is:

    Once a model is 'built' and trained on historical data, can model that be exported to and used in another environment (external) Oracle (assuming of course that the data columns are equivalent)?

    Can you tell me if the model is exported as an ODM object - and so would require an instance of the ODM to the outside environment. Or, if it is exportable in the form of, say, a table of coefficients that may simply be questioned outside without needing an instance of ODM.

    I hope it's a clear explanation of what I'm trying to get to. thanks in advance.

    Hello
    Yes, you can export/import a model from an Oracle database to a different Oracle DB using the pl/sql API, documented in the doc PL/SQL Packages and Types.
    DBMS_DATA_MINING. EXPORT_MODEL
    DBMS_DATA_MINING. IMPORT_MODEL
    If you build a SVM model using the linear option, you can extract the coefficients in table form and import them into an Oracle database in some mid-layer service or not.
    Thank you, Mark

  • Question on the deployment model

    We have a seat WITH 2 servers UCS. For the moment, it is a centralized call processing. CUCM Pub/Sub and UnityConn Pub/Sub. We bring a branch of NYC and have a few options open to us. (currently we have 1 Server UCS in NYC, but its not used for anything else)

    Considering best practices for deployment, which is better deployment?

    Option # 1: Put THE CUCM subscribed to New York which phones NYC will use to register too, but calls are going out of the gateway to NYC by the PRI. This option will also include a UnityConn PUB in New York and a subscriber of UnityConn in THE sort if the UCS in NYC server goes down, voicemail will be in quantity.

    Option # 2: Complete treatment distributed call, it is its own Site. NYC is its own site with its own CUCM Pub and Pub in unit. Gateway will have SRST for failover and there will be NYC UnityConn Sub in for failover of voicemail

    What are the pros and cons of these options?

    much appreciated, thanks

    How big are the sites, i.e. how many users?

    If you can limit the number of cluster which is still preferred because you don't have to keep 2 separate systems, worry about separate upgrade, parity functionality between users, etc.

    Cluster geographically split as shown in option 1 is always a good idea as long as you can meet the stringent requirements listed SRND, i.e. a latency of less than 80 ms, sufficient bandwidth to DB replication and traffic of ICCS (pretty important), DB bandwidth for UCXN (7 Mbit/s by 50 ports0. It also comes with considerations for your building of CUCM group for redundancy, you local model of 1:1, 2:1, is the backup server to another place, etc, etc.

    HTH,

    Chris

  • How to handle null values in the RTF models

    Hi - I have two groups in a report for different SQL and two formulas for each group, CF_ELE_CNT and CF_ELE_CNT1. In the model that I used the code to print a section below or not.

    <? If: number (CF_ELE_CNT + CF_ELE_CNT1) > 0? >

    The problem is when no data in the second group it was created not the tag XML for CF_ELE_CNT1, if CF_ELE_CNT has 13, it does not always print this partucular article. If I remove the CF_ELE_CNT1 in the State, it works fine. I was wondering how to handle this.

    Any help would be appreciated!

    Thank you
    RAV

    Hey Rav,.

    Check my profile, you will find.

    purpose of fusion {point} [AT] gmail [dOt] com

  • Variable Subtrating in the RTF models

    Hello

    I'm trying to subtract two variables, but it seems that something is wrong. Please help me.
    Here is my code:
    <? choose:? >
    <? When:xdoxslt:get_variable($_XDOCTX,'Var2')=(xdoxslt:get_variable($_XDOCTX,'Var1'))? >-<? end when? >
    <? otherwise:? > <? xdoxslt:div((xdoxslt:get_variable($_XDOCTX,'Var2')-xdoxslt:get_variable($_XDOCTX,'Var1')),xdoxslt:get_variable($_XDOCTX,'Var1'))? > <? end otherwise? >
    <? end to choose? >

    put a number function around it

     number ( xdoxslt:get_variable($_XDOCTX,'Var2') ) 
    

Maybe you are looking for