String-set with no result
Posted: Thu Jul 11, 2019 6:10 pm
Hi group!
I've got a standard construction to build strings:
But is empty. It looks like chapters of higher level don't exist, so doesn't see them and repeats with no dependance which chapter is current now.
My .ditamap is here:
Where I'm wrong?
Thanks for any advice!
Regards,
Dmitry
I've got a standard construction to build strings:
Code: Select all
*[class ~= "map/map"] >
*[class ~= "topic/topic"] >
*[class ~= "topic/title"]
{
string-set: chaptertitle1 content(), chaptertitle2 "", chaptertitle3 "";
}
*[class ~= "map/map"] >
*[class ~= "topic/topic"] >
*[class ~= "topic/topic"] >
*[class ~= "topic/title"]
{
string-set: chaptertitle2 content(), chaptertitle3 "";
}
*[class ~= "map/map"] >
*[class ~= "topic/topic"] >
*[class ~= "topic/topic"] >
*[class ~= "topic/topic"] >
*[class ~= "topic/title"]
{
string-set: chaptertitle3 content()
}
Code: Select all
string(chaptertitle1)
Code: Select all
string(chaptertitle2)
My .ditamap is here:
Code: Select all
<chapter href="sg/concept/c_introduction.dita"/>
<chapter href="sg/concept/c_structure_and_tools.dita"/>
<chapter href="sg/concept/c_fonts_and_colors.dita"/>
<chapter href="sg/concept/c_transformation_settings.dita"/>
<chapter href="sg/concept/c_frameworks.dita"/>
<chapter navtitle="Создание топиков">
<topicref href="sg/concept/c_preparation.dita"/>
<topicref href="sg/concept/c_generic_topics.dita"/>
<topicref href="sg/concept/c_registers.dita"/>
<topicref href="sg/concept/c_operations.dita"/>
</chapter>
<chapter href="sg/concept/c_pictures.dita"/>
<chapter href="sg/concept/c_notes.dita"/>
<chapter href="sg/reference/r_style_definitions.dita"/>
Thanks for any advice!
Regards,
Dmitry