But i cant seem to get the track data for the release with the same Release_Title into the repeating track attribute in the output xml... Im still only getting a single output per release....
Subject:Repeating Text Author:(Deleted User) Date:13 Apr 2007 10:12 AM
Hi Mike,
you are missing some namespace prefixes, and the second loop to create the master-slave relationship. With a few changes, this works (be aware that the 'Sound of Hope' album will not be processed as the second occurrence has an extra whitespace at the end of the title):
To the text of the current "Label" that was being worked processed, how would i rephrase my wording of the xsl result document?
<xsl:result-document href="{$outputdir}/Backcatalog{position()}.xml" method="xml">
Something like <xsl:result-document href="{$outputdir}/@label{position()}.xml" method="xml"> ??
Subject:Repeating Text Author:(Deleted User) Date:17 Apr 2007 07:05 AM
Hi Mike,
every time you need to evaluate some XPath code inside a literal attribute value, you need to place it inside curly braces (e.g. like you do for position() ). So, just replace @label with {@label}
To the text of the current "Label" that was being worked processed, how would i rephrase my wording of the xsl result document?
<xsl:result-document href="{$outputdir}/Backcatalog{position()}.xml" method="xml">
Something like <xsl:result-document href="{$outputdir}/@label{position()}.xml" method="xml"> ??
Subject:Repeating Text Author:Mike Sapp Date:17 Apr 2007 10:34 AM
Hi Alberto-
I have been using this:
<xsl:result-document href="{$outputdir}/{ns1:Label}_{ns1:Release_Title}_{position()}.xml" method="xml">
however im getting errors everytime there is a '/' in the text of one of the Release Titles.... How would i have the '/' in the text overlooked so that it wouldnt mess up the process and think that it was putting the output to a different directory?
Subject:Repeating Text Author:(Deleted User) Date:18 Apr 2007 05:27 AM
Hi Mike,
you can remove unwanted characters from the data by using the 'translate' function, like in {translate(ns1:Release_Title, '/:[]', '____')} where the second argument should list all the characters that are not allowed in a file name, and the third one contains the replacement characters (in this case, it's always the same). If you just want to strip them, remove the third argument.