Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About omegared

  • Rank
  1. Here is my xml and stylehseet, reading all is not neccessary:As you can see all parameter elements have the same name so i cant select a speicifc node by name. i also cant use someting like select parameter[1] because i will be shuffling the parameter order.Basically I want to first select a parameter based on the <parameter><name> node e.g first node would be 'book name'. I dont want to output this but rather the <value> node of that parameter.As you can see i found <xsl:apply-templates select="parameter/name[. =book name]"/> but I want to ouput the <value> e
  2. Actually having done some searching it would seem the previous is not relevevant. However I did find this link:http://www.dpawson.co.uk/xsl/sect2/onefile.html#d11001e15Would anybody be able to use this to change my hello world files. i have been trying but can't get anywhere.cheers
  3. I posted this elsewhere and somebody gave a response but I don't understand it. Hes reply was: You can view the XSLT FAQ about the identity transformation: http://www.dpawson.co.uk/xsl/sect2/identity.html Basically, try something like that for the first transformation: <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:x_="http://www.fgeorges.org/Transform/Alias" version="2.0"> <xsl:namespace-alias stylesheet-prefix="x_" result-prefix="xsl"/> <
  4. I am new to this so i would be grateful if someone could help me through this simple example. At the moment I have an xml file and a xsl(fo) file. I am feeding them to apache fop to create pdf. I now want to place the xml and xsl in one file whilst being able to use xpath references to the data model rather then the text values.Would someone be kind enough as to show me how to convert my existing hello world files to achieve:A)place both xml and xsl in one file(how would the new file look)Existing xml file:<?xml version="1.0" encoding="UTF-8"?><data> <param1>hello&l
  5. Cheers mate, it worked!
  6. HiI am using xsl:if to output a table only when my current nodes is not empty. The problem is that when the current node is empty, a line appears which I believe is the table border. I don't know why the line is appearing. My code is:Snippet of my xml:<member> <name>John Doe</name> <function>lead</function> <email>jon.doe@killerapp.fun</email> </member> <member> <name>Paul Coder</name> <function>dev</function> <email>paul.coder@killerapp.fun</email> </member>Xslt for table te
  7. When applying inline styles such as bold. Italic or underline this is accomplished by using something like <fo:block font="12pt Arial"> hello <fo:inline font-weight="bold" color="red">world</fo:inline> </fo:block>.However in this example the data and format is not separated. I am using <xsl:value-of select=”.”> (where .=”hello world”). If I used <fo:inline font-weight="bold" color="red"><xsl:value-of select=”.”></fo:inline> it would change both 'hello' and 'world'. How do you specify you want to cha
  8. HiI am new to XSL and was hoping somebody would be kind enough to answer the following questions. I have read a number of online tutorials but they do not go above a very basic introduction. Please answer these questions in the context of using xml and xslt to seperate content and format.1)If I want to apply exactly the same template to a node which has a different name, how do I do this. At the moment I am copy/pasting the whole template and changing the nodename in 'match=nodename'. Do I have to copy the whole template everytime? Is there no way I can reuse the same template by sating s
  9. ok ok i found the answer. just add src=filelocation to the instance tag. So does anyone know of any good tutorials where i can learn about implementing treeviews and complex navigation and what not. cheers.
  10. Hi GuysI have a simple form which writes my xfrom instance data to an xml file, all working fine. Here is a snippet:" <xf:model> <xf:instance> <order xmlns=""> <client xmlns=""> <fname></fname> <lname></lname> </client> </order> </xf:instance> <xf:submission id="s1" method="put" action="C:\Documents and Settings\miah_s\Desktop\Sham Xforms\myData.xml"/>..."What I want to know is, how do I get the text fields to be set by reading from the .xml file on start up. I know
  • Create New...