Hello:
I'm writing my PhD in HTML using PrinceXML for formatting it, and I don't know if it's possible to do the following:
When using Chicago style for citations, you have two options for citing sources in the text:
How could I use cross references to choose between one style or another? Now I'm using the following markup for references:
And I would like to be able to choose the style within the text with the following markup:
I've thought the following two options to do what I want:
And then selecting a different content depending on whether the reference has a class year or not, but I don't know if this can be done with target-text (selecting the content of a descendant of the target or the value of an attribute on the target? If not, do you have any suggestion?
Thanks!
I'm writing my PhD in HTML using PrinceXML for formatting it, and I don't know if it's possible to do the following:
When using Chicago style for citations, you have two options for citing sources in the text:
As Doyle (2002) has stated, blah, blah, blah...
Blah, blah, blah... (Doyle 2002)
How could I use cross references to choose between one style or another? Now I'm using the following markup for references:
<dt id="doyle2002">Doyle 2002</dt>
And I would like to be able to choose the style within the text with the following markup:
<a class="ref" href="#doyle2002"></a>
to generate (Doyle 2002)<a class="ref year" href="#doyle2002"></a>
to generate (2002)I've thought the following two options to do what I want:
<dt id="doyle2002">Doyle <span class="year">2002</span></dt>
<dt id="doyle2002" title="2002">Doyle 2002</dt>
And then selecting a different content depending on whether the reference has a class year or not, but I don't know if this can be done with target-text (selecting the content of a descendant of the target or the value of an attribute on the target? If not, do you have any suggestion?
Thanks!