Jump to content

bezier

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About bezier

  • Rank
    Newbie
  1. Thank you once more. Your hint helped solve the problem in the browser, though not when transforming XML in Oxygen. In case anyone finds this with a similar problem, what finally solved it for me was changing the Transformator to Xalan.
  2. This is weird... It worked for the paragraphs now, but i added some tags and i have the same problem with different tags now. It happens wherever i use this line of code: <xsl:copy-of select="."/>
  3. Thank you so much, first method method worked right away.
  4. Sorry, i think i still did not get the namespace thing. When i am processing my XML, i get this as a result: <p xmlns=""> text here </p> I assume the empty brackets are not correct here? What am i doing wrong? The top of my XML document is this: <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="tmzb.xsl"xmlns="http://www.tei-c.org/ns/1.0"?> And the top of my XSL: <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:t="http://www.tei-c.org/ns/1.0"> Any help, again, appreciated.
  5. thank you, will read deeper into namespaces
  6. Hello, I have dealt quite a lot with XML in the past, now i have to delve into XSL.A text needs to be transformed, and, although i read and understood several tutorials, i still can not see what on earth i am doing wrong. I am sure this will be a minor mistake, any help will be appreciated. My XML: <?xml version="1.0" encoding="UTF-8"?>
<!--<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/teilite.rng" schematypens="http://relaxng.org/ns/structure/1.0"?>-->
<?xml-stylesheet type="text/xsl" href="tmzb.xsl" ?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
 <teiHeader>
 <fileDesc>
 <titleStmt>
 <title>Title</title>
 </titleStmt>
 <publicationStmt>
 <p>Publication information</p>
 </publicationStmt>
 <sourceDesc>
 <p>Information about the source</p>
 </sourceDesc>
 </fileDesc>
 </teiHeader>
 <text>
 <body>
 <head>Erstes Kapitel</head>
 <head>Ankunft</head>
 <p>Ein einfacher junger Mensch reiste im Hochsommer von Hamburg, seiner Vaterstadt, nach
 Davos-Platz im Graubündischen. Er fuhr auf Besuch für drei Wochen.</p>
 <p>Von Hamburg bis
 dort hinauf, das ist aber eine weite Reise; zu weit ei- gentlich im Verhältnis zu einem so
 kurzen Aufenthalt. Es geht durch meh- rerer Herren Länder, bergauf und bergab, von der
 süddeutschen Hochebene hinunter zum Gestade des Schwäbischen Meeres und zu Schiff über seine
 springenden Wellen hin, dahin über Schlünde, die früher für unergründlich 10 galten.</p>
 </body>
 </text>
</TEI> My XSL: <?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <h2> <xsl:value-of select="/TEI/text[1]/front[1]/div1[1]/head[1]"/> </h2> </body> </html> </xsl:template> </xsl:stylesheet>
×
×
  • Create New...