How to export xml via xsl of current (selected by name) sheet in Libreoffice Calc

Good afternoon!

When I’m exporting ods table to xml file via xsl:
<xsl:for-each select=“table:table-row[position() > 1]” /> <xsl:value-of select=“table:table-cell[1]/text:p” /> ...
Calc exports data from all sheets.

What to pass to xsl to loop only from current sheet or from sheets of given names?

Thank you in advance!

table:table[@table:name='givenName']

you can unzip yourfile.ods and check content.xml

Thank you very much for your reply.

It’s not clear for me, how:
select="table[@table:name='givenName']:table-row[position() > 1]
or?

probably worth spending a bit of time training on XPath Tutorial :wink:

more likely //table[@table:name='givenName']//table-row[position() > 1]
but should be fine tuned according to the actual content.xml

note: you may fix the tag of your post; → xsl or xslt