Hi everyone, Im building a website for a client but they requested it in umbraco and Ive got an xslt query that has been bugging me for days. I have built a search form user control which has three drop downs and i want to build an xslt macro that brings back search results based on values that the user selects. * location * Type * Capacity so far i have the following code <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:Examine="urn:Examine" xmlns:ucomponents.dates="urn:ucomponents.dates" xmlns:ucomponents.email="urn:ucomponents.email" xmlns:ucomponents.members="urn:ucomponents.members" xmlns:ucomponents.search="urn:ucomponents.search" …

Member Avatar
+0 forum 0

I was wondering if anyone out there was usiing OpenXML in an MVC web application. I've used it in C#.NET code behind for ASP.NET web forms web applications and was thinking about using it for generating an MS Word Document.

Member Avatar
+0 forum 0

Hi, I am currently building up text warp tool using ordinary bitmap(rgb) object. An example of text warp is here: http://i72.photobucket.com/albums/i189/paulsoulsby/textbend.png As you might know already, working on bitmap causes lots troubles related to high res and image distortions. So I am looking for a way to warp texts using svg . I found it I can resize text vertically and horizontally in different scale using matrix: <text transform="matrix(0.45914843678474426,0,0,2.1637930870056152,56.1,-451.55)" style="font-size:100px;font-family:Arial Black;font-weight:normal;fill:#0057FF;opacity:0.5;glyph-orientation-horizontal:0;glyph-orientation-vertical:0;text-align:start;line-height:1.25;"> <tspan x="101.95" y="460.45" style="font-size:100px;font-family:Arial Black;font-weight:normal;fill:#0057FF;opacity:0.5;glyph-orientation-horizontal:0;glyph-orientation-vertical:0;text-align:start;line-height:1.25;">SAMPLE TEXT</tspan> </text> But matrix transform is just vertical and horizontal scaling. What I need to do is having n by m grids and shift …

Member Avatar
+0 forum 0

I am working on a project where keywords (submitted from a website) will query a large XML document for matching criteria (for shopping products), then retrieve and return all the relevant search results (much like Google Shopping). There may be 100’s of search results returned, with 20 search results per page. Using PHP for the API call, would XPATH or SAX be better with regard to page loading speed and memory efficiency.

Member Avatar
+0 forum 0

Hi friends, I had an xml like <a text="asadf"> <b text="narsapur"> <c text="1234" /> <c text="statecag" /> <c text="Pending Approval" /> <c text="S Corp:Pending Approval" /> <c text="Composite:Pending Approval" /> <c text="Combined:Pending Approval" /> <c text="Form Status"> <d text="Approval Pending"> <e text="BITa" /> <e text="BITb" /> <e text="BPTbc" /> </d> <d text="ro"> <e text="efgh" /> </d> </c> </a> I want to change this to following format <label>asadf</label> <id>a</id> <children> <label>narsapur</label> <id>b</id> <children> <label>1234</label> <id>c</id> </children> <children> <label>statecag</label> <id>c</id> </children> <children> <label>Pending Approval</label> <id>c</id> </children> </children> I think we can change it using schema. But i dont know how to write. …

Member Avatar
+0 forum 0

We only talk about DTD and XML in class for 2 days and i have this assignment not sure if im doing it right or did everything that has been asked. Atleast i try, any help will be appreciated!! Assignment You have been asked to represent airport data where an airport has required attributes name and location; and an implied attribute famous_assoiciation. The famous_assoication attribute is the name of a famous person after whom the airport has been named. An airport is composed of one or more hangers. Each hanger has a number, location and a set of 0 or …

Member Avatar
+0 forum 0

I've had some reports that some SVG files I've created work, but without the text. Is there a problem of rendering SVG text on smartphones and browsers? Here are my test files: http://www.ransen.com/svg1.html http://www.ransen.com/svg2.html http://www.ransen.com/svg3.html The first two have very small text, but the last one has text which should be very visible. Is this a known problem?

Member Avatar
+0 forum 0

The XML structure looks like this: <table> <method>insert</method> <rows> <foo></foo> <bar></bar> </rows> </table> I need to get the following XML using XSLT based on the value 'insert' of XML element 'method': <table> <method>insert</method> <rows> <row> <foo></foo> <bar></bar> </row> </rows> </table>

Member Avatar
+0 forum 0

I created an XML files and succeeded validating it with an xsd schema , then a created an xslt file to turn the data on the xml file into a table but every time time a tried to open it into a browser , data are displayed in the same line not on a table , i'm pretty sure that my code is correct and i don't know why it doesn't work , here is the 3 files : https://www.dropbox.com/sh/gggkh4wg94simrl/2GbiHAGkVF

