Jump to content

Recommended Posts

Posted

Hi,I'm trying set up a numbered list of sections, with indented numbering, using xsl:number; for example:1.0 XXX 1.1 XXX 1.2 XXX2.0 XXX 2.1 XXX 2.2 XXX 2.2.1 XXXThe text that has the corresponding number has a tags <List> </List> around it which is matched to a template in the stylesheet, where <xsl:number format="1"/> is applyed.Does anyone have any advice on how to do the indented number, if it is possible!Thanks

Posted

The xml:

<List>  <Item>    XXXXXXX  </Item>  <Item>    XXXXXX  </Item></List>

And then in the XSL:

<xsl:template match = "df:List">  <xsl:for-each select = "df:Item">    <xsl:number format = "1"/>  </xsl:for-each></xsl:template>

Thanks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...