phoebusdf Posted March 8, 2007 Share Posted March 8, 2007 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 Link to comment Share on other sites More sharing options...
aalbetski Posted March 8, 2007 Share Posted March 8, 2007 please provide a sample of your XML. xsl:number does have a "level" attribute that may apply in this case. Link to comment Share on other sites More sharing options...
phoebusdf Posted March 13, 2007 Author Share Posted March 13, 2007 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now