Search found 26 matches

by metalhammer
Mon Feb 22, 2010 1:03 pm
Forum: XSLT and FOP
Topic: xPath problem
Replies: 1
Views: 1517

xPath problem

Hi, I'm having a similar problem to my problem here: http://www.oxygenxml.com/forum/topic4878.html In my xml file there is a list with all inks used in a document. There also is a list with the ink coverage of each ink. The ink coverage list doesn't has the corresponding ink names, but it uses the s...
by metalhammer
Fri Feb 05, 2010 6:09 pm
Forum: XSLT and FOP
Topic: get value of different grandchild of ancestor
Replies: 13
Views: 5167

Re: get value of different grandchild of ancestor

thanks, I adjusted your code a bit so all the process inks are first, then the pantone inks and then the designer inks. Here it is: <!-- esko artwork pages p30 --> <xsl:template match="rdf:Description[ namespace::*[.='http://ns.esko-graphics.com/pagerangelist/1.0/'] and namespace::*[.='http://n...
by metalhammer
Fri Feb 05, 2010 1:00 pm
Forum: XSLT and FOP
Topic: get value of different grandchild of ancestor
Replies: 13
Views: 5167

Re: get value of different grandchild of ancestor

I just switched my xslt processor in my script to Saxon, so I can use XSLT 2.0.
Does that help?
by metalhammer
Sat Jan 30, 2010 5:18 pm
Forum: XSLT and FOP
Topic: get value of different grandchild of ancestor
Replies: 13
Views: 5167

Re: get value of different grandchild of ancestor

I'm testing my xslt in Oxygen with Saxon. But I'm gonna use it in an applescript with a processor that supports xslt 1.0 and most of the exslt functions. So I'm gonna stick with xslt 1.0 as long as I can. Your code works for me, but I want the word "Process" writen before each ink name. I ...
by metalhammer
Fri Jan 29, 2010 1:43 pm
Forum: XSLT and FOP
Topic: get value of different grandchild of ancestor
Replies: 13
Views: 5167

Re: get value of different grandchild of ancestor

Apparently I only get the error using Saxon-HE, the other Saxons and Xalan work fine. But I'm still having problems building the Xpath. I just want the names of the process inks. This is my best try: <xsl:value-of select="exsl:node-set($inks[$index])[rdf:li/egInk:type='process']/egInk:name"...
by metalhammer
Tue Jan 26, 2010 7:33 pm
Forum: XSLT and FOP
Topic: get value of different grandchild of ancestor
Replies: 13
Views: 5167

Re: get value of different grandchild of ancestor

I'm gonna have to use XSLT 1.0 So I tried your suggestion about using node-set() But I keep getting the following error: Ernst: fatal Omschrijving: Cannot find a matching 1-argument function named {http://exslt.org/common}node-set() Startlocatie: 609:0 I added xmlns:exsl="http://exslt.org/commo...
by metalhammer
Wed Jan 20, 2010 5:30 pm
Forum: XSLT and FOP
Topic: nested templates
Replies: 2
Views: 4079

Re: nested templates

I didn't realize how stupid my question was

I learned these basic things in school 3 years ago, but didn't use XML/XSLT until now. I guess I forgot some important things.

Thanks for pointing it out for me.
by metalhammer
Tue Jan 19, 2010 7:26 pm
Forum: XSLT and FOP
Topic: nested templates
Replies: 2
Views: 4079

nested templates

Hi, I want to nest templates in each other. In my <xsl:template match="rdf:RDF"> I call for the template <xsl:apply-templates select="rdf:Description[namespace::[.='http://purl.org/dc/elements/1.1/']]" /> That works But in the template <xsl:template match="rdf:Description[na...
by metalhammer
Tue Jan 19, 2010 1:32 pm
Forum: XSLT and FOP
Topic: get value of different grandchild of ancestor
Replies: 13
Views: 5167

Re: get value of different grandchild of ancestor

thanks, that works But I want to tweak the code a little bit. I want the process inks (see in egInk:type) to be first, then the pantone inks and then the designer inks. I tried this by filtering the output to just process, and then repeating the code with filtering pantone, ... But there is somethin...
by metalhammer
Tue Jan 19, 2010 12:33 pm
Forum: XSLT and FOP
Topic: get value of different grandchild of ancestor
Replies: 13
Views: 5167

Re: get value of different grandchild of ancestor

thanks,

but now Oxygen says the variable inks has not been declared.
How can I do that?
by metalhammer
Mon Jan 18, 2010 7:57 pm
Forum: XSLT and FOP
Topic: get value of different grandchild of ancestor
Replies: 13
Views: 5167

get value of different grandchild of ancestor

Hi, I have an xml file which contains (xmp)metadata of an PDF file for printing. In the xml file there is a list with all used inks. There is also is a port which says for each page what inks are used, but does not say the name of the ink but its sequence number in the ink list. I would like to have...
by metalhammer
Wed Dec 30, 2009 8:13 pm
Forum: XSLT and FOP
Topic: browser crash using external template
Replies: 7
Views: 2937

Re: browser crash using external template

Thanks a lot, that works perfectly!
by metalhammer
Mon Dec 28, 2009 2:54 pm
Forum: XSLT and FOP
Topic: browser crash using external template
Replies: 7
Views: 2937

Re: browser crash using external template

Here is the template: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" xmlns:str="http://exslt.org/strings" extension-element-prefixes="date str&qu...
by metalhammer
Mon Dec 28, 2009 2:07 pm
Forum: XSLT and FOP
Topic: browser crash using external template
Replies: 7
Views: 2937

