[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Transforming Learning Object Metadata (LOM) proble
Thank you. I made some progress with declararing the namespace for lom in that I now get some data outputs from LOM xml. You mentioned that I need to add namespace "l:" to every elements that references lom namespace, so I tried putting prefix to every match statement that originates from 'lom' but because prefixing at different match statements gave me all the different outputs which still confuses me. For example below is part of my xsl which starts from matching lom and have additional match and apply-templates statements from it (actually all of matching and apply-template statements from my xsl are these). Is it required to put lom namespace in front of every element in match statements in order to work? I believe this also applies to "apply-template" statements, so for example would I need to put namespace prefix to <xsl:apply-templates select="lom"/> or <xsl:apply-templates select="general"/> as well? so that they would be select=" l: (element-name) " . I was confused again after trying many things for right output with no progress... Could anybody give hints for this again? I'd really appreciate it. <!-- XSL part --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:l = "http://ltsc.ieee.org/xsd/LOMv1p0"> <xsl:key name="gen-identifier" match="//general/identifier/*" use="name()"/> <xsl:output method="html" indent="yes"/> <xsl:template match="/"> <ROWSET> <xsl:apply-templates select="lom"/> </ROWSET> </xsl:template> <xsl:template match="lom"> <ROW><xsl:apply-templates select="general"/> </ROW> </xsl:template> <xsl:template match="general"> <xsl:apply-templates select="identifier"/> <xsl:apply-templates select="title"/> <xsl:apply-templates select="description"/> <xsl:apply-templates select="keyword"/> </xsl:template> <xsl:template match="identifier | title | description | keyword "> and so on.... Thank you. -Jaebin On 9/11/06, David Carlisle <davidc@xxxxxxxxx> wrote:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|