Subject: [xsl] Autogenerated XSL and the html namespace From: "Ralof" <ralof@xxxxxxxxxxxx> Date: Wed, 11 Apr 2001 00:37:42 +0200 |
Hi, When we make schemas, we add the default displaystyle as a attribute to the element, like: <ElementType name="chapterTitle" ExtOption:Formatting="display: font-family: univers helvetica sans-serif; font-weight: bold; font-size: x-large; "> <description>Chapter Title</description> </ElementType> Now, parsing out the displayinfo to a CSS file is quite easy, but how do I put it into a XSL file? I was thinking in terms of: <xsl:template match="/"> <xsl:for-each select="//*"> <span class="{xsl:name-of-tag}"><xsl:value-of select="*" /></span> </xsl:for-each> </xsl:template> Furthermore, when using the html: namespace I obviously wan't to just use the html tag for that instance, but I have problems with that also... <xsl:template match="everything-in-html-namespace"> <xsl:for-each item> <htmlTag><xsl:value-of select="*" /></htmlTag> </xsl:for-each> </xsl:template> (I know syntax is wrong, but I tried to make it describing) I am a total newbie on XSL, and the more I read the less I know :) Hope someone can give me some hints on how to solve this. Regards Stefan XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] ANN: on-Idle xslt forum, cutlass | Thread | RE: [xsl] Autogenerated XSL and the, Ralof |
RE: [xsl] XSLT UK - the aftermath, Peter Flynn | Date | [xsl] Whick is the best choice?, xgao |
Month |