Re: browser crash using external template

Hi, In my other topic you asked for the complete files, here they are for this topic: XML file: <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <?xml-stylesheet type="text/xsl" href="XMP_omvormen_backup.xslt"?> <x:xmpmeta xmlns:x="adobe:ns:meta/"...
by metalhammer
Mon Dec 28, 2009 1:53 pm
Forum: XSLT and FOP
Topic: select child element of xPath with axes
Replies: 2
Views: 2353

Re: select child element of xPath with axes

I solved it, the problem was with the template.

I changed

Code: Select all


	<xsl:template match="/">
to

Code: Select all


	<xsl:template match="rdf:RDF">
like in your code.

Thanks for your help!
by metalhammer
Mon Dec 28, 2009 1:04 pm
Forum: XSLT and FOP
Topic: browser crash using external template
Replies: 7
Views: 2937

Re: browser crash using external template

Hi, I solved the browser crash, the external template used another external template which I didn't had yet. Strange, because on the installation page there was the second template which is necessary isn't mentioned. But I still can't seem to use the template, there has to be something wrong with th...
by metalhammer
Sun Dec 27, 2009 6:20 pm
Forum: XSLT and FOP
Topic: browser crash using external template
Replies: 7
Views: 2937

Re: browser crash using external template

I managed to avoid the browser class by copy-pasting the contents of the external template to my xslt file. But for some reason it still doesn't work, the following code has no result. <xsl:call-template name="date:format-date"> <xsl:with-param name="date-time" select="xmp:C...
by metalhammer
Sat Dec 26, 2009 7:34 pm
Forum: XSLT and FOP
Topic: select child element of xPath with axes
Replies: 2
Views: 2353

select child element of xPath with axes

Hi, I want the title of my html file to be the value of a grandchild element from a xPath with axes. That doesn't sounds as a clear explanation, but I'll try to clear it out. This is a shortened version of my xml file: <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <?xml-sty...
by metalhammer
Sat Dec 26, 2009 7:04 pm
Forum: XSLT and FOP
Topic: browser crash using external template
Replies: 7
Views: 2937

browser crash using external template

Hi, I use an external template to format a date. I found the template here http://exslt.org/date/functions/format-date/index.html When I ad the following line to my xslt file, my browser (safari and IE) crash when I try to open my xml file. <xsl:import href="date.format-date.template.xsl"/...
by metalhammer
Thu Dec 24, 2009 1:23 pm
Forum: XSLT and FOP
Topic: color value from xml to backgroundcolor div in xhtml
Replies: 2
Views: 2887

Re: color value from xml to backgroundcolor div in xhtml

Thanks a lot! Works perfectly!
by metalhammer
Wed Dec 23, 2009 7:40 pm
Forum: XSLT and FOP
Topic: color value from xml to backgroundcolor div in xhtml
Replies: 2
Views: 2887

color value from xml to backgroundcolor div in xhtml

Hi, I have RGB value's in my XML file, they look like this: <egInk:r>.3218039274</egInk:r> <egInk:g>.4258823395</egInk:g> <egInk:b>.4894117713</egInk:b> I want a square in my html file with those RGB value's as color. I've tried this: <div class="kleurvak" style="background-color:rgb(...
by metalhammer
Wed Dec 23, 2009 6:24 pm
Forum: XSLT and FOP
Topic: Namespace prefix xmlns has not been declared
Replies: 8
Views: 15991

Re: Namespace prefix xmlns has not been declared

I think I'll stick with safari.

Thanks a lot for all your help!
by metalhammer
Wed Dec 23, 2009 1:43 pm
Forum: XSLT and FOP
Topic: Namespace prefix xmlns has not been declared
Replies: 8
Views: 15991

Re: Namespace prefix xmlns has not been declared

Hi,

thanks, that was what I was searching for.
Is there a way to make it work in firefox to?
by metalhammer
Tue Dec 22, 2009 6:08 pm
Forum: XSLT and FOP
Topic: Namespace prefix xmlns has not been declared
Replies: 8
Views: 15991

Re: Namespace prefix xmlns has not been declared

Hi, My XSLT has to work on different XML files. Some of these files have the <rdf:Description rdf:about="" xmlns:egGr="http://ns.esko-graphics.com/grinfo/1.0/" xmlns:egInk="http://ns.esko-graphics.com/inkinfo/1.0/"> element in it, others have not. They have a rdf:Descri...
by metalhammer
Tue Dec 22, 2009 4:57 pm
Forum: XSLT and FOP
Topic: Namespace prefix xmlns has not been declared
Replies: 8
Views: 15991

Re: Namespace prefix xmlns has not been declared

I want to match a <rdf:Description> element with the xmlns:egGr="http://ns.esko-graphics.com/grinfo/1.0/" attribute. This way I think I can make a template for everything in the <rdf:Description rdf:about="" xmlns:egGr="http://ns.esko-graphics.com/grinfo/1.0/" xmlns:egI...
by metalhammer
Tue Dec 22, 2009 2:56 pm
Forum: XSLT and FOP
Topic: Namespace prefix xmlns has not been declared
Replies: 8
Views: 15991

Namespace prefix xmlns has not been declared

Hi, it's my first serious attempt at XSLT, sow probably a noob question. I am trying to make a template match with an attribute in it. The attribute has a xmlns namespace. Oxygen says I have to declare the xmlns namespace, but I thought that the xmlns namespace didn't had to be declared. (I wouldn't...