This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Autogenerated XSL and the html namespace


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]