16 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for mb2006

For the following xml file, i need to generate an xsl-fo file to be converted into pdf. I am new to style sheets and struggling to create dynamic table. Please help. Also, the width for each column varies,based on the column.How would i include this into the code? The Column …

0
118
Member Avatar for eresh.leo

I have a situation in xsl where I had a param value that will be assigned some where in xslt transformation. But I get that param as a String , that param may contains a node a unbounded[0 or more repetitions] . How can I use param in for each …

0
98
Member Avatar for chopstix21

I want to obtain a better xml file using some xslt and xml below. <?xml version="1.0" encoding="UTF-8"?> <Pallets><Pallet> <PalletNumber>2</PalletNumber> <Product>1</Product> <Quantity>2</Quantity> </Pallet> <Pallet> <PalletNumber>2</PalletNumber> <Product>1</Product> <Quantity>4</Quantity> </Pallet> <Pallet> <PalletNumber>2</PalletNumber> <Product>2</Product> <Quantity>1</Quantity> </Pallet> <Pallet> <PalletNumber>3</PalletNumber> <Product>1</Product> <Quantity>2</Quantity> </Pallet> <Pallet> <PalletNumber>4</PalletNumber> <Product>2</Product> <Quantity>2</Quantity> </Pallet></Pallets> I need to sum up quantity per pallet …

0
105
Member Avatar for suresh.xsltlist

Hi, Can someone help me on this. Really appreciated. **Requirement:** 1. To generate separate html files for each pal:fragment element, for the source document attached ,the files gets name based on @fragment-id which is present on the pal:fragment elements. 2. The <pal:fragment> can be nested, wrapped with<div> element. 3. The …

0
164
Member Avatar for shraddha_gupta

I have created a userConfig file to add MSGOTHIC font to FOP. <fop version="1.0"> <renderers> <renderer mime="application/pdf"> <fonts> <!-- register a particular font --> <font metrics-url="file:/tmp/msmsgothic.xml" kerning="yes" embed-file="file:/tmp/msgothic.ttf"> <font-triplet name="MSGothic" style="normal" weight="normal"/> </font> <font metrics-url="file:/tmp/msmsgothic.xml" kerning="yes" embed-file="file:/tmp/msgothic.ttf"> <font-triplet name="MSGothic" style="normal" weight="bold"/> </font> </fonts> </renderer> </renderers> </fop> Now I have set …

0
188
Member Avatar for smsm08

> Quoted Text Here <?xml version="1.0" encoding="utf-8"?> <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:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"> <xsl:output method="html" indent="no"/> <xsl:template match="//xml"> <span style="border:solid 1px black"> -<xsl:value-of select="@query"/>- </span> <xsl:for-each select="//z:row"> <div> <xsl:value-of select="@ows_LinkTitle"/> </div> <div> <xsl:value-of select="@ows_Body"/> </div> </xsl:for-each> </xsl:template> </xsl:stylesheet> Gave me the …

-2
125
Member Avatar for mulegoat

Hi there, I have a very simple schema where each node requiring HTML output contains 7 possible numerical variables (all within nodes N1 - N13). I need to output text and image content according to the number within each node. Below is a sample of my schema: [CODE] <?xml version="1.0" …

0
108
Member Avatar for Haranadh

Hi Friends, I am new to this XML & XSL. I want to write a template which takes two arguements and it should take the node name and node value. in template i want to format the input value. Please share if any one can guide me on this. The …

0
131
Member Avatar for jeraldmuthu

Hi i'm new to xslt the below code for getting chart in pdf after clicking the chart checkbox [CODE] <xsl:if test="$chartimage"> <fo:block text-align="center" space-after="8em"> <fo:external-graphic xmlns:fo="http://www.w3.org/1999/XSL/Format" scaling="uniform"> [B]<xsl:attribute name="src">[/B] <xsl:value-of select="concat(concat('url(',$chartimage),')')" /> </xsl:attribute> </fo:external-graphic> </fo:block> <xsl:if test="$chartPageBreak='true'"> <fo:block break-after="page" /> </xsl:if></xsl:if> [/CODE] bold coded setted attribute name through that they …

