15 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for george08.08

Is it possible to count the instances of a for-each boolean statement. for example, say you have patients in a hospital and certain criteria must be met to discharge them. 100(%0) health would equal a discharge, pseudo code would read something like this: totalHealth - HighTemperature + medication * recoveryPeriod …

Member Avatar for george08.08
0
618
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 G_Waddell

Hi, I'm probably missing something really simple or trying too much at once but it's 16:30 on a Friday afternoon and my head is wrecked!! Basically, I'm trying to build an application that takes out put from a database query as XML and uses XSL to transform it into HTML …

Member Avatar for G_Waddell
0
2K
Member Avatar for Mike Askew

Firstly I will say im a complete and total novice when it comes to XSLT and XML so this could be a very obvious mistake on my behalf. [CODE] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="node()"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="TestNode"> <RenamedNode> <xsl:copy-of select="."/> </RenamedNode> </xsl:template> </xsl:stylesheet> [/CODE] When …

Member Avatar for StephNicolaou
0
197
Member Avatar for uid1

I am trying to run this XPath expression (that is, trying to count how many element content strings in my XML file end with letter-one-f ('a') or letter-two-f ('A'): [code=xslt]<xsl:value-of select="count( substring(.,string-length(.) -1,string-length(.) -1)=$letter-one-f or substring(., string-length(.) -1,string-length(.) -1)=$letter-two-f )"/>[/code] but I don't know how to refer to the 'current …

Member Avatar for uid1
0
248
Member Avatar for arjunpk

hi.... i have an xml file which i've pasted below... [CODE] <?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> <opensearch:Query searchTerms=""/> <opensearch:totalResults>1</opensearch:totalResults> <people> <person> <popularity>3</popularity> <name>Aamir Khan</name> <also_known_as> </also_known_as> <id>52763</id> <biography></biography> <known_movies>18</known_movies> <birthday></birthday> <birthplace></birthplace> <url>http://www.themoviedb.org/person/52763</url> <filmography> <movie name="Earth" id="7504" job="Actor" department="Actors" character="Dil Navaz" url="http://www.themoviedb.org/movie/7504" cast_id="2" poster="http://cf1.imgobject.com/posters/5ac/4bc91f50017a3c57fe00c5ac/earth-cover.jpg" adult="false" release="1998-09-16"/> <movie name="&#2352;&#2306;&#2327; &#2342;&#2375; &#2348;&#2360;&#2306;&#2340;&#2368;" id="7913" …

Member Avatar for arjunpk
0
155
Member Avatar for iskinner

From help I received yesterday I have this code that will parse through an XML file generating an output from various nodes based on the relationships between them. Example XML [CODE] <gedcom> <INDI ID=@I001@> <FAMC>@F001@</FAMC> ... </INDI> <INDI ID=@I002@> <FAMC>@F002@</FAMC> ... </INDI> <INDI ID=@I003@> <FAMC>@F003@</FAMC> ... </INDI> ... <FAM ID=@F001@> …

Member Avatar for iskinner
0
159
Member Avatar for iskinner

I have XML data where information in nodes relate to other nodes. I am trying to figure out how to generate output based on these relationships. XML sample <gedcom> <indi id="@I001"> <famc>@F002@</famc> </indi> ... <fam id="@F002"> <husb>@I005@</husb> <wife>@I007@</wife> </fam> </gedcom> XSLT sample <xsl:template match="/"> <xsl:apply-templates select="/gedcom/indi[@id='@I001@']"/> </xsl:template> <xsl:template match="indi"> <xsl:value-of …

Member Avatar for xml_looser
0
1K
Member Avatar for ibdatx

Hi all, I want to transform an xml file to another xml file based on the length of innertext in an element. Here is an example of the file to be transformed: [CODE] <?xml version="1.0" encoding="utf-8"?> <recipe xmnls=""> <recipeList> <recipeType description="Breakfast"> <recipeInfo> <name>Omelet</name> <summary>An English Breakfast</summary> <ingredients>Eggs,Butter</ingredients> <instructions>(1) You will …

Member Avatar for iceandrews
0
208
Member Avatar for glfnute

This is the usual "I'm new to XSLT and need help" plea ... I am trying to parse an XML document and create a "like" structure as output while performing some mapping functions. In trying to produce the output structure, I cannot seem to figure out how to get at …

Member Avatar for fpmurphy
0
118
Member Avatar for swebb

Hi all, I've just started to learn XSLT, so apologies if this question is very basic! I want to create a new html document, one of my elements in the XML file uses mixed elements. I want to do more complicated formatting using linked documents etc. but for the moment …

Member Avatar for iceandrews
0
269
Member Avatar for awofesof

Dear members I am new to the world of XML and XSL transformation, i hope someone can help me with this XSL transformation for an XML. I am not geting the expected result as described below The following is the XML that I am trying to transform to another XML …

Member Avatar for awofesof
0
240
Member Avatar for k_manimuthu

Hi All, I am trying to get the maximum no of column in a table through XSLT code. Below i had placed the sample table format. Here column tagged as 'th' and 'td'. Some of the column having 'colspan' attribute. I am struggling how to add colspan value in a …

Member Avatar for varun0703
0
810
Member Avatar for sdzahed

Hi, Iam very new to XSLT and XML. I am trying to invoke a javascript function from inside my xslt documen. The javascript snippet is as follows: [CODE] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:js="urn:custom-javascript" exclude-result-prefixes="msxsl js" > <msxsl:script language = "JavaScript" implements-prefix = "js"> <![CDATA[ function compareCsvs (firstString,secondString) { var firstArray=firstString.split(","); …

Member Avatar for sdzahed
0
203
Member Avatar for Alba Ra

I wonder (as I couldn't find [I]anything[/I] either on DaniWeb or anywhere else) why should one use XML and XSLT rather than plain XHTML? I couldn't find a rationale arguing for the use of XML and XSLT in connection with dynamic web content stored in a database. Zend does provide …

Member Avatar for Alba Ra
0
273

The End.