Member Avatar
+0 forum 0

Hi, I want to make two tables in XML. The first one has not a constant number of rows (using for-each), therefore the second one should be higher or lower (right below the first one) depending on the lenght of the first table. when i export this thing and open with excel, the second table is too far away from the first one. Please help!

Member Avatar
+0 forum 0

Hello I'm looking for some help on how to get a XML value which would be one word. Then take that value and output it in a C# or C++ program. Using windows 7 and visual studio 2010. I have Novice programming knowledge. Thanks for help.

Member Avatar
+0 forum 0

Hi i have a form <input type="text" /> <button id="submit">Go</button> and i have a json document i want to put a name in my search box and look for name or age any of the field of json.. can you pls help m eon this as i m new on json and javascript also jquery

Member Avatar
+0 forum 0

i have follwing data in datatable how to convert it to xml ErrorType UtilityType MstLocCode MDescription SubLocCode SDescription FieldName FDescription 1 Elect NM0001 XMN001 ABC ddsafs 1 Elect NM0001 XMN001 XYZ ddsafs 1 Elect NM0001 XMN001 LMN ddsafs 1 Elect NM0005 XMN002 sds 1 Elect NM0006 XMN002 fghfgh Gas ddsafs 1 Elect NM0002 asas 1 Elect NM0003 asas 1 Alect NM0004 asas 2 Alect NM0008 asas and my xml output will be like follwoing <Country Code=“Test”> <Error Type=“1”> <Utility Name=“Elect”> <MSTLOC Code=“NM0001” > <SubLocation Code=“XMN001”> <Field Name=“ABC” ErrorMessage=“ddsafs”/> <Field Name=“XYZ” ErrorMessage=“ddsafs”/> <Field Name=“LMN” ErrorMessage=“ddsafs”/> </SubLocation> </MSTLOC> <MSTLOC Code=“NM0005” > <SubLocation …

Member Avatar
+0 forum 0

Hi! Im looking for the best way to describe a flow chart with xml where blocks have multiple inputs and output. Blocks are placed in "folders" here in my xml I called them blockgroup. Each block has a name that must be unique within a blockgroup. Inputs and outputs must be unique within the same blocks input/ouputs. How do I describe a connections like this one: From: "block D" output "F" in blockgroup "First group" To: "block A" input "B" in blockgroup "Second group" or From: "block A" output "Not unique" in blockgroup "First group" To: "block D" input "E" …

Member Avatar
+0 forum 0

I am trying to read XML file and store in sql table. I got two errors. PHP Warning: XMLReader::open(): Unable to open source data Warning: XMLReader::read(): Load Data before trying to read // In addition, Please let me know the filename in below cases. case 1: Code: Select all $reader->open($topdir."/nap/".$code->no()."_city.xml"); // IF i run like php user.php 01 || php user.php case 2: Code: Select all $reader->open($topdir."/nap/"."01_city.xml"); // IF i run like php user.php 01 || php user.php I would like to know the working process. How to solve it ?

Member Avatar
+0 forum 0

Hi all, I have a text encoded in tei xml like this: <p> <phr> some text </phr><phr> other text</phr></p> with xsl I could number all the phrases: <xsl:template match="phr"> <xsl:number format="1" level="multiple" />.<xsl:apply-templates/> </xsl:template> now I would like to tranform the numbers into link to other internal phr. Any idea?

Member Avatar
+0 forum 0

Hi all, I have a XML which has list items like <list type="expl" margin="0"> <li label="(1)"> <p num="n"> <text> (1) A person is guilty of an offence if: </text> </p> </li> </list> <list type="expl" margin="0"> <li label="(a)"> <p num="n"> <text> (a) the person deals with money or other property; and </text> </p> </li> </list> The output i need is like <list type="expl"> <li label="(1)"> <p num="n"> <text>A person is guilty of an offence if:</text> </p> <list type="expl"> <li label="(a)"> <p num="n"> <text>the person deals with money or other property; and</text> </p> </li> </list> </list> Effectively if List appears as consecutive …

Member Avatar
+0 forum 0