0
142
Member Avatar for tgreer

Since it's been about three years since I had to write any XSLT, I'd like some assistance with the code below. [CODE]<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="/WatchConfig/ProcessList/Process/Node"> <xsl:if test="Plugin = 'PWScript'"> <xsl:text> </xsl:text> <xsl:value-of select="Config" disable-output-escaping="yes" /> <xsl:text> ************************************************************************ </xsl:text> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet>[/CODE] …

0
175
Member Avatar for citydusk

Hello experts, I am new to XSL and would like to transform a NewML G2 format XML into another XML. For example I have: [CODE] <?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- SUMMARY: - Structure: NML2 SNI Text - Based On: NAR v1.2_1, NML2 v2.1_1 AUTHOR: --><!-- ========================================================= --> <newsMessage xmlns="http://iptc.org/std/nar/2006-10-01/" xmlns:rtr="http://www.reuters.com/ns/2003/08/content" xmlns:x="http://www.w3.org/1999/xhtml" …

0
92
Member Avatar for chriselectrix

Hi All I have the following XML (which is generated automatically and cannot be modified): [CODE]<ExportQuery> <ELEC01_SOWaitingParts3> <OrderDtl_PartNum><![CDATA[UK MUNSTD 20 BOX OF 100]]></OrderDtl_PartNum> <JobOper_OprSeq><![CDATA[10]]></JobOper_OprSeq> <Part_PartNum><![CDATA[UK MUNSTD 20 BOX OF 100]]></Part_PartNum> <OrderDtl_OrderNum><![CDATA[18432]]></OrderDtl_OrderNum> <OrderHed_OrderNum><![CDATA[18432]]></OrderHed_OrderNum> <JobHead_PartNum><![CDATA[UK MUNSTD 20 BOX OF 100]]></JobHead_PartNum> <JobHead_JobComplete><![CDATA[Yes]]></JobHead_JobComplete> <JobOper_JobNum><![CDATA[018957]]></JobOper_JobNum> <JobOper_OpCode><![CDATA[GB STORE]]></JobOper_OpCode> <JobOper_OpDesc><![CDATA[GET BATCH STORES]]></JobOper_OpDesc> <JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete> <JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted> <FalseJobNum><![CDATA[18957]]></FalseJobNum> </ELEC01_SOWaitingParts3> <ELEC01_SOWaitingParts3> …

0
112
Member Avatar for iskinner

Thanks to some great help for my first ever post on this formum [ [URL="http://http://www.daniweb.com/forums/thread346113.html"]Fetch a node based on a value of another node.[/URL]] I am now recursively traversing through my XML data where nodes are related to each other. Example XML [ICODE] <gedcom> <INDI ID="@I001@"> ... <FAMC>@F001@</FAMC> </INDI> <INDI …

0
117
Member Avatar for vatsag

Hello Im very new to the XSLFO. I have a requirement to color a text entry with a suitable background color which i do using the snippet [CODE]<fo:inline color = "red" background-color = "yellow"> <xsl:value-of select="."/> </fo:inline>[/CODE] With the above snippet i am able to set the forecolor of the …

0
85
Member Avatar for 6pandn21

Hello guys! I am very new to XSLT and am getting stuck in a very annoying problem. I have got a XSL file within with there is a part of code to book a place. Here is the code; [CODE]<xsl:when test="seats &gt; 0"> <td> <input onclick="sendBookRequest();" type="button" value="book"> <xsl:attribute name="onclick">sendBookRequest(<xsl:value-of …

0
84
Member Avatar for TeckniX

So I created a template for a simple link builder function. Problem is, when I use it, I don't get the link, I get just the text. Could anyone help me understand what I'm doing wrong? Thanks! [CODE] <xsl:variable name="ReadMore"> <xsl:call-template name="linkBuilder" > <xsl:with-param name="linkID" select="format-number(@ID, '#,##0.#;-#,##0.#')" /> </xsl:call-template> </xsl:variable> …

0
139

The End.