Search found 7 matches

by gungy
Sat Jun 02, 2012 5:16 am
Forum: XSLT and FOP
Topic: using AND operator
Replies: 0
Views: 2777

using AND operator

hiya, how can i get two recursive calls in my template to evaluate my constraint using the AND operator? xml file structure: <filterML> <constraint> <and> <!-- 2 conditions --> <operator operation="="> <!-- condition1: get all subjects evaluatung to chemistry --> <input>subject</input> <va...
by gungy
Fri May 25, 2012 1:58 pm
Forum: XSLT and FOP
Topic: current year
Replies: 7
Views: 4580

Re: current year

Hiya, i think ive noticed that when calling this exslt extension for getting the current year, its breaking the internet explorer browser (version 9) so just displays raw xml only....ive copied over all the date xsl files into the same folder as my stylesheet and did the <xsl:import href="date....
by gungy
Thu May 24, 2012 8:05 pm
Forum: XSLT and FOP
Topic: Open in browser
Replies: 1
Views: 813

Open in browser

Hiya, ive referenced my stylesheet in the xml file as: <?xml-stylesheet type="text/xsl" href="Task3.xsl"?> transformation is fine within Oxygen, however, when attempting to select the open browser option (whilst in the active XML file), this is outputting just source xml in Inter...
by gungy
Thu May 24, 2012 4:59 pm
Forum: XSLT and FOP
Topic: current year
Replies: 7
Views: 4580

Re: current year

single quotes removed as you suggested, but its still returning NaN?

<xsl:param name="dobyear" select="(ex:year(dob))" />
<xsl:value-of select="$dobyear"/>
by gungy
Thu May 24, 2012 3:56 pm
Forum: XSLT and FOP
Topic: current year
Replies: 7
Views: 4580

Re: current year

hi adrian, thanks for reply, the ex:year doesnt seem to work when trying to extract the year from my dob element i.e. <dob>YYYY-MM-DD</dob> i have in my xslt: <xsl:param name="dobyear" select="(ex:year('dob'))" /> and then: <xsl:value-of select="$dobyear"/> this is outp...
by gungy
Wed May 23, 2012 8:30 pm
Forum: XSLT and FOP
Topic: current year
Replies: 7
Views: 4580

current year

hi,

how can i get the current year to display - i am declaring <xsl:param name="" /> but what should i enclose in the brackets to grab the current date or year?
by gungy
Tue May 22, 2012 5:09 pm
Forum: XSLT and FOP
Topic: calculate age
Replies: 0
Views: 1769

calculate age

hi,

could someone please show me how i calculate persons age using <dob>YYYY-MM-DD</dob> in xslt 1.0?

Go to advanced search