Search found 11 matches

by slaterino
Wed Feb 10, 2010 5:07 pm
Forum: XSLT and FOP
Topic: Differentiating between internal and outgoing links
Replies: 0
Views: 1988

Differentiating between internal and outgoing links

Hi, Does anyone know a quick way that I can differentiate between internal and outgoing links? Basically I want all outgoing links to have target=_blank and the internal ones to open in the same window. In my XML all my internal links are written as 'internal_link.php' and all outgoing as 'http://ww...
by slaterino
Thu Feb 04, 2010 6:20 pm
Forum: XSLT and FOP
Topic: Struggles with relationships, any help appreciated!
Replies: 0
Views: 2562

Struggles with relationships, any help appreciated!

Hi, I am trying to create a simple bit of navigation to put on the right of my page so there will be a link to the next article. I have got this bit right but am having trouble with the final article, where I want it to point to the first article rather than the last one. The problem is arising beca...
by slaterino
Wed Feb 03, 2010 10:47 pm
Forum: XSLT and FOP
Topic: How to generate bold and italic text using XSLT
Replies: 0
Views: 5705

How to generate bold and italic text using XSLT

Hi, I am having some problems generating bold and italic text. I have tried a few different methods, and found quite a few suggestions on the Net, but nothing seems to work. A sample of my XML for me at the moment is like this: <para><emphasis role="bold">Taxi:</emphasis> Good news! Montev...
by slaterino
Mon Jan 25, 2010 4:53 pm
Forum: XSLT and FOP
Topic: Problems using conditional and selecting last entry
Replies: 1
Views: 1408

Problems using conditional and selecting last entry

Hi, I have a navigation bar which is made up from the headings of chapters, but only ones that adhere to a conditional statement. In this navbar I am trying to edit it so that all links have a small boundary between each other. At the moment I am just using the '|' symbol, but I am having problems. ...
by slaterino
Wed Jan 13, 2010 6:01 pm
Forum: XSLT and FOP
Topic: Using result-document - how can I create a template within?
Replies: 2
Views: 2085

Re: Using result-document - how can I create a template within?

Cheers for that Adrian. I have tried using call-template but am still unsure exactly how I can use this template for both of my xsl:result-document needs. For example, with your script, I would have: <xsl:template name="common"> <html> <head></head> <body> [in the middle here I would want ...
by slaterino
Mon Jan 11, 2010 6:50 pm
Forum: XSLT and FOP
Topic: Using result-document - how can I create a template within?
Replies: 2
Views: 2085

Using result-document - how can I create a template within?

Hi, I am using result-document to create a number of pages for my site. I am just about to start customizing the styles a lot more to get them looking how I need them. However, I can't work out how to use the templates within the result-document tag. I have posted my code below. You will see that th...
by slaterino
Mon Jan 11, 2010 4:44 pm
Forum: General XML Questions
Topic: Is possible to tranform from XML DOM to PDF or HTML
Replies: 4
Views: 3077

Re: Is possible to tranform from XML DOM to PDF or HTML

It is also possible that I am confusing things!!! This is an example of a short script I have done for the XML DOM: <script type="text/javascript"> xmlDoc=loadXMLDoc("main.xml"); var x=xmlDoc.getElementsByTagName("chapter"); i=0; function next() { if (i<x.length-1) { i+...
by slaterino
Mon Jan 11, 2010 4:37 pm
Forum: XSLT and FOP
Topic: Creating Multipage HTML
Replies: 3
Views: 2857

Re: Creating Multipage HTML

Yeah, I found the result-document tag in the end, and am now playing around with getting it working. I have a question about the frameworks though. At the moment I am trying to write a .xsl document from scratch that will do my transformations. This is because I was looking through all the existing ...
by slaterino
Mon Jan 11, 2010 4:17 pm
Forum: General XML Questions
Topic: Is possible to tranform from XML DOM to PDF or HTML
Replies: 4
Views: 3077

Re: Is possible to tranform from XML DOM to PDF or HTML

Hi, I am just using what I believe is the Microsoft-developed XML Dom and then using Javacsript to display it. I feel really comfortable using it but I think the problem will be with the SEOs as the content will all be hidden in the nodes, which is why I was trying to find if there was a way to do s...
by slaterino
Sun Jan 10, 2010 4:16 pm
Forum: General XML Questions
Topic: Is possible to tranform from XML DOM to PDF or HTML
Replies: 4
Views: 3077

Is possible to tranform from XML DOM to PDF or HTML

I am not sure whether this should be in the other board of the forum but seeing as it's kind of a general question I wanted to ask it here. I am designing a site using XML and at the moment XML DOM is working perfectly for presenting my XML content exactly as I want it. The only problem I can forese...
by slaterino
Sat Jan 09, 2010 9:45 pm
Forum: XSLT and FOP
Topic: Creating Multipage HTML
Replies: 3
Views: 2857

Creating Multipage HTML

Hi, I have chosen to use XML for a project as it is a project that needs to produce a web page and PDF from the same content, and which also could be the first of many, and I figured that this would make things a lot easier as it would just be a case of using the existing XML structure. Anyway, I am...