Hi to all I got flash mp3 player from my friend and I wanna your help becuase I'm not well flash and my friend was moved to Africa, here the actionscripts 2.0 code. my question is I don't to use the plalist.xml file I want to use direct link in the embed code ( name=flashvar value="xmlurl=song.mp3-- to value="mp3=http://mysite.com/song.mp3 instead" player.fla player.swf playlist.xml stop(); var songs:Array = new Array(); var curtrack:Number = 0; var playingsong:Sound = new Sound(); var _play:Boolean = false; var playlistXml:XML = new XML(); if (_level0.xmlURL == undefined) { xmlURL = _level0.xmlURL; } else { xmlURL = _level0.xmlURL; …

Member Avatar
+0 forum 0

Hi, I have a weird requirement and since i have never worked on xml, xsd and python i am not understanding how to go about it. There will be 2 xsd files containing parameters(structure), (may or maynot have)default values for them and range values for them. The xml file will contain values for these parameters and (may or maynot) have values for optional parameters. So in the example file below, P_B.1 is an element, which has a value "1" in xml file. I need to get this value and i need to check whether the value fits into the range …

Member Avatar
+0 forum 0

(edit) this is solved, was a unicode issue. Hi I'm hoping someone has used the library [pugixml](http://pugixml.org/) I'm just trying to use a simple example provided but I'm not getting the result I expect. int _tmain(int argc, _TCHAR* argv[]) { pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file("tree.xml"); //pugi::char_t * c = "Fail\0"; // used with as_string() method std::cout << "Load result: " << result.description() // output = "Load result: No Error " << ", mesh name: " << doc.child("mesh").attribute("name").value() // output = ", mesh name: " << std::endl; return 0; } I was expecting "Load result: No Error, mesh name: mesh_root" …

Member Avatar
+0 forum 0

Hello I need help encrypting just the password from a XML file. The file follows the W3C XML syntax. I think I can achieve it by by encrypting the xml element content like this example: <?xml version='1.0'?> <PaymentInfo xmlns='http://example.org/paymentv2'> <Name>John Smith</Name> <CreditCard Limit='5,000' Currency='USD'> <Number> <EncryptedData xmlns='http://www.w3.org/2001/04/xmlenc#' Type='http://www.w3.org/2001/04/xmlenc#Content'> <CipherData> <CipherValue>A23B45C56</CipherValue> </CipherData> </EncryptedData> </Number> <Issuer>Example Bank</Issuer> <Expiration>04/02</Expiration> </CreditCard> </PaymentInfo> But I do not know how to encrypt my password. I have been searching on the internet for days and do not understand how I can encrypt the password. This xml file is the settings for an application from a vendor and …

Member Avatar
+0 forum 0

Hi every body, I am trying to parse an xml file with sax parser in java and then fulfill a Jtable with the XML elements. The parsing is well done, the Jtable is created but the problem is that all the elements are placed in the same row and the same row is repeated !! any Help please ! Here is my code : /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package read; //import java.util.ArrayList; import java.awt.BorderLayout; import java.util.ArrayList; import java.util.List; import java.util.Vector; import javax.swing.JFrame; import javax.swing.JScrollPane; import …

Member Avatar
+0 forum 0

i have an xml File, below is snippet from the file <?xml version="1.0" encoding="UTF-8"?> <dataroot> <Products> <ProductID>37</ProductID> <ProductName>Gravad lax</ProductName> <SupplierID>17</SupplierID> <CategoryID>8</CategoryID> <QuantityPerUnit>12 - 500 g pkgs.</QuantityPerUnit> <UnitPrice>26</UnitPrice> <UnitsInStock>11</UnitsInStock> <UnitsOnOrder>50</UnitsOnOrder> <ReorderLevel>25</ReorderLevel> <Discontinued>0</Discontinued> </Products> <Products> <ProductID>38</ProductID> <ProductName>Côte de Blaye</ProductName> <SupplierID>18</SupplierID> <CategoryID>1</CategoryID> <QuantityPerUnit>12 - 75 cl bottles</QuantityPerUnit> <UnitPrice>263.5</UnitPrice> <UnitsInStock>17</UnitsInStock> <UnitsOnOrder>0</UnitsOnOrder> <ReorderLevel>15</ReorderLevel> <Discontinued>0</Discontinued> </Products> </Products> </dataroot> I then use XQuery to locate the max UnitPrice which is $263.50, Xquery Shown below xquery version "1.0"; <dataroot> { let $x := doc("../xmlFiles/Products.xml")/dataroot/Products let $y := max($x/UnitPrice) return <MaxPrice> {<UnitPrice>{$y}</UnitPrice>} </MaxPrice> } </dataroot> How do i go about getting the other nodes associated with this max UnitPrice?

Member Avatar
+0 forum 0

I'm stumped on getting svg to show. Even the simplest thing file will not show when I upload it. When uploaded to the server at work, no problem. I uploaded the files to my own hosting space from home, to learn and test. The exact same files. Nothing works??? I keep hoping it's some sort of namespace issue, but again - this exact file worked at the office. I tried it on a third server, and it worked. I'm not sure what I might be able to do, or what server changes to request from the person hosting my site. …

Member Avatar
+0 forum 0

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 Headers and Column Values are dynamically populated in the xml file. Below is a sample. Can anybody please help in generating xsl-fo or xslt code? <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ReportData> <ColumnHeaders> <ColumnHeader> <Name>Col-Header1</Name> <Width>5</Length> </ColumnHeader> <ColumnHeader> <Name>Col-Header2</Name> <Width>10</Length> </ColumnHeader> <ColumnHeader> <Name>Col-Header3</Name> <Width>8</Length> </ColumnHeader> </ColumnHeaders> <Rows> <Row> <Column>Row1-Col1</Column> <Column>Row1-Col2</Column> <Column>Row1-Col3</Column> </Row> …

Member Avatar
+0 forum 0

I have been trying for a long time to use a mobile Doctype in my XSLT file like so: <xsl:output method="xml" omit-xml-declaration="yes" doctype-public="-//WAPFORUM//DTD XHTML Mobile 1.0//EN" doctype-system="http://www.wapforum.org/DTD/xhtml-mobile10.dtd"/> but when I do this my sites layout goes all crazy which you can see [here](http://mayar.abertay.ac.uk/~0902221/plcwork/). I need to validate my mobile site at [this](http://ready.mobi/launch.jsp?locale=en_EN) site and it will not detect the Mobile doctype unless I output as XML, which as you can see messes up my page. Can anyone explain why this is happening, and maybe show me how to do this, or explain why it is happening? Many thanks!!!

Member Avatar
+0 forum 0

I have this json data and would like to convert to xml with php.. [themes] => Array ( [theme] => Array ( [0] => Array ( [name] => dasdasd [filename] => dasdasd [isDefault] => 0 ) [1] => Array ( [name] => dasdasd [filename] => dasdasd [isDefault] => 1 ) ) ) now i want to create an xml in this format.. <themes> <theme> <name>dasdasd</name> <filename>dasdasd</filename> <isDefault>0</isDefault> </theme> <theme> <name>dasdasd</name> <filename>dasdasd</filename> <isDefault>1</isDefault> </theme> </themes> But when i process with this // function defination to convert array to xml function array_to_xml($template_info, &$xml_template_info) { foreach($template_info as $key => $value) { if(is_array($value)) { …

Member Avatar
+0 forum 0

Hello is it possible to use xslt to go from  Code: `<XML> <TAG1>tag1value1;tag1value2</TAG1> <TAG2>tag2value1;tag2value2</TAG2> </XML>` To thisCode: `<XML> <LINE> <TAG1>tag1value1</TAG1> <TAG2>tag2value1</TAG2> </LINE> <LINE> <TAG1>tag1value2</TAG1> <TAG2>tag2value2</TAG2> </LINE> </XML>` Any help would be most appreciated.

Member Avatar
+0 forum 0

ViewResources.properties Hello I have a a properties sheet I would like to know how to make bookMarkDB.home reference other properties from the ViewResources.properties sheet below. how can "bookMarkDB.home" create a systemDir by using the properties already defined? The only example I have seen uses $ but I have no clue. thanks. [code] systemFolder.targetFolders.dir=LoginInfo.getTargetFolderSystemDir() systemFolder.ser.dir=LoginInfo.getSystemFolderSystemDir() bookMarkDB.name=bookMarkDB.xml bookMarkDB.dir=bookMarkDB bookMarkDB.home=$(ViewResources.systemFolder.targetFolders.dir)+File.separator+$(ViewResources.bookMarkDB.dir)+File.separator+$(ViewResources.bookMarkDB.name); [/code] I also use xml properties is there a way to use xml and reference properties that have been defined already?> [code] <entry key="studentInstrumentByUserName">foo.info</entry> [/code] is it possible to define another xml property that would somehow include studentInstrumentByUserName ? thanks

Member Avatar
+0 forum 0

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 as just any other xml content as used by any xpath expression. Here is my sample xmls: RetreiveData.xml <soap-content> ------ <return> <!--0 or more repetitions>--> <data> <startdate>12-12-12</startdate> <enddate>12-12-13</enddate> <nooftrans>5</nooftrans> </data> <data> ---- </data> </soap=content> This is my sample file which will be sent as param to xsl xsl file: <xsl …

Member Avatar
+0 forum 0

The End.